Skip to content

Commit 6f91d56

Browse files
committed
Merge branch 'main' into release/0.2
2 parents 722200b + ba898a4 commit 6f91d56

File tree

6 files changed

+30
-1519
lines changed

6 files changed

+30
-1519
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,10 @@ jobs:
2424
with:
2525
python-version: ${{ env.MAIN_PYTHON_VERSION }}
2626

27-
# Uncomment once the proto files are stable enough on their side
28-
29-
# - name: Run protolint
30-
# uses: plexsystems/[email protected]
31-
# with:
32-
# configDirectory: .
27+
- name: Run protolint
28+
uses: plexsystems/[email protected]
29+
with:
30+
configDirectory: .
3331

3432
- name: Install build requirements
3533
run: |

.protolint.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ lint:
1818
# - Enum fields with 0 value are not suffixed UNSPECIFIED
1919
# - Prepositions should be exluded from message and field names
2020
remove:
21+
- PACKAGE_NAME_LOWER_CASE
2122
- MESSAGES_HAVE_COMMENT
2223
- SERVICES_HAVE_COMMENT
2324
- RPCS_HAVE_COMMENT

ansys/api/geometry/v0/api.proto

Lines changed: 0 additions & 38 deletions
This file was deleted.

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)