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

ホーム / モデリング / CGaudiBody / 関数 / GetEdgeByID

GetEdgeByID関数

定義

GetEdgeByID(ID As Long) As CGaudiEdge

戻り値

 

CGaudiEdge   (辺トポロジ)

引数

ID   CGaudiEdgeの識別ID

解説

指定されたIDで識別される辺トポロジを返す。
失敗した場合は、Nothingが返ります。
IDは辺トポロジをピックした時に表示されます。
MACRO00000068.gif

実行例

Dim Femtet As New CFemtet
Dim Gaudi As CGaudi
Dim Box 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.GetEdgeByID(34).AddBoundary "Boundary"