C# Class Revit.SDK.Samples.Reinforcement.CS.FrameReinMakerFactory

The factory to create the corresponding FrameReinMaker, such as BeamFramReinMaker.
Datei anzeigen Open project: AMEE/revit Class Usage Examples

Public Methods

Method Description
AssertData ( ) : bool

check the condition of host object and see whether the rebars can be placed on

FrameReinMakerFactory ( ExternalCommandData commandData ) : System

constructor

work ( ) : bool

The main method which create the corresponding FrameReinMaker according to the host object type, and invoke Run() method to create reinforcement rebars

Private Methods

Method Description
GetHostObject ( ) : bool

Get the selected element as the host object, also check if the selected element is expected host object

Method Details

AssertData() public method

check the condition of host object and see whether the rebars can be placed on
public AssertData ( ) : bool
return bool

FrameReinMakerFactory() public method

constructor
public FrameReinMakerFactory ( ExternalCommandData commandData ) : System
commandData ExternalCommandData the ExternalCommandData reference
return System

work() public method

The main method which create the corresponding FrameReinMaker according to the host object type, and invoke Run() method to create reinforcement rebars
public work ( ) : bool
return bool