Hi All,
Are there any possiblity to catch an event when a user wants to close a document. I know there is an event called DestroyNotify but this event is late for me.
it is because I have a requirement that I had to save the document with different name in FileSaveNotify event. And If I do that, the close button dont work.
For example, the user pressed the close button, then Solidworks asks to user wheter he wants to save the changed document or not. if the user choose yes, then in the FileSaveNotify event, I save the document with different name. But, this will cause the document stay open. the user must press the close button again.
I have tried various solutions but no luck.
Thank you very much in advance.
.
SolidworksApi macros