diff --git a/src/ansys/aedt/core/hfss.py b/src/ansys/aedt/core/hfss.py index ce9b9386d29..a073cfab34d 100644 --- a/src/ansys/aedt/core/hfss.py +++ b/src/ansys/aedt/core/hfss.py @@ -6132,7 +6132,7 @@ def get_hdm_plotter(self, file_name=None): from ansys.aedt.core.visualization.advanced.hdm_plot import HDMPlotter hdm = HDMPlotter() - files = self.post.export_model_obj(export_as_single_objects=True, air_objects=False) + files = self.post.export_model_obj(export_as_multiple_objects=True, air_objects=False) for file in files: hdm.add_cad_model(file[0], file[1], file[2], self.modeler.model_units) hdm.add_hdm_bundle_from_file(file_name) 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 1971dbda9b1..e098c18aed2 100644 --- a/src/ansys/aedt/core/visualization/post/post_common_3d.py +++ b/src/ansys/aedt/core/visualization/post/post_common_3d.py @@ -2202,8 +2202,8 @@ def get_far_field_data(self, expressions="GainTotal", setup_sweep_name="", domai return False return solution_data - @pyaedt_function_handler(obj_list="assignment") - def export_model_obj(self, assignment=None, export_path=None, export_as_single_objects=False, air_objects=False): + @pyaedt_function_handler(obj_list="assignment", export_as_single_objects="export_as_multiple_objects") + def export_model_obj(self, assignment=None, export_path=None, export_as_multiple_objects=False, air_objects=False): """Export the model. Parameters @@ -2213,9 +2213,9 @@ def export_model_obj(self, assignment=None, export_path=None, export_as_single_o case export every model object except 3D ones and vacuum and air objects. export_path : str, optional Full path of the exported OBJ file. - export_as_single_objects : bool, optional - Whether to export the model as single object. The default is ``False``, in which - case is exported asa list of objects for each object. + export_as_multiple_objects : bool, optional + Whether to export the model as multiple objects or not. Default is ``False`` + in which case the model is exported as single object. air_objects : bool, optional Whether to export air and vacuum objects. The default is ``False``. @@ -2244,7 +2244,7 @@ def export_model_obj(self, assignment=None, export_path=None, export_as_single_o and self._app.modeler[i].material_name.lower() != "air" ) ] - if not export_as_single_objects: + if export_as_multiple_objects: files_exported = [] for el in assignment: fname = os.path.join(export_path, f"{el}.obj")