C# Class BuildingCoder.CmdDimensionWallsIterateFaces

Inheritance: IExternalCommand
Mostra file Open project: jeremytammik/the_building_coder_samples Class Usage Examples

Public Methods

Method Description
CreateDimensionElement ( View view, XYZ p1, System.Reference r1, XYZ p2, System.Reference r2 ) : void

Create a new dimension element using the given references and dimension line end points. This method opens and commits its own transaction, assuming that no transaction is open yet and manual transaction mode is being used. Note that this has only been tested so far using references to surfaces on planar walls in a plan view.

CreateLinearDimension ( Document doc ) : Dimension
DuplicateDimension ( Document doc, Dimension dimension ) : void
Execute ( ExternalCommandData commandData, string &message, ElementSet elements ) : System.Result

Private Methods

Method Description
GetClosestFace ( Element e, XYZ p, XYZ normal, Options opt ) : Face

Return the closest planar face to a given point p on the element e with a given normal vector.

Method Details

CreateDimensionElement() public static method

Create a new dimension element using the given references and dimension line end points. This method opens and commits its own transaction, assuming that no transaction is open yet and manual transaction mode is being used. Note that this has only been tested so far using references to surfaces on planar walls in a plan view.
public static CreateDimensionElement ( View view, XYZ p1, System.Reference r1, XYZ p2, System.Reference r2 ) : void
view View
p1 XYZ
r1 System.Reference
p2 XYZ
r2 System.Reference
return void

CreateLinearDimension() public method

public CreateLinearDimension ( Document doc ) : Dimension
doc Document
return Dimension

DuplicateDimension() public method

public DuplicateDimension ( Document doc, Dimension dimension ) : void
doc Document
dimension Dimension
return void

Execute() public method

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