C# Class Revit.SDK.Samples.EnergyAnalysisModel.CS.EnergyAnalysisModel

Show file Open project: AMEE/revit Class Usage Examples

Public Methods

Method Description
EnergyAnalysisModel ( System.Windows.Forms.Document doc ) : System

Constructor

GetAnalyticalOpenings ( ) : System.Xml.Linq.XElement

This method get all openings surfaces from current model

GetAnalyticalShadingSurfaces ( ) : System.Xml.Linq.XElement

This method get all Analytical ShadingSurfaces from current model

GetAnalyticalSpaces ( ) : System.Xml.Linq.XElement

Extract Analytical data about Space and its surfaces

Initialize ( ) : void

Get EnergyAnalysisDetailModel object and Initialize it.

RefreshAnalysisData ( TreeView treeView ) : void

Get Analytical data and pass them to UI controls

SetTier ( String tierValue ) : void

This method converts UI selected string to EnergyAnalysisDetailModelTier enum

Private Methods

Method Description
SurfacesToXElement ( System.Xml.Linq.XElement node, IList analyticalSurfaces ) : void

The method adds given surfaces to specific XElement

XElementToTreeNode ( System.Xml.Linq.XElement element ) : TreeNode

This method converts XElement nodes to Tree nodes so that analysis data could be displayed in UI treeView

Method Details

EnergyAnalysisModel() public method

Constructor
public EnergyAnalysisModel ( System.Windows.Forms.Document doc ) : System
doc System.Windows.Forms.Document Revit Document
return System

GetAnalyticalOpenings() public method

This method get all openings surfaces from current model
public GetAnalyticalOpenings ( ) : System.Xml.Linq.XElement
return System.Xml.Linq.XElement

GetAnalyticalShadingSurfaces() public method

This method get all Analytical ShadingSurfaces from current model
public GetAnalyticalShadingSurfaces ( ) : System.Xml.Linq.XElement
return System.Xml.Linq.XElement

GetAnalyticalSpaces() public method

Extract Analytical data about Space and its surfaces
public GetAnalyticalSpaces ( ) : System.Xml.Linq.XElement
return System.Xml.Linq.XElement

Initialize() public method

Get EnergyAnalysisDetailModel object and Initialize it.
public Initialize ( ) : void
return void

RefreshAnalysisData() public method

Get Analytical data and pass them to UI controls
public RefreshAnalysisData ( TreeView treeView ) : void
treeView System.Windows.Forms.TreeView
return void

SetTier() public method

This method converts UI selected string to EnergyAnalysisDetailModelTier enum
public SetTier ( String tierValue ) : void
tierValue String Selected string from UI
return void