Change Inventor Vault Settings Through Vault Add-in Using iLogic

Change Inventor Vault Settings Through Vault Add-in Using iLogic

Matthew_Policelli
Advocate Advocate
924 Views
7 Replies
Message 1 of 8

Change Inventor Vault Settings Through Vault Add-in Using iLogic

Matthew_Policelli
Advocate
Advocate

Good morning,

 

I am trying to write an iLogic for new inventor install setup for new hires or when we need to replace computers, to handle all the settings with a single click of a button (including the ones that don't transfer over with Export/Import Settings)

 

Vault settings do not export/import, so this is one I'd definitely like to automate setup for.

 

Is there a way to use the Vault Add-In iLogic to change Vault Settings (for example, to uncheck related documentation in the settings for Change State and/or Change Revision? Or to set the settings for the Get command?) Or would this only change the settings for those things on the Vault Add-In side and not the Vault application side?

0 Likes
Accepted solutions (2)
925 Views
7 Replies
Replies (7)
Message 2 of 8

JelteDeJong
Mentor
Mentor
Accepted solution

I'm not aware of any API calls that let you set vault settings. However, all settings are saved in setting files (xml format). I have a copy of those files on the network. Then when I need to (re)install a computer I copy those files to the correct location using a batch file. (By the way, you can do the same with the Inventor settings 😉)

The location of those settings files (for Vault) can be found here:

https://www.autodesk.com/support/technical/article/caas/sfdcarticles/sfdcarticles/Where-are-the-diff...

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

0 Likes
Message 3 of 8

g.georgiades
Advocate
Advocate
0 Likes
Message 4 of 8

Matthew_Policelli
Advocate
Advocate

Thanks, this is way better of a solution!

 

Do you know if the settings for Change State and Change Revision part of any of those files? I can't tell from the descriptions for them in the link.

 

The reason I ask is because include related documentation is checked by default and we would like our users to have it unchecked, but that's a hard one to remember.

 

Also, what about inventor settings that can't be imported? For example, changing add-in loading options from the defaults? Is that stored somewhere?

0 Likes
Message 5 of 8

g.georgiades
Advocate
Advocate
Accepted solution

Can you show a screen shot of the settings you are describing? I don't use those and am unsure where they located on the GUIs.

 

You can edit the default load settings for any addin you deploy, 3rd part or not - just go into the .addin file stored with the addin files and edit these as zero or one. You cannot stop the addin from being blocked when it is first loaded. That is a security measure from autodesk. Users with new addin installations will have to manually go into the addin interface to unblock and load the addins.

 

<LoadOnStartUp>1</LoadOnStartUp>
<UserUnloadable>0</UserUnloadable>

 

0 Likes
Message 6 of 8

Matthew_Policelli
Advocate
Advocate

Matthew_Policelli_0-1715949474450.png

 

0 Likes
Message 7 of 8

g.georgiades
Advocate
Advocate

Ah - That dialog is from the Vault Client, not inventor.

 

The settings for that dialog are stored in

C:\Users\<user name>\AppData\Roaming\Autodesk\Autodesk Vault Professional 2023\ApplicationPreferences.xml

 

You may be able to use the snippet from that other post directly in a vault addin, i have not tested it though.

0 Likes
Message 8 of 8

Matthew_Policelli
Advocate
Advocate

Thank you. I think a combination of both answers are what I am looking for - I can change settings for the Vault Add-In through an iLogic, and copy-paste the Vault Client setting files so that we don't have to set them up each time we get a new hire or a new computer.

0 Likes