Message 1 of 11
How Stop or Cancel revit closing

Not applicable
01-11-2016
03:12 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
HI everyone
I developing my addin using C# 2012, I need my application stop the closure revit. I have a routine that is executed when a button of RibbonPanel press and public Boolean variable is assigned true. Whether revit closing the variable = false, revit not close. I want to force the user to press the button before closing revit. That event or method I can use?. i try with DocumentClosing but this method run only if a document closing and not when revit closing .
thanks!