Skip to content

Commit

Permalink
FIX: Field plot (#5299)
Browse files Browse the repository at this point in the history
Co-authored-by: ring630 <@gmail.com>
  • Loading branch information
hui-zhou-a authored Oct 16, 2024
1 parent 015b380 commit 8e2594c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ansys/aedt/core/visualization/post/post_common_3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -1553,7 +1553,10 @@ def create_fieldplot_layers_nets(
for layer in layers_nets:
for el in layer[1:]:
el = "<no-net>" if el == "no-net" else el
get_ids = self._odesign.GetGeometryIdsForNetLayerCombination(el, layer[0], setup)
try:
get_ids = self._odesign.GetGeometryIdsForNetLayerCombination(el, layer[0], setup)
except: # pragma no cover
get_ids = []
if isinstance(get_ids, (tuple, list)) and len(get_ids) > 2:
lst.extend([int(i) for i in get_ids[2:]])
return self._create_fieldplot(lst, quantity, setup, intrinsics, "FacesList", plot_name)
Expand Down

0 comments on commit 8e2594c

Please sign in to comment.