How to disable warnings

How to disable warnings

btmsoftware
Advocate Advocate
8,206 Views
4 Replies
Message 1 of 5

How to disable warnings

btmsoftware
Advocate
Advocate

Hi all,

In my add-in, I have to open a file.

if there are error messages, I can disable them using the OverrideResult method of the DialogBoxShowing handler I set in my code.

No problems with that.

 

However, I have some other warning dialogs popping up such as shown

 

Those don't go through the DialogBoxShowing handler so I can't discard them automatically.

 

Capture.PNG

 

 

Any idea?

0 Likes
8,207 Views
4 Replies
Replies (4)
Message 2 of 5

gopinathrbe
Participant
Participant

yes, You are right some of the dialog boxes don't go through DialogBoxShowing event

Please refer the following link to close dialog boxes using windows native API:

https://thebuildingcoder.typepad.com/blog/2009/10/dismiss-dialogue-using-windows-api.html

0 Likes
Message 3 of 5

naveen.kumar.t
Autodesk Support
Autodesk Support
0 Likes
Message 4 of 5

btmsoftware
Advocate
Advocate

I'll look into that and will let the forum know.

That said, this is a workaround and it would be good that it gets fixed someday. If some dialogs don't behave as they should, that would be a bug in my book....

0 Likes
Message 5 of 5

btmsoftware
Advocate
Advocate

I looked into the links and yes, it is a workaround.

HOWEVER, I will NOT mark them as solutions because this is a workaround, not a fix. I and others shouldn't have to write a single line of code to solve an issue which is in Revit itself.

 

Thaks for the help anyways.