Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
MjDeck
in reply to: Maxim-CADman77

Here's a version that doesn't use the MeasureTools.GetAngle function. Instead, it uses vector cross product calculations to get directions of lines on the faces. So far, this has given me the same results as the Measure command. Please try it out.
@WCrihfield , I added code similar to what you have to check if the edge is convex. But the way I'm doing it, this isn't needed for the angle calculation. This code could be improved to be more like what you have, and explicitly show convex and concave. (I initially had another idea to check for convex/concave, but I'm glad to find out that it's available directly from the API!)


Mike Deck
Software Developer
Autodesk, Inc.