C# Класс Revit.SDK.Samples.NewPathReinforcement.CS.Profile

base class of ProfileFloor and ProfileWall contains the profile information and can make matrix to transform point to 2D plane
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
m_appCreator Autodesk.Revit.Creation.Application
m_commandData Autodesk.Revit.UI.ExternalCommandData
m_docCreator Autodesk.Revit.Creation.Document
m_points List>
m_to2DMatrix Matrix4

Открытые методы

Метод Описание
CreatePathReinforcement ( List points, bool flip ) : PathReinforcement

abstract method to create PathReinforcement

Draw2D ( Graphics graphics, Pen pen, Matrix4 matrix4 ) : void

draw profile of wall or floor in 2D

GetFaceBounds ( ) : System.Drawing.PointF[]

Get the bound of a face

GetFaceNormal ( List face ) : Vector4

Get normal of face

GetFaces ( Autodesk elem ) : List>

Get edges of element's profile

GetNeedPoints ( List faces ) : List>

Get points in first face

GetTo2DMatrix ( ) : Matrix4

Get a matrix which can transform points to 2D

ToCenterMatrix ( ) : Matrix4

Get a matrix which can move points to center

Защищенные методы

Метод Описание
Profile ( ExternalCommandData commandData ) : System

constructor

Описание методов

CreatePathReinforcement() публичный абстрактный Метод

abstract method to create PathReinforcement
public abstract CreatePathReinforcement ( List points, bool flip ) : PathReinforcement
points List points used to create PathReinforcement
flip bool used to specify whether new PathReinforcement is Filp
Результат PathReinforcement

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 used to draw line in pictureBox
matrix4 Matrix4 Matrix used to transform 3d to 2d /// and make picture in right scale
Результат void

GetFaceBounds() публичный Метод

Get the bound of a face
public GetFaceBounds ( ) : System.Drawing.PointF[]
Результат System.Drawing.PointF[]

GetFaceNormal() публичный Метод

Get normal of face
public GetFaceNormal ( List face ) : Vector4
face List edges in a face
Результат Vector4

GetFaces() публичный Метод

Get edges of element's profile
public GetFaces ( Autodesk elem ) : List>
elem Autodesk selected element
Результат List>

GetNeedPoints() публичный абстрактный Метод

Get points in first face
public abstract GetNeedPoints ( List faces ) : List>
faces List edges in all faces
Результат List>

GetTo2DMatrix() публичный абстрактный Метод

Get a matrix which can transform points to 2D
public abstract GetTo2DMatrix ( ) : Matrix4
Результат Matrix4

Profile() защищенный Метод

constructor
protected Profile ( ExternalCommandData commandData ) : System
commandData ExternalCommandData object which contains reference to Revit Application
Результат System

ToCenterMatrix() публичный Метод

Get a matrix which can move points to center
public ToCenterMatrix ( ) : Matrix4
Результат Matrix4

Описание свойств

m_appCreator защищенное свойство

used to create new instances of utility objects.
protected Autodesk.Revit.Creation.Application m_appCreator
Результат Autodesk.Revit.Creation.Application

m_commandData защищенное свойство

object which contains reference to Revit Application
protected ExternalCommandData,Autodesk.Revit.UI m_commandData
Результат Autodesk.Revit.UI.ExternalCommandData

m_docCreator защищенное свойство

used to create new instances of elements
protected Autodesk.Revit.Creation.Document m_docCreator
Результат Autodesk.Revit.Creation.Document

m_points защищенное свойство

store all the points on the needed face
protected List> m_points
Результат List>

m_to2DMatrix защищенное свойство

store the Matrix used to transform 3D points to 2D
protected Matrix4 m_to2DMatrix
Результат Matrix4