08-18-2024
02:59 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
08-18-2024
02:59 PM
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)
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
Solved! Go to Solution.