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
9 changes: 9 additions & 0 deletions src/ansys/api/acp/v0/cut_off_material.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
syntax = "proto3";
package ansys.api.acp.v0.cut_off_material;

//defines the source of the cut-off material
enum MaterialHandlingType {
COMPUTED = 0;
GLOBAL = 1;
CUSTOM = 2;
}
9 changes: 9 additions & 0 deletions src/ansys/api/acp/v0/drop_off_material.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
syntax = "proto3";
package ansys.api.acp.v0.drop_off_material;

//defines the source of the drop-off material
enum MaterialHandlingType {
GLOBAL = 0;
CUSTOM = 1;
}

2 changes: 1 addition & 1 deletion src/ansys/api/acp/v0/enum_types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ enum StatusType {
UNKNOWN = 0;
UPTODATE = 1;
NOTUPTODATE = 2;
}
}
48 changes: 48 additions & 0 deletions src/ansys/api/acp/v0/fabric.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
syntax = "proto3";
package ansys.api.acp.v0.fabric;

import "ansys/api/acp/v0/base.proto";
import "ansys/api/acp/v0/enum_types.proto";
import "ansys/api/acp/v0/ply_material.proto";
import "ansys/api/acp/v0/cut_off_material.proto";
import "ansys/api/acp/v0/drop_off_material.proto";

message Properties {
enum_types.StatusType status = 1;
double thickness = 2;
double area_price = 3;
bool ignore_for_postprocessing = 4;
drop_off_material.MaterialHandlingType drop_off_material_handling = 5;
cut_off_material.MaterialHandlingType cut_off_material_handling = 6;
ply_material.DrapingMaterialType draping_material_model = 7;
double draping_ud_coefficient = 8;

base.ResourcePath material = 9;
}

message ObjectInfo {
base.BasicInfo info = 1;
Properties properties = 2;
}

message ListReply {
repeated ObjectInfo objects = 1;
}

message CreateRequest {
base.CollectionPath collection_path = 1;
string name = 2;
Properties properties = 3;
}

service ObjectService {
rpc List(base.ListRequest) returns (ListReply);

rpc Get(base.GetRequest) returns (ObjectInfo);

rpc Put(ObjectInfo) returns (ObjectInfo);

rpc Delete(base.DeleteRequest) returns (base.Empty);

rpc Create(CreateRequest) returns (ObjectInfo);
}
15 changes: 15 additions & 0 deletions src/ansys/api/acp/v0/ply_material.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
syntax = "proto3";
package ansys.api.acp.v0.ply_material;

//defines the draping model (algorithm)
enum DrapingMaterialType {
WOVEN = 0;
UD = 1;
}

//defines the symmetry-type for stackups, sublaminates etc
enum SymmetryType {
NO_SYMMETRY = 0;
EVEN_SYMMETRY = 1;
ODD_SYMMETRY = 2;
}