C# 클래스 Revit.SDK.Samples.ModelLines.CS.ModelLines

The main deal class, which takes charge of showing the number of each model line type and creating one instance for each type using Revit API
파일 보기 프로젝트 열기: AMEE/revit 1 사용 예제들

공개 메소드들

메소드 설명
CreateArc ( int sketchId, Autodesk startPoint, Autodesk endPoint, Autodesk thirdPoint ) : void

Create the arc(ModelArc)

CreateLine ( int sketchId, Autodesk startPoint, Autodesk endPoint ) : void

Create the line(ModelLine)

CreateOthers ( int sketchId, int elementId, Autodesk offsetPoint ) : void

Create other lines, including Ellipse, HermiteSpline and NurbSpline

CreateSketchPlane ( Autodesk normal, Autodesk origin ) : void

Create a new sketch plane which all model lines are placed on.

ModelLines ( Autodesk revit ) : System

The default constructor

RefreshInformationMap ( ) : void

Refresh the m_informationMap member, include the number of each model line type

Run ( ) : void

This is the main deal method in this example.

비공개 메소드들

메소드 설명
GetElementById ( int id ) : Autodesk.Revit.DB.Element

Use Autodesk.Revit.DB.ElementId to get the corresponding element

GetModelLines ( ) : void

Get all model lines in current document of revit, and store them into the arrays

GetSketchPlane ( ) : void

Get all sketch planes in revit

GetSketchPlaneById ( int id ) : SketchPlane

Use Autodesk.Revit.DB.ElementId to get the corresponding sketch plane

InitDisplayInformation ( ) : void

Initiate the information map which will display in information DataGridView

메소드 상세

CreateArc() 공개 메소드

Create the arc(ModelArc)
public CreateArc ( int sketchId, Autodesk startPoint, Autodesk endPoint, Autodesk thirdPoint ) : void
sketchId int the id of the sketch plane
startPoint Autodesk the start point of the arc
endPoint Autodesk the end point of the arc
thirdPoint Autodesk the third point which is on the arc
리턴 void

CreateLine() 공개 메소드

Create the line(ModelLine)
public CreateLine ( int sketchId, Autodesk startPoint, Autodesk endPoint ) : void
sketchId int the id of the sketch plane
startPoint Autodesk the start point of the line
endPoint Autodesk the end point of the line
리턴 void

CreateOthers() 공개 메소드

Create other lines, including Ellipse, HermiteSpline and NurbSpline
public CreateOthers ( int sketchId, int elementId, Autodesk offsetPoint ) : void
sketchId int the id of the sketch plane
elementId int the element id which copy the curve from
offsetPoint Autodesk the offset direction from the copied line
리턴 void

CreateSketchPlane() 공개 메소드

Create a new sketch plane which all model lines are placed on.
public CreateSketchPlane ( Autodesk normal, Autodesk origin ) : void
normal Autodesk
origin Autodesk
리턴 void

ModelLines() 공개 메소드

The default constructor
public ModelLines ( Autodesk revit ) : System
revit Autodesk The reference of the application in revit
리턴 System

RefreshInformationMap() 공개 메소드

Refresh the m_informationMap member, include the number of each model line type
public RefreshInformationMap ( ) : void
리턴 void

Run() 공개 메소드

This is the main deal method in this example.
public Run ( ) : void
리턴 void