C# 클래스 Revit.SDK.Samples.NewRebar.CS.RebarCreator

This class wraps the creation of Rebar. Its "Execute" method shows the main dialog for user and after that a Rebar will be created if user click OK button on the main dialog.
파일 보기 프로젝트 열기: AMEE/revit 1 사용 예제들

공개 메소드들

메소드 설명
Execute ( ) : void

Present the main dialog for user to prepare the parameters for Rebar creation, and after that if user click the OK button, a new Rebar will be created.

RebarCreator ( ExternalCommandData commandData ) : System

Constructor, initialize fields and do some assert. If the Assert throw exception, creation will fail.

비공개 메소드들

메소드 설명
Assert ( ) : void

Do some check for the selection elements, includes geometry check. If the data doesn't meet our need, Exception will be thrown.

LayoutRebar ( ) : void

Move and Scale the created Rebar to specified box.

메소드 상세

Execute() 공개 메소드

Present the main dialog for user to prepare the parameters for Rebar creation, and after that if user click the OK button, a new Rebar will be created.
public Execute ( ) : void
리턴 void

RebarCreator() 공개 메소드

Constructor, initialize fields and do some assert. If the Assert throw exception, creation will fail.
public RebarCreator ( ExternalCommandData commandData ) : System
commandData ExternalCommandData ExternalCommandData
리턴 System