Méthode | Description | |
---|---|---|
Compute3DTo2DMatrix ( ) : |
calculate the matrix used to transform 3D to 2D. because profile of shaft opening in Revit is 2d too, so we need do nothing but new a matrix
|
|
ComputeScaleMatrix ( |
calculate the matrix for scale
|
|
CreateOpening ( List |
Create Shaft Opening
|
|
Draw2D ( |
draw the coordinate system
|
|
ProfileNull ( ExternalCommandData commandData ) : System |
constructor
|
|
Transform2DTo3D ( |
move the points to the center and scale as user selected. profile of shaft opening in Revit is 2d too, so don't need transform points to 2d
|
Méthode | Description | |
---|---|---|
GetLevels ( ) : void |
get level1 and level2 used to create shaft opening
|
public ComputeScaleMatrix ( |
||
size | pictureBox size | |
Résultat |
public CreateOpening ( List |
||
points | List |
points used to create Opening |
Résultat | Opening |
public Draw2D ( |
||
graphics | form graphic | |
pen | pen used to draw line in pictureBox | |
matrix4 | Matrix used to transform 3d to 2d /// and make picture in right scale | |
Résultat | void |
public ProfileNull ( ExternalCommandData commandData ) : System | ||
commandData | ExternalCommandData | object which contains reference of Revit Application |
Résultat | System |
public Transform2DTo3D ( |
||
ps | contain the points to be transformed | |
Résultat | List |