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: 

update properties from vault

2 REPLIES 2
Reply
Message 1 of 3
tegstette
861 Views, 2 Replies

update properties from vault

Vault update - settings - ilogic.jpgHi

 

I need some help... I want to update properties from Vault via an iLogic rule and I have this snippet:

'Checks out the file and update latest properties from Vault'
'Dim oDDoc As PartDocument'oDDoc = ThisApplication.ActiveDocument''Dim oControlDef As ControlDefinition'ThisApplication.CommandManager.ControlDefinitions.Item("VaultPropertyWriteBack").Execute2 (True)

But I want the relationship Include Children not to be checked!

 

It would also be great if i did not have to hit "OK" for every file...so it just run the rule without any checkboxes (both for settings and the Get Latest Properties window...)

 

Anyone who can help?

Best regards
TG

Autodesk Inventor/Vault Professional 2021
2 REPLIES 2
Message 2 of 3
tegstette
in reply to: tegstette

I am desperate... so I will hereby try with the magic word....: PLEASE?  Smiley Happy

 

I need this in a very big process and this would be extremely effective for me... Especially if I can make it to work like I do not get the box to appear at all and don't have to hit OK for every file...

Best regards
TG

Autodesk Inventor/Vault Professional 2021
Message 3 of 3
wayne.brill
in reply to: tegstette

Hello TG,

 

At this time there is not an API for the Inventor Vault Add-In and there is not a quick way to automate this Vault Add-In command.

 

From a custom Inventor Add-In you could use the Vault API and it could get the properties from the file in the Vault. You could use the Inventor API to update the Inventor document.  I don't see a way to use the Vault API directly in an iLogic rule. You could try using a dll that uses the Vault API and use that in an iLogic rule. (I have not tried this) 

 

These DevBlog posts have examples of getting properties using the Vault API.

http://adndevblog.typepad.com/manufacturing/2013/11/vault-2014-api-example-getting-property-values-o... 

http://adndevblog.typepad.com/manufacturing/2013/12/getting-properties-of-file-interation-with-vault...

 

 

This DevBlog post discusses getting the login from the Inventor Vault Add-In.

http://adndevblog.typepad.com/manufacturing/2013/09/autocad-2014-vault-add-in-connection.html

 

 

Thanks,

Wayne

 



Wayne Brill
Developer Technical Services
Autodesk Developer Network

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

Post to forums  

Autodesk Design & Make Report