Getting dimensions of a block askew from a plane

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
I'm trying to get my assemblies to detect and set the thickness of sheet metal parts by measuring the part, then defining the smallest dimension and setting that as thickness.
The rule I have works if the part lies parallel to the origin planes. Since we're working with derived parts here, parts are not always parallel to these planes (see attached image)
The code below is what I use to get the dimensions at this moment. What do I need to change so it will also work with parts set at an angle to the origin planes
Hoogte_1 = CStr(Round(Measure.ExtentsHeight))
Lengte_1 = CStr(Round(Measure.ExtentsLength))
Breedte_1 = CStr(Round(Measure.ExtentsWidth))
Dimensions_Make_Component = MinOfMany(Hoogte_1, Lengte_1, Breedte_1)
If Dimensions_Make_Component = 0.5 Then
SheetMetal.SetActiveStyle etc. etc.