Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

iLogic - Vault Get Latest for all Components

1 REPLY 1
Reply
Message 1 of 2
waynehelley
453 Views, 1 Reply

iLogic - Vault Get Latest for all Components

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
1 REPLY 1
Message 2 of 2
adam.nagy
in reply to: waynehelley

Hi,

 

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

 

Cheers,

 

 



Adam Nagy
Autodesk Platform Services

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report