Message 1 of 18
One-click for all components
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Please help.
I have many structural parts in an assembly/subassembly file. How to activate the code for each part in the assembly/subassembly and update it every time the size changes.
In the future, I hope this code can also be implemented for all structural parts & sheet metal in assembly.
'Structural shapes, i.e : Angle Bars
iProperties.Value("Custom", "Height") = Round(G_H,0)
iProperties.Value("Custom", "Thickness") = Round(G_T,0)
iProperties.Value("Custom", "Length") = Round(G_L,0)
iProperties.Value("Project", "Description") = "=Angle Bar - <Material>, <Height>x<Height>x<Thickness> x <Length> mm"
'Sheet Metal
iProperties.Value("Custom", "Thickness") = Round(Thickness,1)
iProperties.Value("Custom", "Length") = Round(SheetMetal.FlatExtentsLength,0)
iProperties.Value("Custom", "Width") = Round(SheetMetal.FlatExtentsWidth, 0)
iProperties.Value("Custom", "Weight") = Round(iProperties.Mass, 2)
iProperties.Value("Project", "Description") = "=<Material>, <Thickness> x <Length> x <Width> mm"