C# 클래스 Revit.SDK.Samples.NewOpenings.CS.Profile

Base class of ProfileFloor and ProfileWall contain the profile information and can make matrix to transform point to 2D plane
파일 보기 프로젝트 열기: AMEE/revit 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
m_appCreator Autodesk.Revit.Creation.Application
m_commandData Autodesk.Revit.UI.ExternalCommandData
m_dataProfile Autodesk.Revit.DB.Element
m_docCreator Autodesk.Revit.Creation.Document
m_face List

공개 메소드들

메소드 설명
Draw2D ( Graphics graphics, Pen pen, Matrix4 matrix4 ) : void

Draw profile of wall or floor in 2D

DrawOpening ( List points, ToolType type ) : void

Abstract method to create Opening

GetFaceBounds ( ) : System.Drawing.PointF[]

Get Face Bounds

GetFaces ( Autodesk elem ) : List>

Get edges of element's profile

Profile ( Autodesk elem, ExternalCommandData commandData ) : System

Constructor

To2DMatrix ( ) : Matrix4

Get a matrix which can transform points to 2D

ToCenterMatrix ( ) : Matrix4

Get a matrix which can move points to origin

WallMatrix ( ) : Matrix4

Wall matrix

비공개 메소드들

메소드 설명
GetFaceNormal ( List face ) : Vector4

Get Face Normal

GetNeedFace ( List faces ) : List

Get First Face

GetWallFace ( List faces ) : List

Get wall face

메소드 상세

Draw2D() 공개 메소드

Draw profile of wall or floor in 2D
public Draw2D ( Graphics graphics, Pen pen, Matrix4 matrix4 ) : void
graphics System.Drawing.Graphics form graphic
pen System.Drawing.Pen pen use to draw line in pictureBox
matrix4 Matrix4 matrix used to transform points between 3d and 2d.
리턴 void

DrawOpening() 공개 추상적인 메소드

Abstract method to create Opening
public abstract DrawOpening ( List points, ToolType type ) : void
points List
type ToolType
리턴 void

GetFaceBounds() 공개 메소드

Get Face Bounds
public GetFaceBounds ( ) : System.Drawing.PointF[]
리턴 System.Drawing.PointF[]

GetFaces() 공개 메소드

Get edges of element's profile
public GetFaces ( Autodesk elem ) : List>
elem Autodesk Selected element
리턴 List>

Profile() 공개 메소드

Constructor
public Profile ( Autodesk elem, ExternalCommandData commandData ) : System
elem Autodesk Selected element
commandData ExternalCommandData ExternalCommandData
리턴 System

To2DMatrix() 공개 메소드

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

ToCenterMatrix() 공개 메소드

Get a matrix which can move points to origin
public ToCenterMatrix ( ) : Matrix4
리턴 Matrix4

WallMatrix() 공개 메소드

Wall matrix
public WallMatrix ( ) : Matrix4
리턴 Matrix4

프로퍼티 상세

m_appCreator 보호되어 있는 프로퍼티

Application creator
protected Autodesk.Revit.Creation.Application m_appCreator
리턴 Autodesk.Revit.Creation.Application

m_commandData 보호되어 있는 프로퍼티

command data
protected ExternalCommandData,Autodesk.Revit.UI m_commandData
리턴 Autodesk.Revit.UI.ExternalCommandData

m_dataProfile 보호되어 있는 프로퍼티

Wall or Floor element
protected Element,Autodesk.Revit.DB m_dataProfile
리턴 Autodesk.Revit.DB.Element

m_docCreator 보호되어 있는 프로퍼티

Document creator
protected Autodesk.Revit.Creation.Document m_docCreator
리턴 Autodesk.Revit.Creation.Document

m_face 보호되어 있는 프로퍼티

geometry object [face]
protected List m_face
리턴 List