C# Class 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.
Afficher le fichier Open project: AMEE/revit Class Usage Examples

Méthodes publiques

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

Method Details

Boundary() public méthode

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

Clone() public méthode

Deep clone, to avoid mess up the original data during offsetting the boundary.
public Clone ( ) : Trapezoid
Résultat Trapezoid

ConstructMultiplanarRebarShape() public méthode

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

Draw() public méthode

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

OffsetBottom() public méthode

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

OffsetLeft() public méthode

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

OffsetRight() public méthode

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

OffsetTop() public méthode

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

Trapezoid() public méthode

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