AnsweredAssumed Answered

How to exit/close a sketch without saving changes

Question asked by Hiyel Kar on Dec 4, 2017
Latest reply on Dec 5, 2017 by Hiyel Kar

Hello,

I edit an existing sketch with a macro in order to manipulate certain things given certain input. During the manipulation, the macro may find an inconsistency in the input given, at which point I would like to exit the sketch, revert all the changes done, and end the macro. It seems like InsertSketch Method (ISketchManager) is the only way to close/exit a sketch, but there doesn't seem to be a way to discard the changes. Is there any way to achieve this?

Thanks in advance!

Outcomes