ホーム / モデリング / CGaudiBody / プロパティ / GroupName
GroupNameプロパティ
定義
GroupName As String| 値の取得 | ○ | |
| 値の設定 | ○ |
引数
ありません解説
CGaudiBodyのグループ名を設定/取得します。グループが2階層以上ある場合は、';'で区切って1つの文字列として指定します。
(例)"親グループ名;子グループ名;孫グループ名"
実行例
あるBodyのグループを"GroupA"に変更します。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
End If
'Femtet.Gaudiを変数Gaudiに代入して使いやすくする
Set Gaudi = Femtet.Gaudi
Point.X =0
Point.Y =0
Point.Z =0
Set Body =Gaudi.CreateBox(Point,3,3,5)
Body.GroupName = "GroupA"


