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}") diff --git a/src/ansys/aedt/core/modules/mesh_icepak.py b/src/ansys/aedt/core/modules/mesh_icepak.py index 395e8bb8637..3b688f41152 100644 --- a/src/ansys/aedt/core/modules/mesh_icepak.py +++ b/src/ansys/aedt/core/modules/mesh_icepak.py @@ -933,12 +933,12 @@ def assignment(self): for sr in sub_regions: p1 = [] p2 = [] - if "Part Names" in self._app.modeler[sr].history().props: - p1 = self._app.modeler[sr].history().props.get("Part Names", None) + if "Part Names" in self._app.modeler[sr].history().properties: + p1 = self._app.modeler[sr].history().properties.get("Part Names", None) if not isinstance(p1, list): p1 = [p1] - elif "Submodel Names" in self._app.modeler[sr].history().props: - p2 = self._app.modeler[sr].history().props.get("Submodel Names", None) + elif "Submodel Names" in self._app.modeler[sr].history().properties: + p2 = self._app.modeler[sr].history().properties.get("Submodel Names", None) if not isinstance(p2, list): p2 = [p2] p1 += p2