C# Class BuildingCoder.CmdPressKeys

Inheritance: IExternalCommand
Datei anzeigen Open project: jeremytammik/the_building_coder_samples

Public Methods

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

Here is a part or our code to start a Revit command. The aim of the code is to set a wall type current in the Revit property window. We only start up the wall command with the API and let the user do the drawing of the wall. This solution can also be used to launch other Revit commands.

Private Methods

Method Description
GetFirstWallTypeNamed ( Document doc, string name ) : WallType

Return the first wall type with the given name.

GetFirstWallUsingType ( Document doc, WallType wallType ) : Wall

Return the first wall found that uses the given wall type.

Method Details

Execute() public method

Here is a part or our code to start a Revit command. The aim of the code is to set a wall type current in the Revit property window. We only start up the wall command with the API and let the user do the drawing of the wall. This solution can also be used to launch other Revit commands.
public Execute ( ExternalCommandData commandData, string &message, ElementSet elements ) : System.Result
commandData ExternalCommandData
message string
elements ElementSet
return System.Result