is there any way to start sketcher workbench and let the user to sketch
and when the user exits the sketcher the macro should detect the sketch and create pad or pocket
@Little Cthulhu
Thanks for the replay
But i didnt get your answer
what i want is when i click on create button in userform caita should enter sketch bench and user will sketch something when they exit the sketcher the macro should detect the sketch drawn by user and perform some operation on it
Use WinAPI function named "SetTimer" and set a callback that would check CATIA's current workbench and specification tree. You have to put some effort and I don't think it's worth the trouble.
then put a dialog box waiting, for when the user finishes the sketch.
for finish the sketch, user should pick something in the dialog box to finish the sketch and macro continue.