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

This form is provided for user to define a new RebarShape.
상속: System.Windows.Forms.Form
파일 보기 프로젝트 열기: AMEE/revit 1 사용 예제들

공개 메소드들

메소드 설명
NewRebarShapeForm ( ) : System

Default constructor.

NewRebarShapeForm ( Autodesk rvtDoc, RebarShapeDef shapeDef ) : System

Constructor, Initialize the fields.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Clean up any resources being used.

비공개 메소드들

메소드 설명
GetOrCreateDefinitionGroup ( ) : DefinitionGroup

Get a definition group if there exists one, otherwise, a new one will be created.

InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

NewRebarShapeForm_Load ( object sender, EventArgs e ) : void

Load event, Initialize the controls data.

addConstraintButton_Click ( object sender, EventArgs e ) : void

Present a dialog to add a constraint to RebarShapeDef.

addParameterButton_Click ( object sender, EventArgs e ) : void

Present a dialog to add a parameter to RebarShapeDef.

cancelButton_Click ( object sender, EventArgs e ) : void

Cancel Button, Cancel the creation of RebarShape.

constraintListBox_SelectedIndexChanged ( object sender, EventArgs e ) : void

When the selection in the constraint listBox is changed, the property grid's content should be changed too.

okButton_Click ( object sender, EventArgs e ) : void

OK Button, commit the RebarShapeDef, if there are not any exception, The RebarShape will be added to Revit Document successfully.

parameterListBox_SelectedIndexChanged ( object sender, EventArgs e ) : void

When the selection in the parameter listBox is changed, the property grid's content should be changed too.

useHooksCheckBox_CheckedChanged ( object sender, EventArgs e ) : void

When the check status of useHooksCheckBox is changed, other comboBox's enabled status should be changed too.

메소드 상세

Dispose() 보호된 메소드

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
리턴 void

NewRebarShapeForm() 공개 메소드

Default constructor.
public NewRebarShapeForm ( ) : System
리턴 System

NewRebarShapeForm() 공개 메소드

Constructor, Initialize the fields.
public NewRebarShapeForm ( Autodesk rvtDoc, RebarShapeDef shapeDef ) : System
rvtDoc Autodesk
shapeDef RebarShapeDef RebarShapeDef object
리턴 System