C# Класс Revit.SDK.Samples.MultiplanarRebar.CS.Trapezoid

This class represents the trapezoid wire frame profile of corbel. Its two main functionalities are to create a multi-planar rebar shape and to calculate the location for rebar creation when reinforcing corbel.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Boundary ( XYZ &origin, XYZ &vX, XYZ &vY ) : void

Calculate the boundary coordinate of the wire-frame.

Clone ( ) : Trapezoid

Deep clone, to avoid mess up the original data during offsetting the boundary.

ConstructMultiplanarRebarShape ( Document revitDoc, double bendDiameter ) : RebarShape

Create the multi-planar Rebar Shape according to the trapezoid wire-frame.

Draw ( Document revitDoc ) : void

Draw the trapezoid wire-frame with Revit Model curves. It's for debug use, to help developer see the exact location.

OffsetBottom ( double offset ) : void

Offset the bottom line with given value, if the value is positive, the offset direction is outside, otherwise inside.

OffsetLeft ( double offset ) : void

Offset the Left Vertical line with given value, if the value is positive, the offset direction is outside, otherwise inside.

OffsetRight ( double offset ) : void

Offset the right slanted line with given value, if the value is positive, the offset direction is outside, otherwise inside.

OffsetTop ( double offset ) : void

Offset the top line with given value, if the value is positive, the offset direction is outside, otherwise inside.

Trapezoid ( System.Line top, System.Line vertical, System.Line bottom, System.Line slanted ) : System

Constructor to initialize the fields.

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

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

Calculate the boundary coordinate of the wire-frame.
public Boundary ( XYZ &origin, XYZ &vX, XYZ &vY ) : void
origin XYZ Origin coordinate
vX XYZ X Vector
vY XYZ Y Vector
Результат void

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

Deep clone, to avoid mess up the original data during offsetting the boundary.
public Clone ( ) : Trapezoid
Результат Trapezoid

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

Create the multi-planar Rebar Shape according to the trapezoid wire-frame.
public ConstructMultiplanarRebarShape ( Document revitDoc, double bendDiameter ) : RebarShape
revitDoc Document Revit DB Document
bendDiameter double OutOfPlaneBendDiameter for multi-planar shape
Результат RebarShape

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

Draw the trapezoid wire-frame with Revit Model curves. It's for debug use, to help developer see the exact location.
public Draw ( Document revitDoc ) : void
revitDoc Document Revit DB Document
Результат void

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

Offset the bottom line with given value, if the value is positive, the offset direction is outside, otherwise inside.
public OffsetBottom ( double offset ) : void
offset double Offset value
Результат void

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

Offset the Left Vertical line with given value, if the value is positive, the offset direction is outside, otherwise inside.
public OffsetLeft ( double offset ) : void
offset double Offset value
Результат void

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

Offset the right slanted line with given value, if the value is positive, the offset direction is outside, otherwise inside.
public OffsetRight ( double offset ) : void
offset double Offset value
Результат void

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

Offset the top line with given value, if the value is positive, the offset direction is outside, otherwise inside.
public OffsetTop ( double offset ) : void
offset double Offset value
Результат void

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

Constructor to initialize the fields.
public Trapezoid ( System.Line top, System.Line vertical, System.Line bottom, System.Line slanted ) : System
top System.Line Top Line
vertical System.Line Left Vertical Line
bottom System.Line Bottom Line
slanted System.Line Right slanted Line
Результат System