Skip to content

Commit b84e23c

Browse files
committed
Remove last direct usage of stubs in problem_areat.py
1 parent 9a35567 commit b84e23c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/ansys/geometry/core/tools/problem_areas.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -622,9 +622,8 @@ def fix(self) -> RepairToolMessage:
622622
return RepairToolMessage(False, [], [])
623623

624624
parent_design = get_design_from_body(self.bodies[0])
625-
response = self._repair_stub.FixInterference(
626-
FixInterferenceRequest(interference_problem_area_id=self._grpc_id)
627-
)
625+
response = self._grpc_client.services.repair_tools.fix_interference(
626+
interference_problem_area_id=self._grpc_id)
628627

629628
if not pyansys_geom.USE_TRACKER_TO_UPDATE_DESIGN:
630629
parent_design._update_design_inplace()
@@ -633,7 +632,7 @@ def fix(self) -> RepairToolMessage:
633632

634633
## The tool does not return the created or modified objects.
635634
## https://github.com/ansys/pyansys-geometry/issues/1319
636-
message = RepairToolMessage(response.result.success, [], [])
635+
message = RepairToolMessage(response.get("repair_tracker_response").get("success"), [], [])
637636
return message
638637

639638

0 commit comments

Comments
 (0)