• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    Autodesk Inventor

    Reply
    Mentor
    Posts: 160
    Registered: ‎11-30-2007

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

    108 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
    Please use plain text.
    Mentor
    Posts: 160
    Registered: ‎11-30-2007

    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
    Please use plain text.