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
5 changes: 4 additions & 1 deletion src/ansys/api/acp/v0/fabric.proto
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ message Properties {
ply_material.DrapingMaterialType draping_material_model = 7;
double draping_ud_coefficient = 8;
base.ResourcePath material = 9;
// todo: drop-off and cut-off material links (resource path)
// todo: drop-off and cut-off material links (resource path).

// read only properties
double area_weight = 10;
}

message ObjectInfo {
Expand Down
4 changes: 4 additions & 0 deletions src/ansys/api/acp/v0/stackup.proto
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ message Properties {
base.ResourcePath drop_off_material = 9;
cut_off_material.MaterialHandlingType cut_off_material_handling = 10;
base.ResourcePath cut_off_material = 11;

// read only properties
double thickness = 12;
double area_weight = 13;
}

message ObjectInfo {
Expand Down
53 changes: 53 additions & 0 deletions src/ansys/api/acp/v0/sublaminate.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
syntax = "proto3";
package ansys.api.acp.v0.sublaminate;

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

// Note: material can be of type Fabric or Stackup
message Lamina {
base.ResourcePath material = 1;
double angle = 2;
}

// Note: draping and solid model properties are defined by the fabric and
// stackup
message Properties {
// general properties
enum_types.StatusType status = 1;
ply_material.SymmetryType symmetry = 2;
// topdown=True: the first fabric in the list is placed first in the mold
bool topdown = 3;
repeated Lamina materials = 4;

// read only properties
double area_price = 5;
double thickness = 6;
double area_weight = 7;
}

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);
}