GetLayerAndNetOfMeshBody

For a given mesh body name, returns a pair of layer and net name to which this body belongs.

UI Access N/A
Parameters The input is a mesh body name.
Return Value Returns a pair of layer and net name to which this body belongs.

 

Python Syntax GetLayerAndNetOfMeshBody()
Python Example

LayerAndNetOfMeshBody("LC1_1:METAL-1") print layerNetInfo #prints ["METAL-1","trace_P"]

Example usage to plot on the objects on certain layers and nets using GetLayerAndNetOfMeshBody with GetMeshBodiesOnLayerAndNet.

meshBodies = oModule.GetMeshBodiesOnLayerAndNet(

[

"NAME:LayerNetInfo",

"METAL-1:=" , ["trace_P","ground"]

])

plotGeomInfo = [1,"Volume","ObjList",]

plotGeomInfo.append(len(meshBodies))

plotGeomInfo += meshBodies

oFieldsReporterModule = oDesign.GetModule("FieldsReporter")

oFieldsReporterModule.CreateFieldPlot(

[

"NAME:Mesh1",

"SolutionName:=" , "Setup1 : LastAdaptive",

"UserSpecifyName:=" , 0,

"UserSpecifyFolder:=" , 0,

"QuantityName:=" , "Mesh",

"PlotFolder:=" , "MeshPlots",

"FieldType:=" , "Fields",

"StreamlinePlot:=" , False,

"AdjacentSidePlot:=" , False,

"FullModelPlot:=" , False,

"IntrinsicVar:=" , "Freq=\'5GHz\' Phase=\'0deg\'",

"PlotGeomInfo:=" , plotGeomInfo,

"FilterBoxes:=" , [0],

"Real time mode:=" , True,

[

"NAME:MeshSettings",

"Scale factor:=" , 100,

"Transparency:=" , 0,

"Mesh type:=" , "Shaded",

"Surface only:=" , True,

"Add grid:=" , True,

"Refinement:=" , 0,

"Use geometry color:=" , True,

"Mesh line color:=" , [0,0,255],

"Filled color:=" , [255,255,255]

],

"EnableGaussianSmoothing:=", False,

"SurfaceOnly:=" , False

], "Field")