C# Class BuildingCoder.CmdDimensionWallsIterateFaces

Inheritance: IExternalCommand
Afficher le fichier Open project: jeremytammik/the_building_coder_samples Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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
Résultat void

CreateLinearDimension() public méthode

public CreateLinearDimension ( Document doc ) : Dimension
doc Document
Résultat Dimension

DuplicateDimension() public méthode

public DuplicateDimension ( Document doc, Dimension dimension ) : void
doc Document
dimension Dimension
Résultat void

Execute() public méthode

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