diff --git a/pyaedt/modeler/cad/Modeler.py b/pyaedt/modeler/cad/Modeler.py index 0aa411ba1a4..6cbdf4d703c 100644 --- a/pyaedt/modeler/cad/Modeler.py +++ b/pyaedt/modeler/cad/Modeler.py @@ -3314,9 +3314,7 @@ def get_boundaries_name(self): if self._app.design_type == "Icepak": return list(self._app.odesign.GetChildObject("Thermal").GetChildNames()) else: - list_names = list(self._app.oboundary.GetBoundaries()) - del list_names[1::2] - return list_names + return list(self._app.odesign.GetChildObject("Boundaries").GetChildNames()) @pyaedt_function_handler() def set_object_model_state(self, obj_list, model=True): diff --git a/pyaedt/modeler/modeler3d.py b/pyaedt/modeler/modeler3d.py index 3baf536fdd9..c691e9892ba 100644 --- a/pyaedt/modeler/modeler3d.py +++ b/pyaedt/modeler/modeler3d.py @@ -262,12 +262,11 @@ def create_3dcomponent( arg.append("VendorComponentIdentifier:="), arg.append("") arg.append("PublicKeyFile:="), arg.append("") arg2 = ["NAME:DesignData"] - if boundaries_list: + if boundaries_list is not None: boundaries = boundaries_list else: boundaries = self.get_boundaries_name() - if boundaries: - arg2.append("Boundaries:="), arg2.append(boundaries) + arg2.append("Boundaries:="), arg2.append(boundaries) if self._app.design_type == "Icepak": meshregions = [mr.name for mr in self._app.mesh.meshregions] try: