Vault Login via iLogic and ilogic-Form

Vault Login via iLogic and ilogic-Form

j_weber
Mentor Mentor
784 Views
9 Replies
Message 1 of 10

Vault Login via iLogic and ilogic-Form

j_weber
Mentor
Mentor

Hi everybody, 

 

is it possible to create a vault login via iLogic ?

 

The reason why I ask is, I'm often working with two or three vault on a day. So everytime I must logout on the first Vault with the dialog and then change the login. Then I can connect to the second vault. 

It would be nice to have a vault login as an iLogic rule so that I can make a form for the login. 

That is a little bit faster when changing the Vault




Jörg Weber
CAD Systemtechniker für AutoCAD, Inventor, Vault





0 Likes
785 Views
9 Replies
Replies (9)
Message 2 of 10

bradeneuropeArthur
Mentor
Mentor

 

Hey Jörg,

I would prefer making a addin via vb.net. there you have more possibilities. Let me know if this is what you need.

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 10

JelteDeJong
Mentor
Mentor

Hi @bradeneuropeArthur I agree that you should do something like this from an addin. But as far as I know, the vault addin (in Inventor) does not have an api to logout/login into a vault. But I would like it very much if you can prove me wrong. Do you know about any API for the vault addin?

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

bradeneuropeArthur
Mentor
Mentor

Hi @JelteDeJong I have created already many add-ins in Inventor using the Vault API (I-property Lister; Vault Status linker etc).

I think that also the logout and login should be possible.

The API has already fix forms to achieve that.

Maybe I understand your question wrong but the Vault API is also available in Inventor.

Let's us otherwise discuss this in our native language by mail if needed.

 

Regards,

 

Arthur Knoors

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 10

JelteDeJong
Mentor
Mentor

I don't want to hijack this thread. But it's a topic that interests me because I have the same problems but was expecting it to be impossible. So if you can make this work you would help me also.

I created al sorts of addins for the vault client and job server. So I know there is an API to log into the vault. It's more or less the only option to get a connection and do anything useful.

But if I understand the opening post correctly (and what I would like) @j_weber wants to change the connection used by the "Vault addin" in Inventor and/or the connection used by the "Vault client". To be able to do that there should be some "Vault addin" and/or "Vault client" API to change the connection.

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

j_weber
Mentor
Mentor

Hello,
I often work with different vaults in Inventor.
To do this, I always have to log out of the vault in Inventor and then log in to another vault. I do this in Inventor via the Vault command in the ribbon.
My idea was to simplify this process via iLogic, or via vba.
It could be like logging out of the existing connection, then logging in to another connection. If you now create a rule for each connection, you could handle this well via a form.
Since my knowledge of iLogic is very limited, I am not a programmer, I was hoping that someone here might have an idea.

By the way, the text is written in German and translated by Deepl




Jörg Weber
CAD Systemtechniker für AutoCAD, Inventor, Vault





0 Likes
Message 7 of 10

bradeneuropeArthur
Mentor
Mentor
Will a addin work for you too?

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

j_weber
Mentor
Mentor

Yes, I think so. 

 




Jörg Weber
CAD Systemtechniker für AutoCAD, Inventor, Vault





0 Likes
Message 9 of 10

g.georgiades
Advocate
Advocate

Hi @j_weber 

 

I did some digging around and while this is theoretically possible, it would require knowledge/methods that is technically against Vault TOS. You would almost be better off running multiple Inventor instances, each logged into a different vault - possibly setting the Titlebar text to the vault you are logged into using ThisApplication.Caption. Though this would probably be more effort than just switching as you need.

 

It is possible to simulate pressing the vault login/logout buttons on the ribbon using

ThisApplication.CommandManager.ControlDefinitions.Item("VaultLogout").Execute2(true)
ThisApplication.CommandManager.ControlDefinitions.Item("VaultLogin").Execute2(true)

 

However, the logout command shows a popup which may be difficult to programmatically close afterwards?, and the login command obviously just shows the gui. Working these commands could possibly lead somewhere, but it can be hard to hook into GUIs when you don't know when they will open.

 

 

I did try to switch the vault connection held by Inventor in the back-end using

Dim mVltCon As Autodesk.DataManagement.Client.Framework.Vault.Currency.Connections.Connection 
	= Connectivity.Application.VaultBase.ConnectionManager.Instance.Connection

and some ADM Library functions to relogin, however it causes a de sync with the vault addin leading to crashing.

 

 

There is a way into the vault addin using

Dim edm = Connectivity.InventorAddin.EdmAddin.EdmSecurity.Instance

however, most of its easily accessible methods result in GUIs popping up which defeats the purpose.

 

 

A proper solution will only be possible by submitting a request to vault development team to expose the addin's automation object and them creating API functions to login/logout while keeping the vault addin in sync.

 

 

Greg

0 Likes
Message 10 of 10

j_weber
Mentor
Mentor
Hi Greg,

thanks for your answer.

I think I look for an contact to the vault development team.

thanks again and greetings from germany



Jörg Weber
CAD Systemtechniker für AutoCAD, Inventor, Vault





0 Likes