Checkout dialogue selection or suppress

Checkout dialogue selection or suppress

sellis
Advocate Advocate
342 Views
4 Replies
Message 1 of 5

Checkout dialogue selection or suppress

sellis
Advocate
Advocate

I have an excel addin that opens and prints drawing from a list. Current issue is the Vault checkout dialogue pops up or default selection is made that could be to check out. I need the drawing to not be checked out as no changes are to be saved. 

 

From excel VB.net addin I get file from vault and open the drawing with 

Inventor.Document = InventorApplication.Documents.Open(FilePath, True) 

 

Is there a way to ensure drawing is opened without being checked out and no dialogue interruption?

 

Thanks

 

 

0 Likes
Accepted solutions (1)
343 Views
4 Replies
Replies (4)
Message 2 of 5

Zach.Stauffer
Advocate
Advocate
Accepted solution

The only way I know of is to deactivate the Vault Addin before trying to open the files, then reactivating it when done.

 

 

 

 

 

Dim vaultAddin As ApplicationAddIn= inventApp.ApplicationAddIns.ItemById("{48B682BC-42E6-4953-84C5-3D253B52E77B}")
vaultAddin.Deactivate
'Do your printing here
vaultAddin.Activate

 

 

 

 

 

 

Message 3 of 5

sellis
Advocate
Advocate

That worked great.

 

Thanks!

Message 4 of 5

Skadborg.NTI
Advocate
Advocate

Are there any other ideas to solve this problem? I have occasionally used the trick mentioned above to temporarily deactivate the Vault add-in. However, sometimes Inventor crashes when I reactivate the add-in.

Any alternative suggestions would be greatly appreciated.

0 Likes
Message 5 of 5

g.georgiades
Advocate
Advocate

InventorApplication.SilentOperation=True does not work for vault prompts.

 

The only way I can think of is to re-configure the vault prompts manually and then set them back to their original values when you are done.

 

See this post for how you can edit the vault prompts yourself.

https://forums.autodesk.com/t5/inventor-programming-ilogic/is-there-a-why-to-change-promt-or-not-bei...

0 Likes