Additional Open Document Dialog Handlers

Additional Open Document Dialog Handlers

matthew_conwayN7C2G
Enthusiast Enthusiast
325 Views
1 Reply
Message 1 of 2

Additional Open Document Dialog Handlers

matthew_conwayN7C2G
Enthusiast
Enthusiast

I have a Command that is batch processing a number of Revit files. I utilize a UiAppOnDialogBoxShowing() to automatically handle dialog boxes that pop-up when opening each Revit document, however I have a few dialog boxes that aren't being caught by my UiAppOnDialogBoxShowing() method (images of the uncaught dialogs below).

Is there another Event I need to be catching?

Screenshot 2023-04-10 132422.png

Screenshot 2023-04-10 132554.png

Screenshot 2023-04-10 132431.png

Screenshot 2023-04-10 132614.png

0 Likes
326 Views
1 Reply
Reply (1)
Message 2 of 2

jeremy_tammik
Alumni
Alumni

Yes. Some conditions can be caught and handled by the Failure processing API:

  

https://thebuildingcoder.typepad.com/blog/about-the-author.html#5.32

  

If all the Revit API measures fail, you can sometime dismiss dialogues by simulating the user click using the navive Windows API.

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open