Edit for MeshSetup Commands

For existing mesh operations excitations, the Edit command can be used to change mesh operation properties. To use this command, first call the MeshSetup module, and then with the Edit command, specify the name of the mesh operation and then the properties of that particular mesh operation. For example, to change the properties of a Length-Based mesh operation:

oModule = oDesign.GetModule("MeshSetup")

oModule.Edit("Length1",

[

"NAME:Length1",

"RefineInside:=" , True,

"Enabled:=" , True,

"RestrictElem:=" , False,

"NumMaxElem:=" , "1000",

"RestrictLength:=" , True,

"MaxLength:=" , "15mm"

])

Important:

The Edit command replaces the EditMeshOpName commands of previous releases.

Note:

The Edit command cannot be used to change the entity that the mesh operation is assigned to. To change the entity, use one of the following commands:

UI Access Right click on the mesh operation undernearth the Mesh entry in the Project Manager tree, and select Properties
Parameters
Name Type Description
<Name> String Name of the mesh operation to be edited.

<Properties>

Array Structured array. The required contents of this array is determined by the type of mesh operation specified in the Name parameter. See the corresponding AssignMeshOpName topic for a list of properties that can be edited.
Return Value None

 

Python Syntax Edit(<Name>, <Properties>)
Python Example

3D Model CylindricalGap Mesh Operation

oModule = oDesign.GetModule("MeshSetup")

oModule.Edit("CylindricalGap1",

[

"NAME:CylindricalGap1",

"CloneMesh:=" , True,

"BandMappingAngle:=" , "2deg",

"MovingSideLayers:=" , "1",

"StaticSideLayers:=" , "1"

])

2D Model CylindricalGap Mesh Operation

oModule = oDesign.GetModule("MeshSetup")

oModule.Edit("CylindricalGap1",

[

"NAME:CylindricalGap1",

"UseBandMappingAngle:=", True,

"BandMappingAngle:=", 3deg,

])

 

Clone Mesh Density Mesh Operation:

oModule = oDesign.GetModule("MeshSetup")

oModule.Edit("Clone Mesh Density1",

[

"NAME:Clone Mesh Density1",

"RefineInside:=" , True,

"RestrictMaxElemLength:=", True,

"MaxElemLength:=" , "0.02mm",

"RestrictLayersNum:=" , True,

"LayersNum:=" , "15"

])

 

EdgeCutLayer Operation:

oModule = oDesign.GetModule("MeshSetup")

oModule.Edit("EdgeCut1",

[

"NAME:EdgeCut1",

"Layer Thickness:=" , "0.66mm"

])

 

Model Resolution Operation:

oModule = oDesign.GetModule("MeshSetup")

oModule.Edit("ModelResolution1",

[

"NAME:ModelResolution1",

"UseAutoLength:=", False,

"DefeatureLength:=", "71.5891053163818mil"

])

 

Skin Depth Operation:

oModule = oDesign.GetModule("MeshSetup")

oModule.Edit("SkinDepth1",

[

"NAME:SkinD",

"RestrictElem:=", False,

"SkinDepth:=", "2mm",

"SurfTriMaxLength:=", "1mm",

"NumLayers:=", 2

])