Skip to content

Commit b5231c3

Browse files
MaxjreyMaxJPRey
andauthored
Add folder content from BoardProto\gRPCService\ansys\api\geometry\v0. (#11)
Co-authored-by: pyansys-ci-bot <maxime.rey@ansys.com>
1 parent 9548cbc commit b5231c3

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

ansys/api/geometry/v0/designs.proto

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
syntax = "proto3";
22
package ansys.api.geometry.v0;
33
option csharp_namespace = "Ansys.Api.Geometry.V0";
4+
import "ansys/api/geometry/v0/models.proto";
5+
46

57
service Designs {
68
rpc New(NewDesignRequest) returns(Design);
79

810
rpc SaveAs(SaveAsDocumentRequest) returns(SaveAsDocumentResponse);
11+
12+
rpc ExportDesign(ExportDesignRequest) returns(ExportDesignResponse);
913
}
1014

1115
message NewDesignRequest {
@@ -23,4 +27,12 @@ message SaveAsDocumentRequest{
2327

2428
message SaveAsDocumentResponse{
2529
string id = 1;
30+
}
31+
32+
message ExportDesignRequest {
33+
PartExportFormat format=1;
34+
}
35+
36+
message ExportDesignResponse {
37+
bytes data=1;
2638
}

ansys/api/geometry/v0/models.proto

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,4 +163,9 @@ message Tessellation {
163163
repeated double vertices = 1;
164164
repeated int32 faces = 2;
165165
int32 facecolor = 3;
166+
}
167+
168+
enum PartExportFormat {
169+
PARTEXPORTFORMAT_PARASOLID_TEXT=0;
170+
PARTEXPORTFORMAT_PARASOLID_BINARY=1;
166171
}

0 commit comments

Comments
 (0)