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

This has been a very good teaching tool for me.  I'm having a particular issue where Inventor will crash when running this method, if a non-planar face is selected.  If, say, a cylindrical face is selected


oAnnoPlaneDef = oDoc.ModelAnnotations.CreateAnnotationPlaneDefinitionUsingPlane(oFace)

 

Fails

and Inventor crashes.

I have tried instead using kAllPlanarEntities instead, but that similarly failed.

What would be the best route to constrain the user to selecting only valid planar faces, or being able to handle a nonplanar face selection?

Thanks in advance.

IMPORTANT EDIT
I'm working in an assembly environment, rather than part.  Trying to add ModelLeaderNotes