Inventor General Discussion

Inventor General Discussion

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

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

140 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 (124 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
Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.