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.
파일 보기 프로젝트 열기: AMEE/revit 1 사용 예제들

공개 메소드들

메소드 설명
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