C# Class BuildingCoder.CmdNewCrossFitting

Inheritance: IExternalCommand
Datei anzeigen Open project: jeremytammik/the_building_coder_samples

Public Methods

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

External command mainline. Run in the sample model TestCrossFitting.rvt, e.g.

SelectAndPlaceTakeOffFitting ( Document doc ) : void

Private Methods

Method Description
CreateTemporaryConnectorForTap ( ) : Connector
GetPipeDirection ( Pipe pipe ) : XYZ

Allow selection of pipe elements only.

Return the normalised direction of the given pipe.

IsPipeParallel ( Pipe p1, Pipe p2 ) : bool

Are the two given pipes parallel?

Method Details

Execute() public method

External command mainline. Run in the sample model TestCrossFitting.rvt, e.g.
public Execute ( ExternalCommandData commandData, string &message, ElementSet elements ) : System.Result
commandData ExternalCommandData
message string
elements ElementSet
return System.Result

SelectAndPlaceTakeOffFitting() public method

public SelectAndPlaceTakeOffFitting ( Document doc ) : void
doc Document
return void