The Autodesk.Revit.DB.Analysis.gbXMLConditionType
is a class in the Revit API that represents the type of condition for energy analysis in green building XML (gbXML) format.
The gbXMLConditionType
class has the following properties:
Name
: The name of the condition type.gbXMLIdentifier
: The gbXML identifier for the condition type.The gbXMLConditionType
class has no methods.
The gbXMLConditionType
class is used in the context of Revit's energy analysis functionality, specifically when exporting to gbXML format.
To use the gbXMLConditionType
class, you can create an instance of it and set the Name
and gbXMLIdentifier
properties.
gbXMLConditionType conditionType = new gbXMLConditionType();
conditionType.Name = "Interior Condition";
conditionType.gbXMLIdentifier = "Interior";
Here's an example of how you can use the gbXMLConditionType
class to export an energy analysis model to gbXML format:
// Get the active document
Document doc = ActiveUIDocument.Document;
// Get the energy settings
EnergyAnalysisDetailModel profile = EnergyAnalysisDetailModel.GetOrCreateEnergyAnalysisDetailModel(doc);
// Set the gbXML export settings
GBXMLExportOptions gbXMLExportOptions = new GBXMLExportOptions(profile);
gbXMLExportOptions.ConditionType = new gbXMLConditionType()
{
Name = "Interior Condition",
gbXMLIdentifier = "Interior"
};
// Export to gbXML format
Profile gbXMLProfile = profile.Analyze(gbXMLExportOptions);
gbXMLProfile.Export(@"C:\path\to\output\file.xml", true);
The Autodesk.Revit.DB.Analysis.gbXMLConditionType
is a class in the Revit API that represents the type of condition for energy analysis in gbXML format. It is used in the context of exporting energy analysis models to gbXML format, and can be used to set the condition type for the export.