Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Navisworks Export

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
Anonymous
744 Views, 2 Replies

Navisworks Export

Hi, 

 

I try this code :

 

//create NWExportOptions
NavisworksExportOptions nweOptions = new NavisworksExportOptions();
nweOptions.ExportScope = NavisworksExportScope.Model;
nweOptions.ViewId = uidoc.ActiveView.Id;
doc.Export(@"D:\test", @"test.nwc", nweOptions);

 

But now I get an error saying "A Navisworks Exporter is not available in the installed Revit.."

 

Is there a way to check if there is ?

I don't want to bypass this message with an try catch.

 

 

2 REPLIES 2
Message 2 of 3
arnostlobel
in reply to: Anonymous

Remy van den Bor:

 

OptionalFunctionalityUtils.IsNavisworksExporterAvailable will do the trick. Hopefully it is available in the version of Revit you have. Probably it is. This one particular method was intruduced in R2014 and the class itself was available even before that.

Arnošt Löbel
Message 3 of 3
Anonymous
in reply to: arnostlobel

Super, thanx, that's it 🙂

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


Autodesk Design & Make Report