Export Method (String, String, GBXMLExportOptions)


Export the model in gbXML (green-building) format.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 2015.0.0.0 (2015.0.0.0)

Syntax

C#
public bool Export(
	string folder,
	string name,
	GBXMLExportOptions options
)
Visual Basic
Public Function Export ( _
	folder As String, _
	name As String, _
	options As GBXMLExportOptions _
) As Boolean
Visual C++
public:
bool Export(
	String^ folder, 
	String^ name, 
	GBXMLExportOptions^ options
)

Parameters

folder
Type: System String
Indicates the path of a folder where to export the gbXML file.
name
Type: System String
Indicates the name of the gbXML file to export. If it doesn't end with ".xml", extension ".xml" will be added automatically. The name cannot contain any of the following characters: \/:*?"<>|. Empty name is not acceptable.
options
Type: Autodesk.Revit.DB GBXMLExportOptions
Options which control the contents of the export.

Return Value

True if successful, otherwise False.

Remarks

Export the model in gbXML (green-building) format

Exceptions

Exception Condition
Autodesk.Revit.Exceptions ArgumentException The path is not valid for exporting gbXML files. -or- The name is empty or not valid for exporting gbXML files.
Autodesk.Revit.Exceptions ArgumentNullException A non-optional argument was NULL
Autodesk.Revit.Exceptions InvalidOperationException Exporting is not allowed in the current application mode. -or- Export is temporarily disabled.

See Also