cancel
Showing results for 
Search instead for 
Did you mean: 

How to prevent any dialog box when opening models programatically?

0 Kudos

I have a number of scripts that scan through models in a network fileshare, such as a search and replace across all models. The problem is that when I use the OpenModel function, even with the flags set (omf_DontOpenView and omf_Hidden), I still have dialog boxes popping up. The one I see most is regarding projects. I have models in projects, but in the scanning instance I'm opening them without the project, so I'm prompted if I really want to do this. Is there another flag that will force silent operation?

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member200945
Contributor
0 Kudos

Hi,

You can use global variable

interativeMode=im_batch

Above is vbscript example