Inventor Customization

Inventor Customization

Reply
Contributor
gadurai
Posts: 23
Registered: ‎01-03-2011
Message 1 of 2 (1,164 Views)

How to add part/Assembly from Vault Library in to any assembly

1164 Views, 1 Replies
01-09-2013 01:13 AM

Hi, I have a library file in the vault folder. I need use this library files to create new assembly file. How can i use inventor API similar to add occurrences to any assembly file.?. I am using Vault Project and saving the new assembly to the local folder. There is no need to downloa\Checout Vault Library file to local drive.Just i need to use the vault library files for assembly. Later If I add this project to vault along with the assembly i have created, It should always have the reference with the vault libary files. Kindly assist us to resolve this. Regards, GAD

ADN Support Specialist
xiaodong.liang
Posts: 1,335
Registered: ‎06-12-2011
Message 2 of 2 (1,147 Views)

Re: How to add part/Assembly from Vault Library in to any assembly

01-14-2013 11:17 PM in reply to: gadurai

Hi,

 

you need to use both Inventor and Vault API:

- use Vault API (either DocumentService.DownloadFile or IExplorerUtil.DownloadFile) to download file from Vault to local workspace. IExplorerUtil is preferred way because it handles couple of things for developer (i.e. finding our correct file location, resolving file references, setting attributes for local file).

- use Inventor API to place library part into assembly (various ComponentOccurrence.Add.. methods).

 

When new assembly is added to Vault later then the library part will be automatically recognized by Vault and used for references.



Xiaodong Liang
Developer Technical Services
Autodesk Developer Network

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.