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"
])
The Edit command replaces the EditMeshOpName commands of previous releases.
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 |
|
|||||||||
| 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" ]) |
|
|
oModule = oDesign.GetModule("MeshSetup") oModule.Edit("EdgeCut1", [ "NAME:EdgeCut1", "Layer Thickness:=" , "0.66mm" ]) |
|
|
oModule = oDesign.GetModule("MeshSetup") oModule.Edit("ModelResolution1", [ "NAME:ModelResolution1", "UseAutoLength:=", False, "DefeatureLength:=", "71.5891053163818mil" ]) |
|
|
oModule = oDesign.GetModule("MeshSetup") oModule.Edit("SkinDepth1", [ "NAME:SkinD", "RestrictElem:=", False, "SkinDepth:=", "2mm", "SurfTriMaxLength:=", "1mm", "NumLayers:=", 2 ]) |