C# Class BuildingCoder.CmdPressKeys

Inheritance: IExternalCommand
Afficher le fichier Open project: jeremytammik/the_building_coder_samples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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
Résultat System.Result