Can we changes .dll location for Navisworks plugin ??

Can we changes .dll location for Navisworks plugin ??

mukund.thakare
Enthusiast Enthusiast
4,867 Views
5 Replies
Message 1 of 6

Can we changes .dll location for Navisworks plugin ??

mukund.thakare
Enthusiast
Enthusiast

Hello forum,
I had question in my mind this evening about changing the .dll location for Navisworks, Right now I am pasting my plugin, In the Navisworks installation directory,
(C:\Program Files\Autodesk\Navisworks Manage 2019\Plugins\pluginname\pluginname.dll)................(1)
For some reason I want to paste it some other location like,
(C:\Users\user.name\AppData\Roaming\Autodesk\Navisworks Manage 2019\Addins\2019)..................(2)
I tried copy pasting the same plugin folder here but it's now working, I tried couple of other locations too.
So my question is, Can we have another location for Navisworks plugin other than (1) ??

Thanks in advance. 

0 Likes
Accepted solutions (1)
4,868 Views
5 Replies
Replies (5)
Message 2 of 6

Anonymous
Not applicable
Accepted solution

Hi @mukund.thakare 

 

Yes it's possible, but you need to tell Navisworks where to find the dll on each execution. This can be done using the "-AddPluginAssembly" command line that needs to be added to the start shortcut of Navisworks (if used in GUI mode) or in your code of execution of the plugin (in NoGUI mode). 

 

"Navisworks_Folder\Roamer.exe" -AddPluginAssembly "DLL_Folder\NavisworksPlugin.dll"

 

Best Regards,

Message 3 of 6

sampath.jeedigam
Enthusiast
Enthusiast
0 Likes
Message 4 of 6

lumoric
Contributor
Contributor

I'm experiencing an issue when trying to load an dll assembly from custom location. I do not have admin privileges to place custom plugins to Program Files installation folder so I have to use the custom path.

I'm trying to load CASE.Navis2BCF plugin, and I have pasted the folder in \AppData\Roaming\Autodesk Navisworks Manage 2019\Plugins\CASE.Navis2BCF so when I run through CMD with:

"C:\Program Files\Autodesk\Navisworks Manage 2019\Roamer.exe" -AddPluginAssembly "C:\Users\USERNAME\AppData\Roaming\Autodesk Navisworks Manage 2019\Plugins\CASE.Navis2BCF\CASE.Navis2BCF.dll" nothing happens. Any idea why is that?

 

Thanks,

Luka

0 Likes
Message 5 of 6

mukund.thakare
Enthusiast
Enthusiast

@lumoric Your plugin path seems to be odd.
One question - 
1) Are you able to execute plugin manually from Navisworks ? If yes then this should work.

Otherwise you better have admin  privileges.

0 Likes
Message 6 of 6

lumoric
Contributor
Contributor

well, I don't see it being odd, it's just custom... 

 

How does one execute a plugin manually? 

 

As I understand the process, Navisworks looks for a dll assembly file in the default Plugins folder located in ProgramFiles installation folder. This can then be overwritten with the custom startup command -AddPluginAssembly to tell Navis to look in a custom path for a specific dll. 

0 Likes