C# Класс BuildingCoder.CmdPressKeys

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

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

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

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

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

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

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

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