- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
So I've created this script, which opens and closes several files through the OpenDocumentFile() command.
Upon opening a certain file, the message below pops up.
I have tried creating a handler for it, using the following at OnApplicationInitialized():
app = sender as Autodesk.Revit.ApplicationServices.Application;
uiapp = new UIApplication(app);
uiapp.DialogBoxShowing += DialogBoxShowing;
DialogBoxShowing is not raised.
I Also tried the following at OnStartup(UIControlledApplication a):
a.ControlledApplication.ApplicationInitialized += OnApplicationInitialized;
a.DialogBoxShowing += DialogBoxShowing;
In neither cases a DialogBoxShowingEvent is raised.
I also tried implementing the FailuresProcessingEvent, which get's raised a lot during the loading of the file, but not when the dialog i shown.
Is there any way (that does NOT include using OpenAndActivate() instead of OpenDocumentFile()) for me to handle this through the Revit Api? I'd rather not use a .net approach.
Thanks.
Solved! Go to Solution.