C# Class BuildingCoder.CmdCropToRoom

Inheritance: IExternalCommand
Show file Open project: jeremytammik/the_building_coder_samples

Public Methods

Method Description
Execute ( ExternalCommandData commandData, string &message, ElementSet elements ) : System.Result

Private Methods

Method Description
BumpRoomIndex ( int room_count ) : int

Increment and return the current room index. Every call to this method increments the current room index by one. If it exceeds the number of rooms in the model, loop back to zero.

IsElementOutsideCropBox ( Element e, View v ) : bool

Return true if element is outside of view crop box

SectionBox ( UIDocument uidoc ) : void

Set 3D view section box to selected element extents.

Method Details

Execute() public method

public Execute ( ExternalCommandData commandData, string &message, ElementSet elements ) : System.Result
commandData ExternalCommandData
message string
elements ElementSet
return System.Result