diff --git a/src/ansys/aedt/core/modules/boundary/layout_boundary.py b/src/ansys/aedt/core/modules/boundary/layout_boundary.py index e539655934d..fe855892fa4 100644 --- a/src/ansys/aedt/core/modules/boundary/layout_boundary.py +++ b/src/ansys/aedt/core/modules/boundary/layout_boundary.py @@ -118,7 +118,9 @@ def _child_object(self): """ child_object = None - for el in self._app.oeditor.GetChildNames("ComponentDefinition"): + component_definition = self._app.oeditor.Get3DComponentDefinitionNames() + + for el in component_definition: design_childs = self._app.get_oo_object(self._app.oeditor, el).GetChildNames() if self._name in design_childs: child_object = self._app.get_oo_object(self._app.oeditor, f"{el}\\{self._name}")