Navisworks API

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

Exception about Clash of Navisworks 2013 .net api

252 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

ADN Support Specialist
xiaodong.liang
Posts: 1,190
Registered: ‎06-12-2011
Message 2 of 2 (243 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

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Welcome to the new Autodesk Community!
If this is your first visit, click here to get started and make the most of the Community. Let us know what you think of the new experience in the Community Feedback Forum.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community