diff --git a/src/ansys/motorcad/core/geometry.py b/src/ansys/motorcad/core/geometry.py index dedc4c5b3..0cd227a0e 100644 --- a/src/ansys/motorcad/core/geometry.py +++ b/src/ansys/motorcad/core/geometry.py @@ -209,6 +209,11 @@ def _to_json(self): dict Geometry region json representation """ + if self._region_type == RegionType.adaptive: + lamination_type = self.lamination_type + else: + lamination_type = "" + region_dict = { "name": self.name, "material": self.material, @@ -223,7 +228,7 @@ def _to_json(self): "mesh_length": self.mesh_length, "on_boundary": False if self._linked_region is None else True, "singular": self._singular, - "lamination_type": self._lamination_type, + "lamination_type": lamination_type, } return region_dict