Community
Vault Customization
Share your knowledge, ask questions, and explore popular Vault API, Data Standard, and VBA topics related to programming, creating add-ins, or working with the Vault API.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Inventor Add-In with Vault API Call

1 REPLY 1
Reply
Message 1 of 2
xavier_dumont1
930 Views, 1 Reply

Inventor Add-In with Vault API Call

Hi all,

 

We have to create an Inventor add-in who need to check if the ActiveDocument in Inventor is checked-out from Vault. Actually, we only check if the file is not read-only but it's not a robust way to know if the user can really edit the ActiveDocument.

 

Is it possible to create and Inventor add-in who perform some Vault API Call?

 

Thanks in advance.

1 REPLY 1
Message 2 of 2

Hi,

 

This DevBlog post has an example of an Inventor Add-In that gets the loggin of the Inventor Vault Add-In.      http://adndevblog.typepad.com/manufacturing/2013/09/autocad-2014-vault-add-in-connection.html

 

It uses the Vault API to acccess a folder as an example. I am not finding an example that determines if the Active Inventor file is checked out. Here are a couple of posts that should be helpful. 

 

This post has an example of getting properties of a file. (The File class also has a CheckedOut property).

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

 

This DevBlog post discusses how to checkout files:

http://adndevblog.typepad.com/manufacturing/2013/06/checkout-checkin-a-file-in-vault-2014.html

 

Please keep in mind that adding a new assembly to the Vault is not supported. (need to manually use the Vault Add-In) This blog has a lot of material on the Vault API:

http://justonesandzeros.typepad.com/

 

You can use a tool like Fiddler to see what function calls the Vault Plug-In is doing in Inventor. (or in Vault Explorer)http://justonesandzeros.typepad.com/blog/2012/03/fiddling-with-the-vault-api.html   

 

Keep in mind that there is not any API for the Vault Inventor Add-In.

 

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