Navisworks Export

Navisworks Export

Anonymous
Not applicable
873 Views
2 Replies
Message 1 of 3

Navisworks Export

Anonymous
Not applicable

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.

 

 

0 Likes
Accepted solutions (1)
874 Views
2 Replies
Replies (2)
Message 2 of 3

arnostlobel
Alumni
Alumni
Accepted solution

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
Not applicable
Super, thanx, that's it 🙂
0 Likes