I have a handler for Inventor's onQuit event. In certain circumstances I'd like to stop Inventor from quitting. Is to do this? I don't see it in the documentation.
Solved! Go to Solution.
Solved by philippe.leefsma. Go to Solution.
That's what I thought the documentation was saying too. Very inconvenient. Thank you, you saved me from a lot of hassle.
Autodesk, any chance you can come up with a way to cancel the close process? Yes, I'll put it in IdeaStation so it can be added to inventor 4 versions from now.
Hi
Unfortunately there doesn't to be a direct to achieve this through the existing API. One suggestion you may want to try could be to use a similar approach to the one mentioned in the following blog post, that is to catch WM_CLOSE message by your custom code. This approach would be however unsupported because it doesn't involve directly an Autodesk specific API, so you would need to dig it out on your own. Sorry for not being more helpful at the moment:
http://adndevblog.typepad.com/autocad/2012/12/vetoing-quit-in-autocad.html
Regards,
Philippe.
Can't find what you're looking for? Ask the community or share your knowledge.