GetMeshBodiesOnLayerAndNet

Gets the field type of a driven modal design solution.

UI Access N/A
Parameters The inputs are a layer net block and a vector of component names (optional).
Return Value The output is a vector of mesh body names that belong to the specified nets and layers and the component..

 

Python Syntax GetMeshBodiesOnLayerAndNet()
Python Example

import ScriptEnv

ScriptEnv.Initialize("Ansoft.ElectronicsDesktop")

oDesktop.RestoreWindow()

oProject = oDesktop.SetActiveProject("Tests")

oDesign = oProject.SetActiveDesign("Reference_multiple")

oModule = oDesign.GetModule("Solutions")

meshBodies = oModule.GetMeshBodiesOnLayerAndNet(

[

"NAME:LayerNetInfo",

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

])

print meshBodies #prints["LC1_1:METAL-1", "LC1_2:METAL-1"]

meshBodiesForLC1_1 = oModule.GetMeshBodiesOnLayerAndNet(

[

"NAME:LayerNetInfo",

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

], ["LC1_1"])

print meshBodiesForLC1_1 #prints ["LC1_1:METAL-1"]

moreMeshBodies = oModule.GetMeshBodiesOnLayerAndNet(

[

"NAME:LayerNetInfo",

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

"METAL-2:=" , ["TRACE_p","GROUND"] #case insensitive

])

print moreMeshBodies #prints ['LC1_1:METAL-1', 'LC1_2:METAL-1', 'LC1_1:METAL-2', 'LC1_2:METAL-2']

moreMeshBodiesForLC1_1 = oModule.GetMeshBodiesOnLayerAndNet(

[

"NAME:LayerNetInfo",

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

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

], ["LC1_1"])

print moreMeshBodiesForLC1_1 #prints['LC1_1:METAL-1', 'LC1_1:METAL-2']