Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi
I need to loop through an assembly and get iProperties for each part. The iProperties i need are:
Length
Width
Hight
How can i do this? I can loop through the assembly but im struggling to get all of the properties.
Below is the code for getting the size:
L1 = Measure.ExtentsLength
L2 = Measure.ExtentsWidth
L3 = Measure.ExtentsHeight
'Sort measurements
L4 = MinOfMany(L1,L2,L3)
L6 = MaxOfMany(L1,L2,L3)
L5 = L1 + L2 + L3 - L4 - L6
'Create external custom parameters
iProperties.Value("custom","Length") = Round(L6)
iProperties.Value("custom","Width") = Round(L5)
iProperties.Value("custom","Hight") = Round(L4)
Thanks
Solved! Go to Solution.