C# Class Revit.SDK.Samples.FrameBuilder.CS.DuplicateTypeForm

form to duplicate FamilySymbol and edit its name and parameters
Inheritance: System.Windows.Forms.Form
Exibir arquivo Open project: AMEE/revit Class Usage Examples

Public Methods

Method Description
DuplicateTypeForm ( object obj, FrameTypesMgr typesMgr ) : System

constructor

ShowDialog ( ) : DialogResult

hidden subclass' method; display EditTypeNameForm to get type name; then duplicate FamilySymbol

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
DuplicateTypeForm ( ) : System

constructor without parameter is forbidden

DuplicateTypeForm_Load ( object sender, EventArgs e ) : void

provide UI to edit is parameter

InitializeComponent ( ) : void

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

OKButton_Click ( object sender, EventArgs e ) : void

to finish duplicate process

cancelButton_Click ( object sender, EventArgs e ) : void

cancel the duplicate and roll back the command

Method Details

Dispose() protected method

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

DuplicateTypeForm() public method

constructor
public DuplicateTypeForm ( object obj, FrameTypesMgr typesMgr ) : System
obj object FamilySymbol object
typesMgr FrameTypesMgr FamilySymbols' manager
return System

ShowDialog() public method

hidden subclass' method; display EditTypeNameForm to get type name; then duplicate FamilySymbol
public ShowDialog ( ) : DialogResult
return DialogResult