Navisworks API

Reply
Active Contributor
sd1036770
Posts: 29
Registered: ‎01-08-2013
Message 1 of 2 (307 Views)
Accepted Solution

Exception about Clash of Navisworks 2013 .net api

307 Views, 1 Replies
01-17-2013 05:27 PM

Hello,everyone!I want to make winform program with navisworks 2013 .net api,and the customer want the clash function,so i use the Autodesk.Navisworks.Clash dll,the code is below

Document document = Autodesk.Navisworks.Api.Application.MainDocument;
if (document == null || document.IsClear) 
{
    return false;
}

DocumentClash documentClash = DocumentExtensions.GetClash(document);
//DocumentClash documentClash = Autodesk.Navisworks.Api.Application.MainDocument.GetClash();
if (documentClash == null || documentClash.TestsData == null)
{
    return false;
}
foreach (ClashTest test in documentClash.TestsData.Tests)
{

}

 but it catch an exception called 未能加载文件或程序集"Autodesk.Navisworks.Clash.dll"或它的一个依赖项,找不到指定模块,so how to solve this problem?

无标题.jpg

Hi,

 

the clash or timeliner is a plugin which has not been exposed to the application of .NET control. It can be used with a plugin. The workaround I can think of is: write an automation and a plugin. the plugin do the job of clash. your application of .NET control starts the automation on the background, open Navisworks invisible and call the function of plugin. The .NET control gets the results from plugin and shows them in your interface. Obviously this means an inflexibility of interaction with your user. Sorry if this is bad news for you.

 

In addition, this is a global forum. Please try to translate the error message or any other information to English when you  post question. thus probbably some global peers would be able to help you.

ADN Support Specialist
xiaodong.liang
Posts: 1,273
Registered: ‎06-12-2011
Message 2 of 2 (298 Views)

Re: Exception about Clash of Navisworks 2013 .net api

01-17-2013 11:58 PM in reply to: sd1036770

Hi,

 

the clash or timeliner is a plugin which has not been exposed to the application of .NET control. It can be used with a plugin. The workaround I can think of is: write an automation and a plugin. the plugin do the job of clash. your application of .NET control starts the automation on the background, open Navisworks invisible and call the function of plugin. The .NET control gets the results from plugin and shows them in your interface. Obviously this means an inflexibility of interaction with your user. Sorry if this is bad news for you.

 

In addition, this is a global forum. Please try to translate the error message or any other information to English when you  post question. thus probbably some global peers would be able to help you.



Xiaodong Liang
Developer Technical Services
Autodesk Developer Network

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.