C# Класс Revit.SDK.Samples.BarDescriptions.CS.Command

Наследование: IExternalCommand
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

Execute() публичный Метод

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.
Результат Autodesk.Revit.UI.Result

ExportAllData() публичный Метод

export the BarDescriptions to a Excel
public ExportAllData ( string saveFileName ) : void
saveFileName string
Результат void

SetViewRowFilterCondition() публичный Метод

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 ///
Результат void