Count components in design ?

Count components in design ?

TrippyLighting
Consultant Consultant
7,020 Views
12 Replies
Message 1 of 13

Count components in design ?

TrippyLighting
Consultant
Consultant

The image below shows work in progress and has almost 200 individual components. There still are about 100 components to be added including all nuts, bolts etc. If I'd count each individual resistor, diode and chip in the custom build electronics I am easily up to 500 components.

 

Is there a way to automatically count the components in an assembly, or is there some screen for UI interface element where that is visible ?

 

Screen Shot 2016-09-19 at 9.25.13 PM.png

 


EESignature

0 Likes
Accepted solutions (2)
7,021 Views
12 Replies
Replies (12)
Message 2 of 13

Beyondforce
Advisor
Advisor

Hi @TrippyLighting,

 

I have been asking myself the same question. Theoretically, a "Component Count" should have been in the Property of the Root Component and above the timeline on the right/left corner.

 

My only guess is, they have forgot about adding this feature!

 

 

Cheers / Ben

Ben Korez
Fusion 360 NewbiesPlus
Fusion 360 Hardware Benchmark
| YouTube

0 Likes
Message 3 of 13

masa.minohara
Alumni
Alumni
Accepted solution

Hi @TrippyLighting@Beyondforce,

 

Thank you for posting! I am using "ExtractBOM" script and then copying (Ctrl + C on the ExtractBOM window) and pasting to MS Excel in the screencast below. Does this work for your design? 

 

Masanobu Minohara

Product Support Specialist



Fusion 360 Webinars | Tips and Best Practices | Troubleshooting
0 Likes
Message 4 of 13

Beyondforce
Advisor
Advisor

Hi @masa.minohara,

 

It's a nice workaround. But, I'm sure everybody will agree with me, that a statistic tool will be much more efficient.

I'm thinking about a Statistic tool under the Inspect menu. When you click on it, you get a window with information like, Total components, bodies, sketches and plans. 

 

I want to put it in the Idea section, but it's more than an just a nice to have Idea. I know it shouldn't be difficult to code, the information is already exist, you just need to create a query and represent it.

 

Let me know, if I'm asking too much 🙂

 

Cheers / Ben
---------------------------------------------------------------------------------------------------------------------------
Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.

 

Check out my YouTube channel: Fusion 360: Newbies+

Ben Korez
Fusion 360 NewbiesPlus
Fusion 360 Hardware Benchmark
| YouTube

Message 5 of 13

TrippyLighting
Consultant
Consultant

Thanks for pointing to the script.

Unfortunately, on macOS it does not seem to allow me to copy/paste (command-C, command-V) the data into a spreadsheet.

 

When making a drawing  Fusion 360 only seems to deal with the top level components on the BOM without the ability to explode the BOM to the lower level, so I'd have to make a drawing for each assembly 😕

The thing is that we need a much better way to handle BOM data! At the moment the BOM functionality seems rather rudimentary.

 


EESignature

Message 6 of 13

Phil.E
Autodesk
Autodesk
Accepted solution

Here you go.

 

Go to:

  1. View > Show Text Commands
  2. Use Txt option for command line
  3. Type [component.count] without the brackets
  4. Enter

 





Phil Eichmiller
Software Engineer
Quality Assurance
Autodesk, Inc.


Message 7 of 13

TrippyLighting
Consultant
Consultant

Thanks for that Phil !

 

I thought I'd remembered that there was some command line command doing that, but I could not remeber exactly what it was and could not find it either.

Another one for my Fuiosn 360 tips & tricks collection.


EESignature

0 Likes
Message 8 of 13

Phil.E
Autodesk
Autodesk

I've asked if this can be included in Properties or some more visible/intuitive place. It's good information for the designer.





Phil Eichmiller
Software Engineer
Quality Assurance
Autodesk, Inc.


Message 9 of 13

Anonymous
Not applicable

I tried this, but it's not working. Instead I get:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'component' is not defined
0 Likes
Message 10 of 13

jeff_strater
Community Manager
Community Manager

I suspect that you have not checked the "txt" option in the text command window:

Screen Shot 2019-06-20 at 5.38.22 PM.png


Jeff Strater
Engineering Director
Message 11 of 13

Anonymous
Not applicable

@jeff_strater D'oh! Yep, that was it. Thanks!

0 Likes
Message 12 of 13

troyostrander
Advocate
Advocate

Can someone define these results from Component.Counts?

for example what are leafs? 

 

With Overrides: LeafOccurrences 382: Bodies 771: VisibleLeafOccurrences 282: VisibleBodies 759: LeafOccurrencesWithVisualMaterialOverrides 519: OccurrencesWithTransformOverides 72

0 Likes
Message 13 of 13

TrippyLighting
Consultant
Consultant

If you imagine the structure of your assembly design as a tree with the root of the browser representing the root of the tree, then the # componets are the leaves.

However, it depends on how you structured your design.

If you've got bodies at the same structural levels then components that count is somewhat useless to determine the "true" component count.


EESignature