I was looking for the paths for the vault professional 2014 we have in our facility to save the file (dwg, pdf etc) from autodesk inventor idw files to vault without log in into the vault. If someone can help us by telling that path in order to save those files by writing a script.
Thanks in advance.
Sincerely
Sanjit
You may use Connection.FileManager.CheckinFile(…) function to add files. But much more difficult to save not only files but also their dependencies and all required metadata. Some more information about file relationships and attachments can be found here: http://justonesandzeros.typepad.com/blog/2010/11/attachments-and-dependencies-faq.html.
It would be nice if we could use Inventor Vault addin for this purpose, but unfortunately it has no opened API. That’s why it is safer to add CAD files via UI tools.
See also this thread: http://forums.autodesk.com/t5/Autodesk-Vault-Customization/Automated-method-to-add-new-Inventor-CAD-...
Look at the Vault 2014 SDK Help file:
Autodesk.DataManagement.Client.Framework.Vault.Services.Connection Namespace > IFileManager Interface > CheckinFile Method
Cheers,
SDK help file is located in this folder:
C:\Program Files (x86)\Autodesk\Autodesk Vault 2014 SDK\docs
Video recordings on this page
http://usa.autodesk.com/adsk/servlet/index?siteID=123112&id=13433205
could be useful as well. See Part 2 - Server Communication.
Hi Sanjit,
Vault does not have a folder that it uses to automatically add files to a vault by default. (You could request this type of functionality on the Vault Idea Station).
A custom application that checks out the idw and then checks it back in could be used to attach files to the idw. Functions such as CheckInFile() and CheckinUploadedFile() have an associations parameter that would associate the dwg or pdf to the idw file. (a normal association not as a design visualization file) The dwg/pdf would also need to be added to the Vault. You can use the AddFile() method to do this. This SDK sample uses AddFile()
C:\Program Files (x86)\Autodesk\Autodesk Vault 2014 SDK\VS10\VB\VaultBrowserSample
Thanks,