Navisworks API

Reply
Valued Contributor
Paulio
Posts: 82
Registered: ‎06-26-2008
Message 1 of 3 (221 Views)
Accepted Solution

How to reference other dlls into my plugin

221 Views, 2 Replies
05-23-2012 07:47 AM

Ok this is my setup.

 

I have:

 

A plugin for Navisworks.

An executable which calls and runs the plugin.

A dll containing forms and methods that both the executable and the plugin need to access.

 

My question is: Where do I need to put this dll so that the plugin can find it? Currently, when I'm trying to debug my plugin, I'm getting a "could not load file or assembly {my dll}... The system cannot find the file specified" error as soon as it tries to access a method in the referenced dll.

 

I'm pretty new to Navisworks so any help would be very much appreciated.

 

Thanks

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

Re: How to reference other dlls into my plugin

05-23-2012 08:41 PM in reply to: Paulio

You need to copy any dependencies of the plugin except any generated by the Navisworks API into the 'dependencies' folder, instead of the same folder of the plugin dll 

 

 e.g. Assume the plugin is "NWPlugin", it has one dependent class: Class1.

 

<NW>\Plugins\NWPlugin\NWPlugin.dll

 

<NW>\Dependencies\Class1.dll



Xiaodong Liang
Developer Technical Services
Autodesk Developer Network

Valued Contributor
Paulio
Posts: 82
Registered: ‎06-26-2008
Message 3 of 3 (210 Views)

Re: How to reference other dlls into my plugin

05-23-2012 11:51 PM in reply to: xiaodong.liang

Excellent. Thank you very much.

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community