iLogic - Vault Get Latest for all Components

iLogic - Vault Get Latest for all Components

waynehelley
Collaborator Collaborator
570 Views
1 Reply
Message 1 of 2

iLogic - Vault Get Latest for all Components

waynehelley
Collaborator
Collaborator

Hello all,

 

I'm just looking into what is possible using iLogic to trigger Vault events.

 

I can use the following...

 

Dim oCommandMgr As CommandManager
oCommandMgr = ThisApplication.CommandManager


oCommandMgr.ControlDefinitions.Item("VaultGetLatest").Execute

 

to get the latest version of the active document.  What I would really like to do it get the latest version of components within the active document. I thought this might work...

 

Dim oCommandMgr As CommandManager
oCommandMgr = ThisApplication.CommandManager

compo = Component.InventorComponent("Frame")
oCommandMgr.ControlDefinitions.Item("VaultGetLatest").Execute

 

but it doesn't.

 

Ideally the code would loop and run For Each component in the active document.  Does anybody know if this is possible?

Wayne Helley
Inventor 2013 Certified Professional

Autodesk Inventor Professional 2023
Visual Studio 2022
Windows 10 Pro, 64-bit
0 Likes
571 Views
1 Reply
Reply (1)
Message 2 of 2

adam.nagy
Autodesk Support
Autodesk Support

Hi,

 

Maybe you could open up each document and then run the Vault command?

 

Cheers,

 

 



Adam Nagy
Autodesk Platform Services
0 Likes