diff --git a/src/ansys/api/acp/v0/fabric.proto b/src/ansys/api/acp/v0/fabric.proto index f807f0f..c72d316 100644 --- a/src/ansys/api/acp/v0/fabric.proto +++ b/src/ansys/api/acp/v0/fabric.proto @@ -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 { diff --git a/src/ansys/api/acp/v0/stackup.proto b/src/ansys/api/acp/v0/stackup.proto index 1a41e76..b2b93b7 100644 --- a/src/ansys/api/acp/v0/stackup.proto +++ b/src/ansys/api/acp/v0/stackup.proto @@ -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 { diff --git a/src/ansys/api/acp/v0/sublaminate.proto b/src/ansys/api/acp/v0/sublaminate.proto new file mode 100644 index 0000000..4ac0a42 --- /dev/null +++ b/src/ansys/api/acp/v0/sublaminate.proto @@ -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); +}