Inventor 2016 Parts List Quantity Edit

Inventor 2016 Parts List Quantity Edit

Anonymous
Not applicable
920 Views
4 Replies
Message 1 of 5

Inventor 2016 Parts List Quantity Edit

Anonymous
Not applicable

Good day everyone,

 

I have been given a task that I am not sure if possible and if it is then I would need some of your expert advice and guidance to get it right.

So here is my scenario:

 

Let's say I have an Assembly with 10 Parts in, and some of them are the same parts. When you look in the Parts List you will only be shown all the different parts and then given the quantity of each. So let's say there is 5 different parts in total.

 

It is fine with it displaying like that (Showing the quantities of each part) but, now I have one part of which I want the Mass/Volume of.

Now I know you can add a Mass or Volume Column, but the problem is we only want to see the one Parts Mass and then the others Parts Quantities and we want to be able to see it in one Column

 

For Example:

 

ITEM   -   QTY   -   DESCRIPTION

 

  1       -    1      -    PART 1

  2       -    3      -    PART 2

  3       -    2      -    PART 3

  4       -    3      -    PART 4

  5       -   3kg   -    PART 5

 

Is something like this at all possible?

Looking forward to seeing the responses and hoping for a good solution to this, thanks

0 Likes
Accepted solutions (1)
921 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable

Have you tried changing the units of measure in the parts you want to display as mass quantity? You can access these settings through "Document Settings" on the tools tab.Doc Settings.PNG

0 Likes
Message 3 of 5

Anonymous
Not applicable

Thanks for the reply bud.

 

I just tried it but I don't seem to have any luck it still only displays the quantity of the part as 1 in the Parts List instead of the Mass/Volume

0 Likes
Message 4 of 5

Anonymous
Not applicable
Accepted solution

OK, new idea.

 

Use this ilogic code to create a user parameter called mass and fill that parameter with the mass of the part.

 

SyntaxEditor Code Snippet

Try

    Parameter("Mass")=iProperties.Mass
    
    Catch
    
    oMyParameter=ThisApplication.ActiveDocument.ComponentDefinition.Parameters.UserParameters
    
    oParameter=oMyParameter.AddByExpression("Mass", "5", "kg")
    'oParameter=oMyParameter.AddByValue("Mass", "", UnitsTypeEnum.kKilogramMassUnits)
    
    Parameter("Mass")=iProperties.Mass
    
End Try

 

 

Then in document settings change the base quantity to the new parameter and bingo!

 

mass.PNG

 

yessss.PNG

 

You can set the rule to run every time you save so the mass always gets updated

0 Likes
Message 5 of 5

Anonymous
Not applicable

You sir...

 

Are a LEGEND!!

 

Haha it works! Thanks so much really appreciate it!

My knowledge of iLogic and rules are still next to none, and I find it bit difficult to learn on my own at some points so I never even considered that iLogic might be the answer.

 

But once again thanks man

 

Smiley Happy