Exports a Revit project to the Navisworks .nwc format.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since: 2014
Syntax
C# |
---|
|
Visual Basic |
---|
|
Visual C++ |
---|
|
Parameters
- folder
- Type: SystemString
The name of the folder for the exported file.
- name
- Type: SystemString
The name of the exported file. If it doesn't end in '.nwc', this extension will be added automatically.
- options
- Type: Autodesk.Revit.DBNavisworksExportOptions
Options which control the contents of the export.
Remarks
This is an optional functionality that does not have to be installed. The method "OptionalFunctionalityUtils.isNavisworksExporterAvailable()" can be called to check if the exporter is present.
Exceptions
Exception | Condition |
---|---|
Autodesk.Revit.ExceptionsArgumentException | NullOrEmpty -or- Contains invalid characters. -or- The input options were not valid. Check the exception message for specific details. |
Autodesk.Revit.ExceptionsArgumentNullException | A non-optional argument was null |
Autodesk.Revit.ExceptionsInvalidOperationException | Export is temporarily disabled. -or- Exporting is not allowed in the current application mode. |
Autodesk.Revit.ExceptionsInvalidPathArgumentException | The folder does not exist. |
Autodesk.Revit.ExceptionsOperationCanceledException | The export operation is cancelled in event handler. |
Autodesk.Revit.ExceptionsOptionalFunctionalityNotAvailableException | A Navisworks Exporter is not available in the installed Revit. |