Femtet2026.0マクロヘルプ/マニュアル
 

ホーム / モデリング / CGaudiPoint / 関数 / SetCoord

SetCoord関数

定義

SetCoord (px As Double,py As Double,pz As Double)

戻り値

ありません

引数

px   xの座標値(Double)
py   yの座標値(Double)

pz

  zの座標値(Double)

解説

座標値 x,y,zをすべて設定する関数です。
CGaudiPointのプロパティ x、y、zは、個々を設定します。

実行例

Dim Femtet As New CFemtet
Dim Gaudi As CGaudi
Dim Body As CGaudiBody
Dim Point As New CGaudiPoint

'新規プロジェクト作成
If Femtet.OpenNewProject() = False Then
    Femtet.ShowLastError
End If

'Femtet.Gaudiを変数Gaudiに代入して使いやすくする
Set Gaudi = Femtet.Gaudi



Point.SetCoord 0, 0, 0

Set Body = Gaudi.CreateBox(Point, 5, 5, 5)