2024 Method
Changes 0
M

Document.Export

Description:
Export the model in gbXML (green-building) format.
Remarks:
This export operation will operate on the main EnergyAnalysisDetailModel in the document, if it exists (see EnergyAnalysisDetailModel.GetMainEnergyAnalysisDetailModel()). If it does not exist, or if the requested ExportEnergyModelType does not match the type of the main EnergyAnalysisDetailModel, this function will fail. If you need to export a model with different settings or type than the current main energy model in the document, you should delete the current main energy model, update the EnergyAnalysisSettings, and regenerate the energy model.
public bool Export(
	string folder,
	string name,
	GBXMLExportOptions options
)
  • String
    folder
    Indicates the path of a folder where to export the gbXML file.
  • String
    name
    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
    Options which control the contents of the export.
Return Value bool True if successful, otherwise False.