C# 클래스 Revit.SDK.Samples.Truss.CS.TrussGeometry

TrussGeometry class contains Geometry information of new created Truss, and contains methods used to Edit profile of truss.
파일 보기 프로젝트 열기: AMEE/revit 1 사용 예제들

공개 메소드들

메소드 설명
AddBottomChordMovePoint ( int x, int y ) : void

add move point to line tool of bottom chord

AddBottomChordPoint ( int x, int y ) : void

add new point to line tool which used to draw bottom chord

AddTopChordMovePoint ( int x, int y ) : void

add move point to line tool of top chord

AddTopChordPoint ( int x, int y ) : void

add new point to line tool which used to draw top chord

ClearChords ( ) : void

clear points of top chord and bottom chord

ClearMovePoint ( ) : void
CreateGraphicsPath ( ) : void

Create GraphicsPath object for each curves of truss

Draw2D ( Graphics graphics, Pen pen ) : void

draw profile of truss in pictureBox

DrawSelectedLineRed ( Graphics graphics ) : void

Draw selected line (beam) by red pen

Get2DTo3DMatrix ( ) : Matrix4

calculate the matrix used to transform 2D to 3D

Get2DToTrussProfileMatrix ( ) : Matrix4

calculate the matrix used to transform 2d points (on pictureBox) to the plane of truss which use to set profile

Get3DTo2DMatrix ( ) : Matrix4

calculate the matrix used to transform 3D to 2D

GetBoundsPoints ( ) : Autodesk.Revit.DB.XYZ[]

Get max and min coordinates of all points

GetMoveToCenterMatrix ( ) : Matrix4

Get a matrix which can move points to center

GetScaleMatrix ( ) : Matrix4

calculate the matrix use to scale

GetSelectedBeam ( ExternalCommandData commandData ) : FamilyInstance

Get selected beam (truss member) by select index

GetTo2DMatrix ( ) : Matrix4

Get a matrix which can transform points to 2D

GetTrussPoints ( ) : List

Get points of the truss

RemoveProfile ( ) : void

restores truss profile to original

Reset ( ) : void

Reset index and clear line tool

SelectTrussMember ( int x, int y ) : int

Judge which truss member has been selected via location of mouse

SetProfile ( ExternalCommandData commandData ) : void

Set profile of truss

TrussGeometry ( Autodesk truss, ExternalCommandData commandData ) : System

constructor

비공개 메소드들

메소드 설명
GetChordPoints ( LineTool chord, CurveArray curves, Autodesk createApp ) : void
GetTrussGeometryInfo ( ) : void

Calculate geometry info for truss

메소드 상세

AddBottomChordMovePoint() 공개 메소드

add move point to line tool of bottom chord
public AddBottomChordMovePoint ( int x, int y ) : void
x int X coordinate
y int Y coordinate
리턴 void

AddBottomChordPoint() 공개 메소드

add new point to line tool which used to draw bottom chord
public AddBottomChordPoint ( int x, int y ) : void
x int X coordinate
y int Y coordinate
리턴 void

AddTopChordMovePoint() 공개 메소드

add move point to line tool of top chord
public AddTopChordMovePoint ( int x, int y ) : void
x int X coordinate
y int Y coordinate
리턴 void

AddTopChordPoint() 공개 메소드

add new point to line tool which used to draw top chord
public AddTopChordPoint ( int x, int y ) : void
x int X coordinate
y int Y coordinate
리턴 void

ClearChords() 공개 메소드

clear points of top chord and bottom chord
public ClearChords ( ) : void
리턴 void

ClearMovePoint() 공개 메소드

public ClearMovePoint ( ) : void
리턴 void

CreateGraphicsPath() 공개 메소드

Create GraphicsPath object for each curves of truss
public CreateGraphicsPath ( ) : void
리턴 void

Draw2D() 공개 메소드

draw profile of truss in pictureBox
public Draw2D ( Graphics graphics, Pen pen ) : void
graphics System.Drawing.Graphics form graphic
pen System.Drawing.Pen pen used to draw line in pictureBox
리턴 void

DrawSelectedLineRed() 공개 메소드

Draw selected line (beam) by red pen
public DrawSelectedLineRed ( Graphics graphics ) : void
graphics System.Drawing.Graphics graphics of picture box
리턴 void

Get2DTo3DMatrix() 공개 메소드

calculate the matrix used to transform 2D to 3D
public Get2DTo3DMatrix ( ) : Matrix4
리턴 Matrix4

Get2DToTrussProfileMatrix() 공개 메소드

calculate the matrix used to transform 2d points (on pictureBox) to the plane of truss which use to set profile
public Get2DToTrussProfileMatrix ( ) : Matrix4
리턴 Matrix4

Get3DTo2DMatrix() 공개 메소드

calculate the matrix used to transform 3D to 2D
public Get3DTo2DMatrix ( ) : Matrix4
리턴 Matrix4

GetBoundsPoints() 공개 메소드

Get max and min coordinates of all points
public GetBoundsPoints ( ) : Autodesk.Revit.DB.XYZ[]
리턴 Autodesk.Revit.DB.XYZ[]

GetMoveToCenterMatrix() 공개 메소드

Get a matrix which can move points to center
public GetMoveToCenterMatrix ( ) : Matrix4
리턴 Matrix4

GetScaleMatrix() 공개 메소드

calculate the matrix use to scale
public GetScaleMatrix ( ) : Matrix4
리턴 Matrix4

GetSelectedBeam() 공개 메소드

Get selected beam (truss member) by select index
public GetSelectedBeam ( ExternalCommandData commandData ) : FamilyInstance
commandData ExternalCommandData object which contains reference of Revit Application
리턴 FamilyInstance

GetTo2DMatrix() 공개 메소드

Get a matrix which can transform points to 2D
public GetTo2DMatrix ( ) : Matrix4
리턴 Matrix4

GetTrussPoints() 공개 메소드

Get points of the truss
public GetTrussPoints ( ) : List
리턴 List

RemoveProfile() 공개 메소드

restores truss profile to original
public RemoveProfile ( ) : void
리턴 void

Reset() 공개 메소드

Reset index and clear line tool
public Reset ( ) : void
리턴 void

SelectTrussMember() 공개 메소드

Judge which truss member has been selected via location of mouse
public SelectTrussMember ( int x, int y ) : int
x int X coordinate of mouse location
y int Y coordinate of mouse location
리턴 int

SetProfile() 공개 메소드

Set profile of truss
public SetProfile ( ExternalCommandData commandData ) : void
commandData ExternalCommandData object which contains reference of Revit Application
리턴 void

TrussGeometry() 공개 메소드

constructor
public TrussGeometry ( Autodesk truss, ExternalCommandData commandData ) : System
truss Autodesk new created truss object in Revit
commandData ExternalCommandData
리턴 System