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

ホーム / 解析条件の設定 / CLayerMesh / プロパティ / nLayer

nLayerプロパティ

定義

nLayer As Long
値の取得  
値の設定  

引数

引数はありません

解説

積層メッシュの層数を取得、設定します。

実行例

Dim Femtet As New CFemtet
Dim Als As CAnalysis

If Femtet.OpenNewProject() = False Then
    Femtet.ShowLastError
End If

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

Als.Bernoulli.LayerMesh.LayerMeshType = LAYER_MESH_FIRST_LAYER_C
Als.Bernoulli.LayerMesh.nLayer = 10