Navisworks API

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

How to reference other dlls into my plugin

201 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,190
Registered: ‎06-12-2011
Message 2 of 3 (196 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
Posts: 82
Registered: ‎06-26-2008
Message 3 of 3 (190 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
Welcome to the new Autodesk Community!
If this is your first visit, click here to get started and make the most of the Community. Let us know what you think of the new experience in the Community Feedback Forum.

Need installation help?

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

Ask the Community