Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,6 @@ MANIFEST
# autogenerated Python code
*pb2*.py
*pb2*.pyi

#Pycharm settings
.idea
5 changes: 5 additions & 0 deletions src/ansys/api/acp/v0/array_types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,9 @@ package ansys.api.acp.v0.array_types;
message DoubleArray {
repeated int64 shape = 1 [packed=true];
repeated double data = 2 [packed=true];
}

message IntArray {
repeated int64 data = 1 [packed=true];
repeated int64 shape = 2 [packed=true];
}
15 changes: 14 additions & 1 deletion src/ansys/api/acp/v0/element_set.proto
Original file line number Diff line number Diff line change
@@ -1,19 +1,30 @@
syntax = "proto3";
package ansys.api.acp.v0;
package ansys.api.acp.v0.element_set;

import "ansys/api/acp/v0/base.proto";
import "ansys/api/acp/v0/array_types.proto";
import "ansys/api/acp/v0/enum_types.proto";

message ElementSetRequest {
ResourcePath resource_path = 1;
// TODO: add a 'view' that determines which parts are returned
}

message ElementSetProperties {
enum_types.StatusType status = 1;
bool locked = 2;
bool middle_offset = 3;
array_types.IntArray element_labels = 4;
}

message ElementSetReply {
BasicInfo info = 1;
ElementSetProperties properties = 2;
}

message PutElementSetRequest {
BasicInfo info = 1;
ElementSetProperties properties = 2;
}

message DeleteElementSetRequest {
Expand All @@ -31,6 +42,8 @@ message ListElementSetsReply {
message CreateElementSetRequest {
CollectionPath collection_path = 1;
string name = 2;
ElementSetProperties properties = 3;

}

service ElementSet {
Expand Down
2 changes: 1 addition & 1 deletion src/ansys/api/acp/v0/enum_types.proto
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
syntax = "proto3";
package ansys.api.acp.v0;
package ansys.api.acp.v0.enum_types;

//the initializers are different in the backend but here it has to be zero-based
enum StatusType {
Expand Down
2 changes: 1 addition & 1 deletion src/ansys/api/acp/v0/rosette.proto
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ message RosetteRequest {
}

message RosetteProperties {
StatusType status = 1;
enum_types.StatusType status = 1;
bool locked = 2;
Type rosette_type = 3;
array_types.DoubleArray origin = 4;
Expand Down