Ignore vault checkout message in inventor API

Ignore vault checkout message in inventor API

basnederveen
Advocate Advocate
4,760 Views
34 Replies
Message 1 of 35

Ignore vault checkout message in inventor API

basnederveen
Advocate
Advocate

Hi everyone,

 

I was wondering if it was possible to press NO on the 'Do you want to check this item out from Vault?' prompt in an add-in/macro?

 

Turning on silentoperation does not work for this. I know the commandmanager gives me the option to check-in, out and undo-check-out my files, but I haven't been able to find what I am looking for. 

 

Thanks in advance

Bas

 

 

0 Likes
Accepted solutions (1)
4,761 Views
34 Replies
Replies (34)
Message 21 of 35

bradeneuropeArthur
Mentor
Mentor

Hi,

 

I will explain the serialization later, ok?

Please send me I private message if you want this explanation. otherwise I will forget it.

 

other question is:

 

Why does your macro's try or want to check out the not checked out files form vault.

is it not much easier to prevent them form checking out in your macro?

 

 

I am running also a lot or routines (Vb.net) but not for files that are not checked out!

 

 

Regards, 

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 22 of 35

basnederveen
Advocate
Advocate

Hi,

 

sent the message. Thank you!

 

I am trying to make a batch exporter, but i need to do something to each drawing. So i get the vault popup on file edit, and the macro stops..

 

 

I think for now I am gonna go with disabling the vault addin and enabling it after finishing.

0 Likes
Message 23 of 35

bradeneuropeArthur
Mentor
Mentor
Accepted solution

Hi Bas,

 

You could also save the file with a temporary name and location "strfullfilename".

open this file "strfullfilename" with :

oInvApp.FileOptions.FileOpenOptions.SkipAllUnresolvedFilesInDrawing = True
InventorApplication.Documents.OpenWithOptions(strfullfilename, oNVM, True)

This will eliminate vault from watching it.

 

Regards,

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 24 of 35

m_zano
Participant
Participant

I found your solution and would like to use it;

 

1 - I imported the Connectivity.Inventor.Forms dll into the references of my Win Form project in Visual Studio 2017

2 - 64-bit CPU target

3 - I have included these two instructions in the project

 

Connectivity.Inventor.Forms.SuppressCheckInDialog.SuppressSetting = True invApp.CommandManager.ControlDefinitions.Item ("VaultCheckinTop"). Execute2 (False)

 

but unfortunately Inventor keeps showing me the check-in dialog.

 

To do this type of setUp, can inventor be turned on with an open assembly or do I have to set these settings in some particular condition?

 

Thank you very much

 

 

0 Likes
Message 25 of 35

bradeneuropeArthur
Mentor
Mentor

bradeneuropeArthur_0-1608622837937.png

Did you save the file temporary?

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 26 of 35

m_zano
Participant
Participant

I don't think is my solution....

 

I want to check in my open drawing file by

 

invApp.CommandManager.ControlDefinitions.Item("VaultCheckinTop").Execute2(False)

 

and I would like to use your instruction

Connectivity.Inventor.Forms.SuppressCheckInDialog.SuppressSetting = True

in order to flag this checkbox via API before perform the check in command "invApp.CommandManager.ControlDefinitions.Item("VaultCheckinTop").Execute2(False) "

 

is it possible to do it? I am not able to obtain this behavior

 

 

 

 

0 Likes
Message 27 of 35

bradeneuropeArthur
Mentor
Mentor

Then you will need to use the EDM add-in reference of inventor.

There you can disable it first and enable the dialog afterwards.

Also the option can be disabled from the options in the Vault tab.

 

regards,

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 28 of 35

m_zano
Participant
Participant

I have imported Connectivity.InventorAddin.EdmAddin but

 

SuppressCheckInDialog.SuppressSetting = True

invApp.CommandManager.ControlDefinitions.Item("VaultCheckinTop").Execute2(False)

 

doesn't work correctly because inventor continues to show me the Check In dialog windows

0 Likes
Message 29 of 35

bradeneuropeArthur
Mentor
Mentor

Ok, that is strange!

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 30 of 35

m_zano
Participant
Participant

Shoud it works? Inventor continue to show me the Dialog....do you see some errors?

 

 

Imports Inventor
Imports Connectivity.Inventor.Forms
Imports Connectivity.InventorAddin.EdmAddin


Public Class Form1

Dim invApp As Inventor.Application
Dim inventorAppType As Type = System.Type.GetTypeFromProgID("Inventor.Application")

Private Sub ButtonTest_Click(sender As Object, e As EventArgs) Handles ButtonTest.Click

invApp = GetObject(, "Inventor.Application")

Connectivity.Inventor.Forms.SuppressCheckInDialog.SuppressSetting = True
invApp.CommandManager.ControlDefinitions.Item("VaultCheckinTop").Execute2(False)

Debug.Print(Connectivity.Inventor.Forms.SuppressCheckInDialog.SuppressSetting)


End Sub

End Class

0 Likes
Message 31 of 35

bradeneuropeArthur
Mentor
Mentor

Did you use this too?

bradeneuropeArthur_0-1608633261672.png

 

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 32 of 35

bradeneuropeArthur
Mentor
Mentor

Hi,

 

(I think) This only works with an Add-in.

You use it as application and that does not work!

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 33 of 35

m_zano
Participant
Participant

Hi

 

thank you very much ... I have developed a simple addIn and now it works.

 

I have another (last) question ... do you know if is possible to set or change this answers via API?

 

Capture.PNG

Thank you 

Manuele

 

0 Likes
Message 34 of 35

bradeneuropeArthur
Mentor
Mentor

See one of my ideas for the Vault prompts.

So answer: This is not implemented yet!

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 35 of 35

Tobias_96
Participant
Participant

Hi there,

 

I am also wondering if this is possible since unloading the addin isnt the best solution. Is there any progress on this issue or a good workaround?

 

all the best,

Tobi

0 Likes