Creates a new energy analysis detailed model.
Namespace: Autodesk.Revit.DB.Analysis
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.4.0.0 (26.4.0.0)
Syntax
C#
public static EnergyAnalysisDetailModel Create( Document document, EnergyAnalysisDetailModelOptions options )
Parameters
- document Document
- The document that contains the physical model of the building.
- options EnergyAnalysisDetailModelOptions
- The options to control the calculation rules.
Return Value
EnergyAnalysisDetailModelThe created model instance.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | An EnergyAnalysisDetailModel cannot be created if EnergyModelType.BuildingElement is input and AnalysisMode.ConceptualMasses is set in EnergyDataSettings (these values are incompatible). -or- Throws if there are no valid spatial bounding elements, or no valid spatial elements in the document. |
| ArgumentNullException | A non-optional argument was null |
| InvalidOperationException | Failed to create the energy analysis detail model. |
| OperationCanceledException | Throws if user aborted the energy analysis detail model creation. |
