C# Class BuildingCoder.CmdSetTagType

Inheritance: IExternalCommand
Mostrar archivo Open project: jeremytammik/the_building_coder_samples

Public Methods

Method Description
Execute ( ExternalCommandData commandData, string &message, ElementSet elements ) : System.Result

Private Methods

Method Description
GetBottomAndTopLevels ( Document doc, Level &levelBottom, Level &levelTop ) : bool

Determine bottom and top levels for creating walls. In a default empty Revit Architecture project, 'Level 1' and 'Level 2' will be returned.

GetElementsOfType ( Document doc, Type type, BuiltInCategory bic ) : FilteredElementCollector

Return all elements of the requested class, i.e. System.Type, matching the given built-in category in the given document.

GetFamilySymbols ( Document doc, BuiltInCategory bic ) : FilteredElementCollector

Return all family symbols in the given document matching the given built-in category. Todo: Compare this with the FamilySymbolFilter class.

GetFirstFamilySymbol ( Document doc, BuiltInCategory bic ) : FamilySymbol

Return the first family symbol found in the given document matching the given built-in category, or null if none is found.

Method Details

Execute() public method

public Execute ( ExternalCommandData commandData, string &message, ElementSet elements ) : System.Result
commandData ExternalCommandData
message string
elements ElementSet
return System.Result