VaultOption

VaultOption

JoAntt
Enthusiast Enthusiast
636 Views
4 Replies
Message 1 of 5

VaultOption

JoAntt
Enthusiast
Enthusiast

I use this to check out files

 

invApp.CommandManager.ControlDefinitions.Item("VaultCheckoutTop")

 

How do i define options with this?

Its the closest i can find that may have something to do with it.

 

invApp.CommandManager.ControlDefinitions.Item("VaultOption")

 

I need to set the "Include children" and so on.

 

 

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

bradeneuropeArthur
Mentor
Mentor

You need to use the Vault API for that kind of things. Only with the Inventor api this will 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 3 of 5

g.georgiades
Advocate
Advocate
Accepted solution

Find this file here

C:\Users\<USERNAME>\AppData\Roaming\Autodesk\Inventor 2023 Vault Addin\ApplicationPreferences.xml

 

If Inventor is closed - you can simply modify this file and the changed settings will take effect the next time you open Inventor.

 

If Inventor is open - read the ID and Name from the file and you can use this iLogic snippet to set the values.

 

 

Imports Autodesk.DataManagement.Client.Framework.Forms
AddReference "Autodesk.DataManagement.Client.Framework.Forms.dll"

'Library.ApplicationPreferences.Load() 'Load modified settings if file edited outside of Inventor process.

Library.ApplicationPreferences.Set("CheckInDialogOptions", "IncludeChildren", True) 'Directly sets the setting right from the iLogic Rule.

 

 

See this post to edit vault prompts. Those are handled differently.

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

 

ggeorgiades_0-1708713532964.png

 

 

Message 4 of 5

JoAntt
Enthusiast
Enthusiast
Thank you!
0 Likes
Message 5 of 5

Skadborg.NTI
Advocate
Advocate

Oops - wrong thread

0 Likes