ホーム / モデリング / CGaudiFace / プロパティ / ParentBody
ParentBodyプロパティ
定義
ParentBody As CGaudiBody| 値の取得 | ○ | |
| 値の設定 | × |
引数
引数はありません解説
CGaudiFaceが所属する親CGaudiBodyを取得します。実行例
Dim Femtet As New CFemtetDim Gaudi As CGaudi
Dim Box As CGaudiBody
Dim ParentBody 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 Box = Gaudi.CreateBox(Point, 10, 10, 10)
'BoxとParentBodyは同じCGaudiBodyになる
Set ParentBody = Box.GetFaceByID(36).ParentBody


