How to close the inventor's dialog when open a dwg file?

How to close the inventor's dialog when open a dwg file?

1354448288
Contributor Contributor
422 Views
2 Replies
Message 1 of 3

How to close the inventor's dialog when open a dwg file?

1354448288
Contributor
Contributor

When opening a dwg file, if the model and the dwg are in the same path, and the relationship between them is remained, the dwg file will be opened directly.

But when the relationship between them is broken, inventor will show a dialog like this:

1.png

and then, I clicked the 'Skip', it will show:

2.png

I need to close these dialogs silently.

 

How should I do with Inventor's API?

I tried Inventor.Application.ApplicationEvents, it helps nothing.

0 Likes
Accepted solutions (1)
423 Views
2 Replies
Replies (2)
Message 2 of 3

JelteDeJong
Mentor
Mentor
Accepted solution

you could try this:

ThisApplication.SilentOperation = True
'open you document here 
ThisApplication.SilentOperation = False

 

Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Blog: hjalte.nl - github.com

Message 3 of 3

1354448288
Contributor
Contributor
Thank you very much! It helps a lot.
0 Likes