Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Anonymous
in reply to: Anonymous

Hello @Anonymous

 

Yes your own dialog boxes are not stopped by this property, only the dialog boxes that Inventor might show.

 

If you want to have some kind of switch controlling your own code, then you will have to put that in your code.

 

I have sometimes used code like this:

Dim showMsg As Boolean = True
'Remove the comment from next line to disable message boxes
'showMsg = false

If showMsg Then MsgBox( ... )

Then i just need to change one line to disable all my own message boxes.

 

In an AddIn this would then be done by an application setting in an external settings file, or by using some logging framework, to enable changing this while the program is running.

 

Regards,

Jens Bejer Pedersen

Developer, Symetri A/S

www.symetri.com