- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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!
You can set the rule to run every time you save so the mass always gets updated
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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
![]()