C# Класс BuildingCoder.CmdDimensionWallsIterateFaces

Наследование: IExternalCommand
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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.

Описание методов

CreateDimensionElement() публичный статический Метод

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
Результат void

CreateLinearDimension() публичный Метод

public CreateLinearDimension ( Document doc ) : Dimension
doc Document
Результат Dimension

DuplicateDimension() публичный Метод

public DuplicateDimension ( Document doc, Dimension dimension ) : void
doc Document
dimension Dimension
Результат void

Execute() публичный Метод

public Execute ( ExternalCommandData commandData, string &message, ElementSet elements ) : System.Result
commandData ExternalCommandData
message string
elements ElementSet
Результат System.Result