Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

counting assembly occurrences

NachitoMax
Advisor

counting assembly occurrences

NachitoMax
Advisor
Advisor

Hi

 

What is the fastest, easiest, most simple way of counting individual occurrences? Lets say i have 50 components in my assembly-

 

10 x Wood Screw

10 x MDF Panel

10 x Plywood Back

10 x Top Panel

10 x Base Panel

 

instead of looping through to get 100 messageboxes each showing the same object 10 times

(wood Screw:1, Wood Screw:2 etc),

 

i need to get 5 message boxes showing the description & quantity

(Wood Screw x 10)

 

is there a way of counting occurrences in an assembly and just looping through them for a count?

 

 

 

Thanks

 

 

Nacho
Automation & Design Engineer

Inventor automation Programmer (C#, VB.Net / iLogic)
Furniture, Sheet Metal, Structural, Metal fab, Tradeshow, Fabrication, CNC

EESignature


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.


0 Likes
Reply
1,248 Views
3 Replies
Replies (3)

GosponZ
Collaborator
Collaborator

 

I'm just thinking loud.

Isn't that Bom what you just said ? Do you really need msg box to tell you what you have in bom? Give more info to better understand what intension you have.

0 Likes

NachitoMax
Advisor
Advisor
Hi

I was using the msgbox purely for example to demonstrate 5 returns for a component definition instead of 20

I'll give a different description when I get home if it helps.

Cheers

Nacho
Automation & Design Engineer

Inventor automation Programmer (C#, VB.Net / iLogic)
Furniture, Sheet Metal, Structural, Metal fab, Tradeshow, Fabrication, CNC

EESignature


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.


0 Likes

Anonymous
Not applicable

I faced the same problem some weeks ago, I found answers in these links:

 

http://modthemachine.typepad.com/my_weblog/2009/03/accessing-assembly-components.html

http://forums.autodesk.com/t5/inventor-customization/bom-structured-view-in-an-txt/m-p/5501530#M5402...

 

Usually Instead of having a messagebox I use .txt writer saving in spacific folder.

 

Bye

0 Likes