Documents.open how to prevent prompts?

Valued Contributor
Valued Contributor

When i call Documents.open on a psm, I get a prompt saying "This file contains links to the assembly...." is there any way to prevent these messages from appearing and just forcing the application to load the psm.. I dont care about the assembly.

 

Currently, my only thoughts are to create another thread that is monitoring for these dialogs and clicking No automatically.

 

Posted by: maury terneus
Post date: 6/22/2013 3:06:44 PM

3 REPLIES

Documents.open how to prevent prompts?

Valued Contributor
Valued Contributor

You may set the Solid Edge application object property DisplayAlerts to false.

 

Posted by: Wolfgang Kunert
Post date: 6/23/2013 12:33:20 AM

Documents.open how to prevent prompts?

Valued Contributor
Valued Contributor

You can also try Application.Interactive = False. Just be sure to turn it back on. The majority of the APIs honor DisplayAlerts although I have seen some that don't.

 

Posted by: Jason Newell
Post date: 6/23/2013 8:40:24 AM

Documents.open how to prevent prompts?

Valued Contributor
Valued Contributor

thanks guys!

 

Posted by: maury terneus
Post date: 6/23/2013 1:51:42 PM