Document.Export
Description:
Exports a view specified in the export options to the STL format.
Exports a view specified in the export options to the STL format.
Overloads (13):
Export(String,String,STLExportOptions)
public bool Export(
string folder,
string name,
STLExportOptions options
)
-
StringfolderOutput folder into which the file will be exported. The folder must exist.
-
StringnameIndicates the name of the STL file to export. If it doesn't end with ".stl", this extension will be added automatically. The name cannot contain any of the following characters: \/:*?"<>|. Empty name is not acceptable.
-
optionsVarious options applicable to the STL format.
Return Value
bool
True if successful, otherwise False.
-
NullOrEmpty -or- Contains invalid characters. -or- The provided options do not specify a printable 3D view.
-
A non-optional argument was null
-
This method may not be called during dynamic update.
-
Export is temporarily disabled. -or- Exporting is not allowed in the current application mode.
-
The folder does not exist.
-
The ShapeExporter functionality is not available in the installed Revit, or the Material Library is missing.