diff --git a/src/ansys/aedt/toolkits/magnet_segmentation/backend/workflows/aedt.py b/src/ansys/aedt/toolkits/magnet_segmentation/backend/workflows/aedt.py index 59bf0e65..40a36df5 100644 --- a/src/ansys/aedt/toolkits/magnet_segmentation/backend/workflows/aedt.py +++ b/src/ansys/aedt/toolkits/magnet_segmentation/backend/workflows/aedt.py @@ -136,9 +136,9 @@ def segmentation(self): rotor_slices.clear() magnets = self.aedtapp.modeler.get_objects_by_material(self.properties.magnets_material) - faces = [] - mesh_sheets = [] for magnet in magnets: + faces = [] + mesh_sheets = [] cs = self.aedtapp.modeler.duplicate_coordinate_system_to_global(magnet.part_coordinate_system) magnet.part_coordinate_system = cs.name self.aedtapp.modeler.set_working_coordinate_system("Global")