C# Class BuildingCoder.CmdRectDuctCorners

Inheritance: IExternalCommand
ファイルを表示 Open project: jeremytammik/the_building_coder_samples

Public Methods

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

Private Methods

Method Description
AnalyseDuct ( Duct duct ) : bool

Analyse the given duct element: determine its first rectangular connector, retrieve its solid, find the face containing the connector, and list its four vertices.

FaceContainsConnector ( Face face, Connector c ) : bool

Return true if the given face contains the given connector.

GetFirstRectangularConnector ( Duct duct, Connector &c1 ) : bool

Return the first rectangular connector of the given duct element.

Test1 ( Connector connector ) : XYZ
Test2 ( Connector connector ) : XYZ

Method Details

Execute() public method

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