Get Vault mapping for libraries

Get Vault mapping for libraries

FRFR1426
Collaborator Collaborator
388 Views
1 Reply
Message 1 of 2

Get Vault mapping for libraries

FRFR1426
Collaborator
Collaborator

I need to find the mapping between the libraries defined in the project and the Vault virtual paths. In fact I need to retrieve the following information (sorry the screenshot is in french):

 

2017-10-23_121736.png

 

 

I think it's handled in the Inventor Vault client, but I can not find an API to get these information.

Maxence DELANNOY
Manager
Add-ins development for Autodesk software products
http://wiip.fr
0 Likes
Accepted solutions (1)
389 Views
1 Reply
Reply (1)
Message 2 of 2

FRFR1426
Collaborator
Collaborator
Accepted solution

You're never served better than by yourself.

 

The Vault paths are written in the IPJ:

 

<ProjectPaths>
  <ProjectPath pathtype="Library">
    <PathName>Library</PathName>
    <Path>C:\...</Path>
    <VaultPath>$/...</VaultPath>
  </ProjectPath>
</ProjectPaths>

But the ProjectPath class in the Inventor API does not have a property VaultPath, so we have to read the xml directly.

 

And yet the DesignProject has a VaultVirtualPath property. It's not all that consistent.

Maxence DELANNOY
Manager
Add-ins development for Autodesk software products
http://wiip.fr
0 Likes