C# Class Revit.SDK.Samples.BarDescriptions.CS.Command

Inheritance: IExternalCommand
显示文件 Open project: AMEE/revit

Public Methods

Method Description
Execute ( Autodesk revit, string &message, ElementSet elements ) : Autodesk.Revit.UI.Result

Implement this method as an external command for Revit.

ExportAllData ( string saveFileName ) : void

export the BarDescriptions to a Excel

SetViewRowFilterCondition ( int areaReinforcementIdValue ) : void

set one specific AreaReinforcemet id value as row filter condition of data view m_specificBarDescriptions.

Private Methods

Method Description
PrepareAllNeededData ( ) : bool

Iterates through all the BarDescriptions in the project. store these data in a data table m_barDescriptions and store the AreaReinforcements id value in a array list m_areaReinforcementIdList

SetCurrentBarDescriptionToTable ( AreaReinforcement areaReinforcement, BarDescription barDescription ) : void

insert current BarDescription, which is iterated through, into data table

SetDataTableCloumn ( ) : void

edit the Columns of data table m_barDescriptions

Method Details

Execute() public method

Implement this method as an external command for Revit.
public Execute ( Autodesk revit, string &message, ElementSet elements ) : Autodesk.Revit.UI.Result
revit Autodesk
message string A message that can be set by the external application /// which will be displayed if a failure or cancellation is returned by /// the external command.
elements ElementSet A set of elements to which the external application /// can add elements that are to be highlighted in case of failure or cancellation.
return Autodesk.Revit.UI.Result

ExportAllData() public method

export the BarDescriptions to a Excel
public ExportAllData ( string saveFileName ) : void
saveFileName string
return void

SetViewRowFilterCondition() public method

set one specific AreaReinforcemet id value as row filter condition of data view m_specificBarDescriptions.
public SetViewRowFilterCondition ( int areaReinforcementIdValue ) : void
areaReinforcementIdValue int /// an specific AreaReinforcemet id value ///
return void