C# Класс Revit.SDK.Samples.NewRebar.CS.RebarCreator

This class wraps the creation of Rebar. Its "Execute" method shows the main dialog for user and after that a Rebar will be created if user click OK button on the main dialog.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Execute ( ) : void

Present the main dialog for user to prepare the parameters for Rebar creation, and after that if user click the OK button, a new Rebar will be created.

RebarCreator ( ExternalCommandData commandData ) : System

Constructor, initialize fields and do some assert. If the Assert throw exception, creation will fail.

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

Метод Описание
Assert ( ) : void

Do some check for the selection elements, includes geometry check. If the data doesn't meet our need, Exception will be thrown.

LayoutRebar ( ) : void

Move and Scale the created Rebar to specified box.

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

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

Present the main dialog for user to prepare the parameters for Rebar creation, and after that if user click the OK button, a new Rebar will be created.
public Execute ( ) : void
Результат void

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

Constructor, initialize fields and do some assert. If the Assert throw exception, creation will fail.
public RebarCreator ( ExternalCommandData commandData ) : System
commandData ExternalCommandData ExternalCommandData
Результат System