Ignore vault checkout message in inventor API

Ignore vault checkout message in inventor API

basnederveen
Advocate Advocate
4,734 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,735 Views
34 Replies
Replies (34)
Message 2 of 35

dgreatice
Collaborator
Collaborator

Hi,

 

Have you tried to set Vault Prompt at Vault Option?

Capture2.JPG

Please use the ACCEPT AS SOLUTION or KUDOS button if my Idea helped you to solve the problem.

Autodesk Inventor Professional Certified 2014
0 Likes
Message 3 of 35

basnederveen
Advocate
Advocate

Hi, thanks for your reply. 

 

The setting I want to change is here 'File edit: File .. is not checked out...', I want to change this in the beginning of my code and change it back in the end. Do you know if this is possible? 

0 Likes
Message 4 of 35

bradeneuropeArthur
Mentor
Mentor
Maybe this can be done with the edmaddin of inventor?

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 5 of 35

basnederveen
Advocate
Advocate
What is the edmaddin?
0 Likes
Message 6 of 35

bradeneuropeArthur
Mentor
Mentor
This is a dll that should be referenced to.

Imports Connectivity.InventorAddin.EdmAddin

I use vb.net to use the dll reference.

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 7 of 35

basnederveen
Advocate
Advocate

Hi,

 

I do not understand. Do do what I am trying to achieve? How can you find what functions you can use from the edm addin? When I find it in VBA i just find the following options

 

Could you share a bit of the code when you are using this addin ?

 

0 Likes
Message 8 of 35

bradeneuropeArthur
Mentor
Mentor
I will take a look at it if it is possible doing it this way. There must be a possibility I assume. But need to check.

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 9 of 35

bradeneuropeArthur
Mentor
Mentor

Hi,

 

I have the solution for you I think.

This is working for me at least:

 

imports Connectivity.Inventor.Forms

'check to show not show dialog
Connectivity.Inventor.Forms.SuppressCheckInDialog.SuppressSetting = True

Routine from you

'check to show  dialog
Connectivity.Inventor.Forms.SuppressCheckInDialog.SuppressSetting = false

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 10 of 35

basnederveen
Advocate
Advocate
Hi,

Ive had a quick look and I found out this surpresses the dialogs - but not the prompts. As soon as i have time I will try finding if the prompt can also be surpressed using this connectivity .dll.

Thanks for pushing me in the right direction i will let you know if it works out

0 Likes
Message 11 of 35

basnederveen
Advocate
Advocate
Im looking for the check out on file edit prompt btw
0 Likes
Message 12 of 35

bradeneuropeArthur
Mentor
Mentor
Ok succes.

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 13 of 35

bradeneuropeArthur
Mentor
Mentor

I think if we investigate it further there will lso be a possibility to do this I assume.

 

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 14 of 35

basnederveen
Advocate
Advocate

Still have not found if it is possible to achieve what dgreatice showed through API! Anyone knows if it is possible to change the prompt settings through api?

 

thanks

0 Likes
Message 15 of 35

dgreatice
Collaborator
Collaborator

Because I only VBA user. I cant install visual studio and access vault reference because admin privilege at my company, sorry I cant help anymore.

 

Please use the ACCEPT AS SOLUTION or KUDOS button if my Idea helped you to solve the problem.

Autodesk Inventor Professional Certified 2014
0 Likes
Message 16 of 35

bradeneuropeArthur
Mentor
Mentor

Hi, 

You could also use Xlm serialization.

because the settings are all stored in an xml file.

 

hope this helps.

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 17 of 35

dgreatice
Collaborator
Collaborator

Hi,

 

I don't know how to use xml serialization. I new at API, can you teach me about XML serialization? maybe reference document.

I will learn my self.

Please use the ACCEPT AS SOLUTION or KUDOS button if my Idea helped you to solve the problem.

Autodesk Inventor Professional Certified 2014
0 Likes
Message 18 of 35

basnederveen
Advocate
Advocate

I have found the XML file containing the settings! Gonna try working with this. Will let you know if it works out! Thanks!

 

....\AppData\Roaming\Autodesk\Inventor 2018 Vault Addin 

 

 <Category ID="VDFPrompts">
    <Property Name="CheckOutOnFileEdit_PromptInstruction" Value="PromptAlways" />
    <Property Name="CheckInSave_PromptInstruction" Value="PromptAlways" />
    <Property Name="CheckInOnClose_PromptInstruction" Value="PromptAlways" />
    <Property Name="IDS_FILEDIFF_WARN_PromptInstruction" Value="PromptAlways" />
    <Property Name="DownloadConfirmReplaceCheckedOut_PromptInstruction" Value="PromptAlways" />
    <Property Name="DownloadConfirmReplaceLocalEdits_PromptInstruction" Value="PromptAlways" />
    <Property Name="OpenFromVaultNotCheckedOut_PromptInstruction" Value="PromptAlways" />
    <Property Name="IDS_ONRESOLVEFROMVAULT_PromptInstruction" Value="PromptAlways" />
    <Property Name="IDS_CHECKOUT_OTHER_WARN_PromptInstruction" Value="PromptAlways" />
    <Property Name="DownloadConfirmReplaceCheckedOut_UserAnswer" Value="Yes" />
    <Property Name="CheckInSave_UserAnswer" Value="Yes" />
    <Property Name="GetOlderVersion_UserAnswer" Value="YesToAll" />
    <Property Name="GetOlderVersion_PromptInstruction" Value="PromptAlways" />
    <Property Name="OpenFromVaultNotCheckedOut_UserAnswer" Value="No" />
    <Property Name="DownloadConfirmReplaceLocalEdits_UserAnswer" Value="YesToAll" />
    <Property Name="CheckInOnClose_UserAnswer" Value="Yes" />
    <Property Name="IDS_ONRESOLVEFROMVAULT_UserAnswer" Value="Yes" />
    <Property Name="CheckOutOnFileEdit_UserAnswer" Value="Yes" />
    <Property Name="IDS_CHECKOUT_LOCKED_WARN_UserAnswer" Value="Yes" />
    <Property Name="IDS_CHECKOUT_LOCKED_WARN_PromptInstruction" Value="PromptAlways" />
    <Property Name="IDS_CHECKOUT_OTHER_WARN_UserAnswer" Value="Yes" />
    <Property Name="IDS_READONLY_WARN_UserAnswer" Value="Yes" />
    <Property Name="IDS_READONLY_WARN_PromptInstruction" Value="PromptAlways" />
    <Property Name="IDS_CHECKOUT_LOCATION_WARN_UserAnswer" Value="Yes" />
    <Property Name="IDS_CHECKOUT_LOCATION_WARN_PromptInstruction" Value="PromptAlways" />
    <Property Name="IDS_FILEDIFF_WARN_UserAnswer" Value="Yes" />
  </Category>
0 Likes
Message 19 of 35

bradeneuropeArthur
Mentor
Mentor

You can change the file with xml serialization.

Or simple with text writer.

 

Change the xml file as wanted with text writer.

Than change it back with text writer.

 

Or with serialization of course.

 

Hope it will succeed!

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 20 of 35

basnederveen
Advocate
Advocate

Hi

 

To start this off I thought I'd try editing the settings in the xml file while inventor is running, and see if it also reads the settings from there, but it looks like Inventor just writes the settings after changing. So by just editing the XML I need a restart of inventor to have the new settings go into effect. 

 

Then I thought to try reloading the addin - this creates a new 'clean' xml file on reloading the addin. 

 

So this would mean I need to have the vault addin read the settings from the xml file while inventor is running?  Is this even possible?

 

While writing this I just realised it might work to unload the vault addin -> do the stuff i want to do -> enable the addin 

 

Still interested in knowing more about these XML settings though, I have a feeling editing those while inventor is running can be handy in alot of situations!