C# Class 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.
Mostra file Open project: AMEE/revit Class Usage Examples

Public Methods

Method Description
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.

Private Methods

Method Description
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.

Method Details

Execute() public method

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
return void

RebarCreator() public method

Constructor, initialize fields and do some assert. If the Assert throw exception, creation will fail.
public RebarCreator ( ExternalCommandData commandData ) : System
commandData ExternalCommandData ExternalCommandData
return System