File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 2424import grpc
2525import pint
2626
27- from ansys .geometry .core import USE_TRACKER_TO_UPDATE_DESIGN
27+ import ansys .geometry .core as pyansys_geom
2828from ansys .geometry .core .errors import protect_grpc
2929from ansys .geometry .core .misc .auxiliary import get_design_from_body
3030from ansys .geometry .core .misc .measurements import DEFAULT_UNITS
@@ -722,10 +722,10 @@ def boolean(self, **kwargs) -> dict: # noqa: D102
722722 tool_bodies = [other .id for other in kwargs ["other" ]],
723723 method = kwargs ["method" ],
724724 )
725- if USE_TRACKER_TO_UPDATE_DESIGN :
725+ if pyansys_geom . USE_TRACKER_TO_UPDATE_DESIGN :
726726 request .keep_other = kwargs ["keep_other" ]
727727 resp = self .stub .Boolean (request = request )
728- if USE_TRACKER_TO_UPDATE_DESIGN :
728+ if pyansys_geom . USE_TRACKER_TO_UPDATE_DESIGN :
729729 parent_design = get_design_from_body (kwargs ["target" ])
730730 serialized_tracker_response = parent_design ._serialize_tracker_command_response (
731731 resp .response
Original file line number Diff line number Diff line change @@ -1392,7 +1392,6 @@ def _handle_deleted_bodies(self, deleted_bodies):
13921392 for body in self .bodies :
13931393 if body .id == body_id :
13941394 body ._is_alive = False
1395- # self.bodies.remove(body)
13961395 for bd in self ._master_component .part .bodies :
13971396 if bd .id == body_id :
13981397 self ._master_component .part .bodies .remove (bd )
@@ -1427,7 +1426,6 @@ def _handle_created_bodies(self, created_bodies):
14271426 added = self ._find_and_add_body (body_info , self .components )
14281427 if not added :
14291428 new_body = MasterBody (body_id , body_name , self ._grpc_client , is_surface = is_surface )
1430- # self.bodies.append(new_body)
14311429 self ._master_component .part .bodies .append (new_body )
14321430 self ._clear_cached_bodies ()
14331431 self ._grpc_client .log .debug (
You can’t perform that action at this time.
0 commit comments