C# Class Revit.SDK.Samples.NewOpenings.CS.NewOpeningsForm

ファイルを表示 Open project: AMEE/revit Class Usage Examples

Public Methods

Method Description
NewOpeningsForm ( ) : System

default constructor

NewOpeningsForm ( Profile profile ) : System

constructor

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
ComputerScaleMatrix ( Size size ) : Matrix4

calculate the matrix use to scale

Comuter3DTo2DMatrix ( ) : Matrix4

Calculate the matrix use to transform 3D to 2D

GenerateCircle4Point ( List points ) : List

get four points on circle by center and one point on circle

InitTools ( ) : void

add tools, then use can draw by these tools in picture box

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
TransForm2DTo3D ( Point ps ) : List

Transform the point on Form to 3d world coordinate of Revit

TransFormPoints ( Point pts ) : void

use matrix to transform point

cancelButton_Click ( object sender, EventArgs e ) : void
openingPictureBox_MouseDown ( object sender, MouseEventArgs e ) : void

mouse event handle

openingPictureBox_MouseMove ( object sender, MouseEventArgs e ) : void

Mouse event handle

openingPictureBox_MouseUp ( object sender, MouseEventArgs e ) : void

Mouse event handle

openingPictureBox_Paint ( object sender, PaintEventArgs e ) : void

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

NewOpeningsForm() public method

default constructor
public NewOpeningsForm ( ) : System
return System

NewOpeningsForm() public method

constructor
public NewOpeningsForm ( Profile profile ) : System
profile Profile ProfileWall or ProfileFloor
return System