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.
Solved! Go to Solution.
Solved by arnostlobel. Go to 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.
Can't find what you're looking for? Ask the community or share your knowledge.