Error calling VaultVirtualPath since Inventor 2018

Error calling VaultVirtualPath since Inventor 2018

Anonymous
Not applicable
596 Views
4 Replies
Message 1 of 5

Error calling VaultVirtualPath since Inventor 2018

Anonymous
Not applicable

 

In my addin I got code which makes a call to the get of property VaultVirtualPath() from object DesignProject.

 

 

My addin worked in Inventor 2014 but since executing it in Inventor 2018 I got the following exception message :

 

err_forum_autodesk.png

The API documentation says that the property is applicable only if "ProjectType is set to kVaultMode". I tried to set it in my default test project and it doesn't change anything.

 

Any idea of the meaning of this error ?

 

Best regards,

 

Gaël

0 Likes
Accepted solutions (1)
597 Views
4 Replies
Replies (4)
Message 2 of 5

junyi_zhu
Autodesk
Autodesk

This is actually an Inventor API so you may also want to try Inventor forum. From Vault perspective, can you try it with a vault project and with proper folder mappings? You can set up the mappings in Vault ribbon tab, "Assess" group, "Map folders" drop down.



Junyi Zhu

0 Likes
Message 3 of 5

Anonymous
Not applicable

@junyi_zhu Actually my post was moved here by a moderator ( @kelly.young).

Yes, my code is an Inventor addin.

I guess I have a problem with project dependencies (with InteropServices) but I have updated dependencies versions and all seems ok (see attachment).

 

 

0 Likes
Message 4 of 5

psaarloos
Collaborator
Collaborator
Accepted solution

Hi Gaël,

 

I've tested it, but I don't get an exception. It actually looks like there is an old reference to the Inventor API in your project. Maybe you had an older version on Inventor installed before. The Inventor.Interop gets installed in the GAC. It seems your application load version 16.0, while it should load version 22. Try to delete the reference of Autodesk.Inventor.Interop from your project and add it again from the location below.

 

C:\Program Files\Autodesk\Inventor 2018\Bin\Public Assemblies\Autodesk.Inventor.Interop.dll

 

Hope it helps!

Regards,
Pim Saarloos
Product Manager
If my post answers your question, please click the "Accept as Solution" button. Kudos are much appreciated!
Message 5 of 5

Anonymous
Not applicable

Hi Pim,

sorry for the late reply.

Yes that was it ! I upgraded the version of Interop dll as you told me and it solved the problem.

Thank you !

 

Best Regards

 

Gaël

 

0 Likes