Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Unwanted DialogBox when opening a model

1 REPLY 1
Reply
Message 1 of 2
peter.nielsen
242 Views, 1 Reply

Unwanted DialogBox when opening a model

peter.nielsen
Explorer
Explorer

I have a problem with a dialogbox shown when opening a model, please see this link:
https://forums.autodesk.com/t5/revit-api-forum/dialogboxshowing-event-not-firing-when-model-is-opene...
Any solutions?

Best regards

0 Likes

Unwanted DialogBox when opening a model

I have a problem with a dialogbox shown when opening a model, please see this link:
https://forums.autodesk.com/t5/revit-api-forum/dialogboxshowing-event-not-firing-when-model-is-opene...
Any solutions?

Best regards

1 REPLY 1
Message 2 of 2

jeremytammik
Autodesk
Autodesk

Dear Peter,

 

Basically, all dialogue boxes can be automatically closed one way or another.

 

The Revit API offers two mechanisms that can help, the dialogue box event and the failure handling system.

 

If they both cannot be used, you can take recourse to the native Windows API to simulate a click on the OK button, or any other response you choose.

 

Here are discussions on all three methods for detecting and handling dialogues and failures:

 

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

  

Cheers,

 

Jeremy

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes

Dear Peter,

 

Basically, all dialogue boxes can be automatically closed one way or another.

 

The Revit API offers two mechanisms that can help, the dialogue box event and the failure handling system.

 

If they both cannot be used, you can take recourse to the native Windows API to simulate a click on the OK button, or any other response you choose.

 

Here are discussions on all three methods for detecting and handling dialogues and failures:

 

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

  

Cheers,

 

Jeremy

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report