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.
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).
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