Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Getting dimensions of a block askew from a plane

Anonymous

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
Reply
242 Views
0 Replies
Replies (0)