ホーム / モデリング / CGaudi / 関数 / SetPlane
SetPlane関数
定義
SetPlane (newPlane As CGaudiPlane) As Boolean戻り値
| True | 成功 | |
| False | 失敗 |
引数
| newPlane | 新しく設定する作業平面 |
解説
作業平面を設定します。デフォルトの作業平面は、
|
|
X |
Y |
Z |
|
原点 |
0.0 |
0.0 |
0.0 |
|
主軸 |
0.0 |
0.0 |
1.0 |
|
副軸 |
1.0 |
0.0 |
0.0 |
主軸とは、作業平面の法線を指します。
副軸とは、作業平面に平行なベクトルを指定します。
ちなみにこの副軸が、長方形の作図などで「幅」にあたる方向です。
![]() |
実行例
Dim Femtet As New CFemtetDim Gaudi As CGaudi
Dim Plane As New CGaudiPlane
'新規プロジェクト作成
If Femtet.OpenNewProject() = False Then
Femtet.ShowLastError
End If
' 作業平面をXY平面に設定します
Plane.MainDirection.SetCoord 0, 0, 1
Plane.RefDirection.SetCoord 1, 0, 0
If Gaudi.SetPlane(Plane) = False Then
Femtet.ShowLastError
End If



