Community
Navisworks API
Welcome to Autodesk’s Navisworks API Forums. Share your knowledge, ask questions, and explore popular Navisworks API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Navisworks plugin debugging

1 REPLY 1
SOLVED
Reply
Message 1 of 2
DEVR4402
1109 Views, 1 Reply

Navisworks plugin debugging

Hi all, do we have to restart Navisworks after any change in our plugin code for debugging?

 

It has been raised for a long time and seems really stupid. ADSK cannot find a way for our poor users?

 

I know there is an approach in Revit to save us from restarting the host app when debugging.

 

If you know there is a way, please share it.

 

Thanks a lot.

Tags (2)
1 REPLY 1
Message 2 of 2
mikako_harada
in reply to: DEVR4402

Dear DEVR4402, 

 

Unfortunately this is a known limitation using .NET.  When we started to support .NET API (AutoCAD .NET back in 2007 or so), we had this topics. To have apps unloadable, we will need to load it in a separate application domain.  This article will probably gives to an overview. 

 

http://through-the-interface.typepad.com/through_the_interface/2008/09/tired-of-not-be.html

 

I'm not sure if the same approach works with .NET, but some people seems to make it work.  If you are interested, you may want to take a look at discussion like this one: 

 

http://forums.autodesk.com/t5/NET/NET-RELOAD-Utility-for-Visual-Studio-Download-Here/td-p/3185104/hi...

 

With Revit, we have so-called AppManager, which takes care of app domain and you can run from "External Tools" pull down menu.  We have that because we had additional overhead of creating add-in manifest to load a command, which was tadious. (in AutoCAD, it is easy - you run netload then choose a dll.)  But it turned out to be helpful for debugging purposes as well. 

Anyway, maybe I will try to put a wish for a similiar tool.  In a mean time, if somebody can make a similiar tool and make it avilable from our store, that will be cool 😉 


Mikako Harada
Developer Technical Services

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


 

Autodesk Design & Make Report