ホーム / モデリング / CGaudi / 関数 / CloseModel
CloseModel関数
定義
CloseModel(bForce As Boolean) As Boolean戻り値
| True | 成功 | |
| False | 失敗(閉じられなかったり、既に閉じられている場合) |
引数
| bForce | モデルが更新されていても保存せずに閉じる(True)、閉じない(False)を設定します。 |
解説
現在開いているモデルを閉じます。 Solver計算のためにメモリを節約させたりするのに有効です。実行例
Dim Femtet As New CFemtetDim Gaudi As CGaudi
Dim Point As New CGaudiPoint
Dim Body As CGaudiBody
'新規プロジェクト作成
If Femtet.OpenNewProject() = False Then
Femtet.ShowLastError
End If
'Femtet.Gaudiを変数Gaudiに代入して使いやすくする
Set Gaudi = Femtet.Gaudi
Point.X = 0
Point.Y = 0
Point.Z = 0
Set Body = Gaudi.CreateVertex (Point)
If (Gaudi.CloseModel(False) = False) Then
Femtet.ShowLastError
End If


