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

Hi Frederic,

 

I am not finding anyway to delete that sketch without crashing Inventor.

Please post a request for this on the Inventor Idea station:

http://forums.autodesk.com/t5/inventor-ideastation/idb-p/v1232/tab/most-recent

 

 

You could add the Sketch.ExitEdit to the OnSketchChange. This should get the message across to the user. Each time they add a sketch entity they would need start editing the sketch again. You could have a global flag and keep track of how many times the user does this. After three or so tell them that they are going to crash Inventor if they edit the sketch again and that they better save if they intend to do it. If they do edit the sketch again delete the sketch and crash Inventor.

 

This is strange to me that users would be so insistent on not following company policies about model creation. The API is not really intended to stop users from doing things in the UI.

 

Thanks,

Wayne



Wayne Brill
Developer Technical Services
Autodesk Developer Network