From 8e2594cefebd5ce8cffcf2d2fd1df3a79db1950a Mon Sep 17 00:00:00 2001 From: Hui Zhou Date: Wed, 16 Oct 2024 08:34:53 +0200 Subject: [PATCH] FIX: Field plot (#5299) Co-authored-by: ring630 <@gmail.com> --- src/ansys/aedt/core/visualization/post/post_common_3d.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ansys/aedt/core/visualization/post/post_common_3d.py b/src/ansys/aedt/core/visualization/post/post_common_3d.py index e835173c2c6..4cda4d13583 100644 --- a/src/ansys/aedt/core/visualization/post/post_common_3d.py +++ b/src/ansys/aedt/core/visualization/post/post_common_3d.py @@ -1553,7 +1553,10 @@ def create_fieldplot_layers_nets( for layer in layers_nets: for el in layer[1:]: el = "" 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)