• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    Autodesk Navisworks API

    Reply
    Valued Contributor
    Posts: 80
    Registered: ‎06-26-2008
    Accepted Solution

    How to reference other dlls into my plugin

    139 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

    Please use plain text.
    ADN Support Specialist
    xiaodong.liang
    Posts: 805
    Registered: ‎06-12-2011

    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

    Please use plain text.
    Valued Contributor
    Posts: 80
    Registered: ‎06-26-2008

    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.

    Please use plain text.