disabling Error/Warning prompts

disabling Error/Warning prompts

davidt162003
Advocate Advocate
557 Views
4 Replies
Message 1 of 5

disabling Error/Warning prompts

davidt162003
Advocate
Advocate

Is their a way to disable the prompts such as file not saved to current project or design representation locked? and in general is it a good idea to disable these?

HII
0 Likes
558 Views
4 Replies
Replies (4)
Message 2 of 5

FINET_Laurent
Advisor
Advisor

Hello @davidt162003,

 

Here find the line of code that disable such pop up messages :

ThisApplication.SilentOperation = True

 

If you ask my opinion, it is usually set back to false later in the same code, and should be handled carefully with the exeptions. Otherwise the operator might miss important messages. Error / warning / info messages are there for a good reason. 

Kind regards,

FINET L.

If this post solved your question, please kindly mark it as "Solution"

If this post helped out in any way to solve your question, please drop a "Like"

@LinkedIn     @JohnCockerill

Message 3 of 5

davidt162003
Advocate
Advocate

silent operation inst quite what im looking for i think as it seems to suppress more than just pop ups if memory serves right. TBH im also of the opinion they should be left as is 

HII
0 Likes
Message 4 of 5

Jacob__with__a__k
Enthusiast
Enthusiast

You can disable certain prompts at File-->Options (Application Options)-->Prompts

Schermafbeelding 2024-03-19 161129.png 

no clue how to disable the promps that are not listed here

Ilogic specific promps are usally not a good idea to disable

 

Happy coding!

0 Likes
Message 5 of 5

WCrihfield
Mentor
Mentor

Hi @davidt162003.  Just so you area aware, there is an application level setting, as @FINET_Laurent pointed out, but there is also a couple other settings by the same name, for the same functionality in other places with narrower scope of control.  There is an iLogic only setting, like the following:

iLogicVb.Automation.SilentOperation

Then there is a per iLogic rule scope setting, that is actually a property of the individual iLogic rule itself.  That setting can be set manually in the Options tab of the iLogic rule editor while editing a specific iLogic rule, or it can be set by code for that one specific rule.

iLogicVb.Automation.GetRule(ThisDoc.Document, iLogicVb.RuleName).SilentOperation = True

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes