Navisworks API

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

Exception about Clash of Navisworks 2013 .net api

295 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?


ADN Support Specialist
Posts: 1,260
Registered: ‎06-12-2011
Message 2 of 2 (286 Views)

Re: Exception about Clash of Navisworks 2013 .net api

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



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

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 to get help installing your software.

Ask the Community