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.
Mostrar archivo Open project: AMEE/revit Class Usage Examples

Public Methods

Method 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 method

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
return void

Clone() public method

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

ConstructMultiplanarRebarShape() public method

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
return RebarShape

Draw() public method

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
return void

OffsetBottom() public method

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
return void

OffsetLeft() public method

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
return void

OffsetRight() public method

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
return void

OffsetTop() public method

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
return void

Trapezoid() public method

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
return System