When adding a ViewControl in NavisWorks, the following error message is displayed:

2223854780
Community Visitor
Community Visitor

When adding a ViewControl in NavisWorks, the following error message is displayed:

2223854780
Community Visitor
Community Visitor

Added a viewcontrol control via a dll file, but when dragging and dropping it onto a form in the toolbox, it says that the creation of the component "viewcontrol" failed with "System.IO.FileNotFoundException: Failed to load file or assembly Autodesk.Navisworks.Failed to load file or assembly Autodesk.Navisworks.

2223854780_0-1728983086187.png

 

There should be no problem with the reference to the Autodesk.Navisworks.Api, as the following code runs successfully.

2223854780_1-1728983105702.png

 

0 Likes
Reply
182 Views
2 Replies
Replies (2)

naveen.kumar.t
Autodesk Support
Autodesk Support

Hi @2223854780 ,

 

Apologies for the delay in addressing your issue.

I recommend downloading the Navisworks SDK and running the Viewer samples located in "net\examples\Controls\Viewer". If the sample runs without any issues, you can compare the SDK sample code with your own code to identify any discrepancies. I tested the SDK sample, and it worked fine for me.


Navisworks SDK: https://aps.autodesk.com/developer/overview/navisworks 

Additionally, when I ran the sample in Navisworks 2024, I encountered an error, but I was able to resolve it by following the steps outlined in the link below:

https://adndevblog.typepad.com/aec/2023/06/navisworks-2024-sdk-is-posted.html 


Naveen Kumar T
Developer Technical Services
Autodesk Developer Network

0 Likes

naveen.kumar.t
Autodesk Support
Autodesk Support

Hi @2223854780 ,

 

Also, Please take a look at this below link

 

https://apidocs.co/apps/navisworks/2018/87317537-2911-4c08-b492-6496c82b3ed8.htm 


Naveen Kumar T
Developer Technical Services
Autodesk Developer Network

0 Likes