Skip to content

Commit c421ab3

Browse files
extracting entity identifier id's
1 parent c9b613a commit c421ab3

File tree

2 files changed

+19
-7
lines changed

2 files changed

+19
-7
lines changed

src/ansys/geometry/core/_grpc/_services/v1/edges.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,9 @@ def extrude_edges(self, **kwargs) -> dict: # noqa: D102
222222
# Return the response - formatted as a dictionary
223223
return {
224224
"success": tracked_response.get("success"),
225-
"created_bodies": [body.get("id") for body in tracked_response.get("created_bodies")],
225+
"created_bodies": [
226+
body.get("id").id for body in tracked_response.get("created_bodies")
227+
],
226228
}
227229

228230
@protect_grpc
@@ -252,7 +254,9 @@ def extrude_edges_up_to(self, **kwargs) -> dict: # noqa: D102
252254
# Return the response - formatted as a dictionary
253255
return {
254256
"success": tracked_response.get("success"),
255-
"created_bodies": [body.get("id") for body in tracked_response.get("created_bodies")],
257+
"created_bodies": [
258+
body.get("id").id for body in tracked_response.get("created_bodies")
259+
],
256260
}
257261

258262
@protect_grpc

src/ansys/geometry/core/_grpc/_services/v1/faces.py

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,9 @@ def extrude_faces(self, **kwargs) -> dict: # noqa: D102
354354
# Return the response - formatted as a dictionary
355355
return {
356356
"success": tracked_response.get("success"),
357-
"created_bodies": [body.get("id") for body in tracked_response.get("created_bodies")],
357+
"created_bodies": [
358+
body.get("id").id for body in tracked_response.get("created_bodies")
359+
],
358360
}
359361

360362
@protect_grpc
@@ -388,7 +390,9 @@ def extrude_faces_up_to(self, **kwargs) -> dict: # noqa: D102
388390
# Return the response - formatted as a dictionary
389391
return {
390392
"success": tracked_response.get("success"),
391-
"created_bodies": [body.get("id") for body in tracked_response.get("created_bodies")],
393+
"created_bodies": [
394+
body.get("id").id for body in tracked_response.get("created_bodies")
395+
],
392396
}
393397

394398
@protect_grpc
@@ -446,7 +450,9 @@ def revolve_faces(self, **kwargs) -> dict: # noqa: D102
446450
# Return the response - formatted as a dictionary
447451
return {
448452
"success": tracked_response.get("success"),
449-
"created_bodies": [body.get("id") for body in tracked_response.get("created_bodies")],
453+
"created_bodies": [
454+
body.get("id").id for body in tracked_response.get("created_bodies")
455+
],
450456
}
451457

452458
@protect_grpc
@@ -476,7 +482,9 @@ def revolve_faces_up_to(self, **kwargs) -> dict: # noqa: D102
476482
# Return the response - formatted as a dictionary
477483
return {
478484
"success": tracked_response.get("success"),
479-
"created_bodies": [body.get("id") for body in tracked_response.get("created_bodies")],
485+
"created_bodies": [
486+
body.get("id").id for body in tracked_response.get("created_bodies")
487+
],
480488
}
481489

482490
@protect_grpc
@@ -629,7 +637,7 @@ def offset_faces(self, **kwargs) -> dict: # noqa: D102
629637

630638
# Return the response - formatted as a dictionary
631639
return {
632-
"results": [face.get("id") for face in tracked_response.get("created_faces")],
640+
"results": [face.get("id").id for face in tracked_response.get("created_faces")],
633641
}
634642

635643
@protect_grpc

0 commit comments

Comments
 (0)