Inventor General Discussion

Inventor General Discussion

Reply
Mentor
tuliobarata
Posts: 164
Registered: ‎11-30-2007
Message 1 of 2 (145 Views)

iLogic - How to sum a property of all sub assemblies ?

145 Views, 1 Replies
10-25-2012 12:12 PM

Hi all!

 

I got here on in my templates, two types of weight - net and gross. I've changed the main property MASS of each PART to be the GROSS weight, so when i have one assembly i always get the total gross weight.

And when i wanna get the NET, I open the BOM, show the proper column with this net weight and then export do XLS to sum all of then..

 

Now the doubt is, to get the things easier, is there a way to put some code in the assemblies, that could sum all the properties "X" from each part and sub assemblie to get the total net weight ?

 

Thanks!

 

Túlio Barata

IV 2013
Mentor
tuliobarata
Posts: 164
Registered: ‎11-30-2007
Message 2 of 2 (129 Views)

Re: iLogic - How to sum a property of all sub assemblies ?

10-26-2012 06:43 AM in reply to: tuliobarata

I tried to find to way in how to do it on iLogic, but I dont know very well the sintaxes.

 

Maybe with one idea.

 

TO count every item in the assembley and put it in a loop that would write in each one one property that i want. I just tried some codes that i found here, but none worked for me :smileyfrustrated:

 

Any idea guys ?

 

Thanks again

Túlio Barata

IV 2013
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.