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
R.van.den.Bor
648 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.

 

 

Kind regards,
Remy van den Bor
ICN Solutions B.V.
Liked this post or found it usefull, don't forget the Kudo It won't hurt (at least not me).
2 REPLIES 2
Message 2 of 3
arnostlobel
in reply to: R.van.den.Bor

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
R.van.den.Bor
in reply to: arnostlobel

Super, thanx, that's it 🙂
Kind regards,
Remy van den Bor
ICN Solutions B.V.
Liked this post or found it usefull, don't forget the Kudo It won't hurt (at least not me).

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

Post to forums  

Autodesk DevCon in Munich May 28-29th


Rail Community