initialization

Hi guys,

After I insert a sketch into the doc (or part) in my Addin, create some curves based on the selected faces and then return to solidworks main graphic window. Now user must click "exit sketch" to end the sketch what I have created in my program.

Is it possible to call a function to end the sketch inside my program so user doesn't need to click "exit sketch" icon?

thanks

john

SolidworksApi macros