Getting dimensions of a block askew from a plane

Getting dimensions of a block askew from a plane

Anonymous
Not applicable
263 Views
0 Replies
Message 1 of 1

Getting dimensions of a block askew from a plane

Anonymous
Not applicable

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.

0 Likes
264 Views
0 Replies
Replies (0)