Skip to content

Commit 49a2d07

Browse files
RobPasMueb-matteo
andauthored
feat: importing ansys-api-dbu as a dependency (#45)
Co-authored-by: m-bini <matteo.bini@ansys.com>
1 parent 215d399 commit 49a2d07

22 files changed

+111
-379
lines changed

ansys/api/geometry/v0/admin.proto

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

ansys/api/geometry/v0/bodies.proto

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,54 @@
11
// ©2023, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited.
22
syntax = "proto3";
3-
package ansys.api.geometry.v0.Bodies;
3+
package ansys.api.geometry.v0.bodies;
44

5+
import "ansys/api/dbu/v0/dbumodels.proto";
56
import "ansys/api/geometry/v0/models.proto";
7+
import "google/protobuf/empty.proto";
68

79
option csharp_namespace = "Ansys.Api.Geometry.V0.Bodies";
810

911
service Bodies
1012
{
1113
rpc Get(GetRequest) returns(Body);
1214

13-
rpc GetMaster(EntityIdentifier) returns(Body);
15+
rpc GetMaster(ansys.api.dbu.v0.EntityIdentifier) returns(Body);
1416

15-
rpc GetOriginal(EntityIdentifier) returns(Body);
17+
rpc GetOriginal(ansys.api.dbu.v0.EntityIdentifier) returns(Body);
1618

17-
rpc GetParent(EntityIdentifier) returns(Part);
19+
rpc GetParent(ansys.api.dbu.v0.EntityIdentifier) returns(Part);
1820

1921
rpc GetAll(GetAllRequest) returns(GetAllResponse) ;
2022

21-
rpc GetAssignedMaterial(EntityIdentifier) returns(Material);
23+
rpc GetAssignedMaterial(ansys.api.dbu.v0.EntityIdentifier) returns(Material);
2224

2325
rpc SetAssignedMaterial(SetAssignedMaterialRequest) returns(SetAssignedMaterialResponse);
2426

25-
rpc Translate(TranslateRequest) returns(Empty);
27+
rpc Translate(TranslateRequest) returns(google.protobuf.Empty);
2628

27-
rpc GetFaces(EntityIdentifier) returns (GetFacesResponse);
29+
rpc GetFaces(ansys.api.dbu.v0.EntityIdentifier) returns (GetFacesResponse);
2830

2931
rpc CreateBodyFromFace(CreateBodyFromFaceRequest) returns (Body);
3032

3133
rpc CreateExtrudedBodyFromFaceProfile(CreateExtrudedBodyFromFaceProfileRequest) returns (Body);
3234

33-
rpc Delete(EntityIdentifier) returns (Empty);
35+
rpc Delete(ansys.api.dbu.v0.EntityIdentifier) returns (google.protobuf.Empty);
3436

3537
rpc CreatePlanarBody(CreatePlanarBodyRequest) returns (Body);
3638

3739
rpc CreateExtrudedBody(CreateExtrudedBodyRequest) returns (Body);
3840

39-
rpc GetVolume(EntityIdentifier) returns(GetVolumeResponse);
41+
rpc GetVolume(ansys.api.dbu.v0.EntityIdentifier) returns(GetVolumeResponse);
4042

41-
rpc GetTessellation(EntityIdentifier) returns(GetTessellationResponse);
43+
rpc GetTessellation(ansys.api.dbu.v0.EntityIdentifier) returns(GetTessellationResponse);
4244

43-
rpc GetEdges(EntityIdentifier) returns (GetEdgesResponse);
45+
rpc GetEdges(ansys.api.dbu.v0.EntityIdentifier) returns (GetEdgesResponse);
4446

45-
rpc GetName(EntityIdentifier) returns (GetNameResponse);
47+
rpc GetName(ansys.api.dbu.v0.EntityIdentifier) returns (GetNameResponse);
4648

4749
rpc Copy(CopyRequest) returns (Body);
4850

49-
rpc GetUpdateState(EntityIdentifier) returns (UpdateState);
51+
rpc GetUpdateState(ansys.api.dbu.v0.EntityIdentifier) returns (UpdateState);
5052

5153
rpc Boolean(BooleanRequest) returns (BooleanResponse);
5254
}

ansys/api/geometry/v0/commands.proto

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22

33
syntax = "proto3";
44

5-
package ansys.api.geometry.v0.Commands;
5+
package ansys.api.geometry.v0.commands;
66

7+
import "ansys/api/dbu/v0/dbumodels.proto";
78
import "ansys/api/geometry/v0/models.proto";
9+
import "google/protobuf/empty.proto";
810

911
option csharp_namespace = "Ansys.Api.Geometry.V0.Commands";
1012

@@ -29,29 +31,31 @@ service Commands{
2931

3032
rpc CreateBeamSegments(CreateBeamSegmentsRequest) returns (CreateBeamSegmentsResponse);
3133

32-
rpc FillFaces(FillFacesRequest) returns (Empty);
34+
rpc FillFaces(FillFacesRequest) returns (google.protobuf.Empty);
3335

3436
rpc CreateDesignPoint(CreateDesignPointRequest) returns (CreateDesignPointResponse);
3537

3638
rpc CreateDesignPoints(CreateDesignPointsRequest) returns (CreateDesignPointsResponse);
3739

3840
rpc CreateCurvesFromProfile(CreateCurvesFromProfileRequest) returns (CreateCurvesFromProfileResponse);
3941

40-
rpc AssignMidSurfaceThickness(AssignMidSurfaceThicknessRequest) returns (Empty);
42+
rpc AssignMidSurfaceThickness(AssignMidSurfaceThicknessRequest) returns (google.protobuf.Empty);
4143

42-
rpc AssignMidSurfaceOffsetType(AssignMidSurfaceOffsetTypeRequest) returns (Empty);
44+
rpc AssignMidSurfaceOffsetType(AssignMidSurfaceOffsetTypeRequest) returns (google.protobuf.Empty);
4345

44-
rpc DownloadFile(Empty) returns (DownloadFileResponse);
46+
rpc DownloadFile(google.protobuf.Empty) returns (DownloadFileResponse);
4547

4648
rpc UploadFile(UploadFileRequest) returns (UploadFileResponse);
4749

4850
rpc CreateSphere(CreateSphereRequest) returns (CreateSphereResponse);
4951

5052
rpc CreateTorus(CreateTorusRequest) returns (CreateTorusResponse);
5153

52-
rpc DeleteBeam(EntityIdentifier) returns (Empty);
54+
rpc DeleteBeam(ansys.api.dbu.v0.EntityIdentifier) returns (google.protobuf.Empty);
5355

54-
rpc DeleteBeamProfile(EntityIdentifier) returns (Empty);
56+
rpc DeleteBeamProfile(ansys.api.dbu.v0.EntityIdentifier) returns (google.protobuf.Empty);
57+
58+
rpc GetAssembly(ansys.api.dbu.v0.EntityIdentifier) returns (GetAssemblyResponse);
5559
}
5660

5761
message RenameManyRequest{
@@ -223,4 +227,20 @@ message CreateTorusRequest {
223227

224228
message CreateTorusResponse {
225229
string id=1;
226-
}
230+
}
231+
232+
message CoordinateSystemList {
233+
repeated CoordinateSystem coordinate_systems=1;
234+
}
235+
236+
message GetAssemblyResponse {
237+
repeated Part parts=1;
238+
repeated Component transformed_parts=2;
239+
repeated Component components=3;
240+
repeated Body bodies=4;
241+
repeated Material materials=5;
242+
repeated NamedSelection named_selections=6;
243+
map <string, CoordinateSystemList> component_coord_systems=7;
244+
map <string, int32> component_shared_topologies=8;
245+
}
246+

ansys/api/geometry/v0/components.proto

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,31 @@
11
// ©2023, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited.
22
syntax = "proto3";
3-
package ansys.api.geometry.v0.Components;
4-
3+
package ansys.api.geometry.v0.components;
54

5+
import "ansys/api/dbu/v0/dbumodels.proto";
66
import "ansys/api/geometry/v0/models.proto";
7+
import "google/protobuf/empty.proto";
78

89
option csharp_namespace = "Ansys.Api.Geometry.V0.Components";
910

1011
service Components{
11-
rpc Get(EntityIdentifier) returns(Component);
12+
rpc Get(ansys.api.dbu.v0.EntityIdentifier) returns(Component);
1213

1314
rpc GetAll(GetAllRequest) returns(GetAllResponse) ;
1415

15-
rpc GetBodies(EntityIdentifier) returns (GetBodiesResponse);
16+
rpc GetBodies(ansys.api.dbu.v0.EntityIdentifier) returns (GetBodiesResponse);
1617

17-
rpc Delete(EntityIdentifier) returns(Empty);
18+
rpc Delete(ansys.api.dbu.v0.EntityIdentifier) returns(google.protobuf.Empty);
1819

1920
rpc Create(CreateRequest) returns(CreateResponse);
2021

21-
rpc SetSharedTopology(SetSharedTopologyRequest) returns (Empty);
22+
rpc SetSharedTopology(SetSharedTopologyRequest) returns (google.protobuf.Empty);
2223

23-
rpc GetRootComponent(Empty) returns (GetRootComponentResponse);
24+
rpc GetRootComponent(google.protobuf.Empty) returns (GetRootComponentResponse);
2425

25-
rpc GetName(EntityIdentifier) returns (GetComponentNameResponse);
26+
rpc GetName(ansys.api.dbu.v0.EntityIdentifier) returns (GetComponentNameResponse);
2627

27-
rpc GetUpdateState(EntityIdentifier) returns (UpdateState);
28+
rpc GetUpdateState(ansys.api.dbu.v0.EntityIdentifier) returns (UpdateState);
2829

2930
rpc SetPlacement(SetPlacementRequest) returns (SetPlacementResponse);
3031
}

ansys/api/geometry/v0/coordinatesystems.proto

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
// ©2023, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited.
22
syntax = "proto3";
3-
package ansys.api.geometry.v0.CoordinateSystems;
3+
package ansys.api.geometry.v0.coordinatesystems;
4+
5+
import "ansys/api/dbu/v0/dbumodels.proto";
46
import "ansys/api/geometry/v0/models.proto";
57

68
option csharp_namespace = "Ansys.Api.Geometry.V0.CoordinateSystems";
79

810
service CoordinateSystems{
911

10-
rpc Get(EntityIdentifier) returns(CoordinateSystem);
12+
rpc Get(ansys.api.dbu.v0.EntityIdentifier) returns(CoordinateSystem);
1113

1214
rpc GetAll(GetAllRequest) returns(GetAllResponse) ;
1315

ansys/api/geometry/v0/curves.proto

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

5+
import "ansys/api/dbu/v0/dbumodels.proto";
56
import "ansys/api/geometry/v0/models.proto";
67

78
option csharp_namespace = "Ansys.Api.Geometry.V0.Curves";
89
option go_package = "ansys/api/geometry/v0";
910

1011
service Curves{
11-
rpc Get(EntityIdentifier) returns(Curve) ;
12+
rpc Get(ansys.api.dbu.v0.EntityIdentifier) returns(Curve) ;
1213
rpc GetAll(GetAllRequest) returns(GetAllResponse) ;
1314
}
1415

0 commit comments

Comments
 (0)