C# Class Revit.SDK.Samples.CurtainWallGrid.CS.GridForm

Show file Open project: AMEE/revit Class Usage Examples

Public Methods

Method Description
GridForm ( MyDocument myDoc ) : System

constructor

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
Drawing_MouseInGridEvent ( ) : void

the mouse moves into the curtain grid area, change the cursor to cross

Drawing_MouseOutGridEvent ( ) : void

the mouse is out of the curtain grid area, change the cursor to default

GridForm_KeyDown ( object sender, KeyEventArgs e ) : void

when Ctrl key keeps down, don't set the operation to "default" after an operation finished for example, if the selected operation is "Add U grid line" and the Ctrl key keeps down after the user draws a U line, he can continue to draw another line, as long as the Ctrl is down

GridForm_KeyUp ( object sender, KeyEventArgs e ) : void

reset the CtrlKeyDown flag to false, indicating that the Ctrl key is no longer down so the "continuous" operations will be stopped

GridForm_Load ( object sender, EventArgs e ) : void

initialize the Windows Form's appearance

InitializeComponent ( ) : void

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

InitializeCustomComponent ( ) : void

initialize the special UI controls which needed to be initialized manually

ResetLineOpApprearances ( ) : void

reset the curtain grid operation to "Waiting"

UpdatePropertyGrid ( ) : void

reload the properties of the curtain grid

clearButton_Click ( object sender, EventArgs e ) : void

clear the baseline in the canvas area

createButton_Click ( object sender, EventArgs e ) : void

click "Create Curtain Wall" button will create the curtain wall

curtainGridPictureBox_MouseClick ( object sender, MouseEventArgs e ) : void

the user clicks on the curtain grid canvas, executes the grid operation / grid line operation

curtainGridPictureBox_MouseMove ( object sender, MouseEventArgs e ) : void

move the mouse in the curtain grid canvas, select the grid line / segment

curtainGridPictureBox_Paint ( object sender, PaintEventArgs e ) : void

redraw the curtain grid canvas

curtainWallPictureBox_MouseClick ( object sender, MouseEventArgs e ) : void

the user clicks on the canvas to draw the baseline of the curtain wall

curtainWallPictureBox_MouseMove ( object sender, MouseEventArgs e ) : void

the user moves the mouse in the canvas to find a point for the baseline of the curtain wall

curtainWallPictureBox_Paint ( object sender, PaintEventArgs e ) : void

redraw the baseline of the curtain wall

exitButton_Click ( object sender, EventArgs e ) : void

the user clicks the "Exit" button, quit the dialog

gridExitButton_Click ( object sender, EventArgs e ) : void

the user clicks the "Exit" button, quit the dialog

lineOperationsComboBox_SelectedIndexChanged ( object sender, EventArgs e ) : void

the user specifies a grid operation / grid line operation

m_myDocument_MessageChanged ( ) : void

update the status hints in the status strip

mainTabControl_KeyPress ( object sender, KeyPressEventArgs e ) : void

the user presses the "ESC" key, quit the current operation

mainTabControl_SelectedIndexChanged ( object sender, EventArgs e ) : void

the user changes the tab page, update the data in the active tab page

mainTabControl_Selecting ( object sender, TabControlCancelEventArgs e ) : void

the user wants to change to another tab page (for example, change from "Create Curtain Wall" to "Curtain Grid") if the curtain wall hasn't been created, don't allow to change to "Curtain Grid" tab page

viewComboBox_SelectedIndexChanged ( object sender, EventArgs e ) : void

the user specifies a view plan to create the curtain wall

wallTypeComboBox_SelectedIndexChanged ( object sender, EventArgs e ) : void

the user specifies a wall type to create the curtain wall

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

GridForm() public method

constructor
public GridForm ( MyDocument myDoc ) : System
myDoc MyDocument /// store the document of this sample ///
return System