Part minimum dimensions, iproperties

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have used multibody design to create a simple frame structure. All frame members are turned into individual parts with the make components command. The make components command creates every part with a template that contains the following Rule to create custom iproperties for dimensions (length, width, height) and volume:
iProperties.Value("Custom", "XLength")=Round(Measure.ExtentsLength,3)
iProperties.Value("Custom", "XWidth")=Round(Measure.ExtentsWidth,3)
iProperties.Value("Custom", "XHeight")=Round(Measure.ExtentsHeight,3)
iProperties.Value("Custom", "XMass")=Round(iProperties.Mass,2)
iProperties.Value("Custom", "Dimensions")=CStr(Round(Measure.ExtentsLength,2))+" X "+CStr(Round(Measure.ExtentsWidth,2))+" X "+CStr(Round(Measure.ExtentsHeight,2))
iProperties.Value("Custom", "GrossVolume")=CStr(Round(Measure.ExtentsLength)*Round(Measure.ExtentsWidth)*Round(Measure.ExtentsHeight)/1000^3)
This works perfect as long as the component is correctly aligned. But if not the dimensions are not the minium dimensions like in the screenshot (199,194 x 30) but just extensions in x,y,z directions (183,559x77,357). Is there any possibility to get inventor to always find the minimum dimensions or align the component with its longest side to an axis?