Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Maxim-CADman77
971 Views, 14 Replies

Get correct angle value between two adjacent faces

I'd like to know what I'm missing in my code while trying to get angle value between two adjacent faces

 

 

 

 

Dim body = ThisDoc.Document.ComponentDefinition.SurfaceBodies(1)
Dim edge = body.Edges(1)
Dim face1 = edge.Faces(1)
Dim face2 = edge.Faces(2)
MsgBox(ThisApplication.MeasureTools.GetAngle(face1, face2)*180/PI & " deg",, "Angle")

 

 

 

 

The Dodecahedron (see model attached) has all angles equal to ~"117 deg" but the code returns "63 deg" (angle adjacent to the measured)

MaximCADman77_0-1724018027513.png

Different manual and API output on same input.

 

I know that In this particular case I can get the desired by subtracting the value from 180 deg, but this is not applicable for concave angles

Isn't it an API defect?

 

Dear @MjDeck, could you, please, clarify this?

Please vote for Inventor-Idea Text Search within Option Names