Skip to content

Commit ba898a4

Browse files
authored
GetAssembly Protos (#33)
1 parent ca2c999 commit ba898a4

File tree

2 files changed

+25
-3
lines changed

2 files changed

+25
-3
lines changed

ansys/api/geometry/v0/designs.proto

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// ©2023, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited.
1+
// ©2023, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited.
22
syntax = "proto3";
33
package ansys.api.geometry.v0.Designs;
44

@@ -30,6 +30,8 @@ service Designs{
3030
rpc Export(ExportRequest) returns(ExportResponse);
3131

3232
rpc GetAsJson(GetAsJsonRequest) returns(GetAsJsonResponse);
33+
34+
rpc GetAssembly(EntityIdentifier) returns (GetAssemblyResponse);
3335
}
3436

3537
message GetAllResponse{
@@ -65,6 +67,22 @@ message ExportResponse {
6567
message GetAsJsonRequest {
6668
string id=1;
6769
}
70+
6871
message GetAsJsonResponse {
6972
string json=1;
70-
}
73+
}
74+
75+
message CoordinateSystemList {
76+
repeated CoordinateSystem coordinate_systems=1;
77+
}
78+
79+
message GetAssemblyResponse {
80+
repeated Part parts=1;
81+
repeated Component transformed_parts=2;
82+
repeated Component components=3;
83+
repeated Body bodies=4;
84+
repeated Material materials=5;
85+
repeated NamedSelection named_selections=6;
86+
map <string, CoordinateSystemList> component_coord_systems=7;
87+
map <string, int32> component_shared_topologies=8;
88+
}

ansys/api/geometry/v0/models.proto

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// ©2023, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited.
1+
// ©2023, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited.
22
syntax = "proto3";
33
package ansys.api.geometry.v0;
44

@@ -107,6 +107,7 @@ message Body{
107107
Matrix transform_to_master = 6;
108108
BodyMasterNullable master = 7;
109109
string master_id = 8;
110+
string parent_id = 9;
110111
}
111112

112113
//
@@ -146,6 +147,9 @@ message Component{
146147
string name = 2;
147148
Part part_occurrence = 3;
148149
Matrix placement =4;
150+
string master_id=5;
151+
string parent_id=6;
152+
Part part_master=7;
149153
}
150154

151155
//

0 commit comments

Comments
 (0)