From 1b0ba9ef9d7318ab5a85f695e337f7c3936690af Mon Sep 17 00:00:00 2001 From: tfs_caslservice Date: Wed, 18 Oct 2023 19:01:31 -0700 Subject: [PATCH] sync: add changes from local folder --- ansys/api/geometry/v0/bodies.proto | 24 +++++++++ ansys/api/geometry/v0/commands.proto | 29 +++++++++++ ansys/api/geometry/v0/components.proto | 8 +++ ansys/api/geometry/v0/models.proto | 72 ++++++++++++++++++++++++++ 4 files changed, 133 insertions(+) diff --git a/ansys/api/geometry/v0/bodies.proto b/ansys/api/geometry/v0/bodies.proto index a0c879d..7848b98 100644 --- a/ansys/api/geometry/v0/bodies.proto +++ b/ansys/api/geometry/v0/bodies.proto @@ -51,6 +51,30 @@ service Bodies rpc GetUpdateState(ansys.api.dbu.v0.EntityIdentifier) returns (UpdateState); rpc Boolean(BooleanRequest) returns (BooleanResponse); + + rpc GetVertices(ansys.api.dbu.v0.EntityIdentifier) returns (GetVerticesResponse); + + rpc GetBoundingBox(ansys.api.dbu.v0.EntityIdentifier) returns (GetBoundingBoxResponse); + + rpc GetSurfaceBodyThickness(ansys.api.dbu.v0.EntityIdentifier) returns (GetSurfaceBodyThicknessResponse); + + rpc IsEnclosureBody(ansys.api.dbu.v0.EntityIdentifier) returns (IsEnclosureBodyResponse); +} + +message IsEnclosureBodyResponse { + bool result = 1; +} + +message GetSurfaceBodyThicknessResponse { + double result = 1; +} + +message GetBoundingBoxResponse { + Box box = 1; +} + +message GetVerticesResponse { + repeated Vertex vertices = 1; } message BooleanRequest { diff --git a/ansys/api/geometry/v0/commands.proto b/ansys/api/geometry/v0/commands.proto index 3db2e41..9907fd2 100644 --- a/ansys/api/geometry/v0/commands.proto +++ b/ansys/api/geometry/v0/commands.proto @@ -56,6 +56,34 @@ service Commands{ rpc DeleteBeamProfile(ansys.api.dbu.v0.EntityIdentifier) returns (google.protobuf.Empty); rpc GetAssembly(ansys.api.dbu.v0.EntityIdentifier) returns (GetAssemblyResponse); + + rpc GetBeamProfileName(ansys.api.dbu.v0.EntityIdentifier) returns (GetBeamProfileNameResponse); + + rpc GetBeamProfileParts(google.protobuf.Empty) returns (GetBeamProfilePartsResponse); + + rpc GetBeamProperties(ansys.api.dbu.v0.EntityIdentifier) returns (BeamProperties); + + rpc GetBeamCrossSectionInfo(ansys.api.dbu.v0.EntityIdentifier) returns (BeamCrossSectionInfo); + + rpc GetAllSpotWelds(google.protobuf.Empty) returns (GetAllSpotWeldsResponse); + + rpc GetAllCADWelds(google.protobuf.Empty) returns (GetAllCADWeldsResponse); +} + +message GetAllSpotWeldsResponse { + repeated SpotWeld welds = 1; +} + +message GetAllCADWeldsResponse { + repeated Weld welds = 1; +} + +message GetBeamProfilePartsResponse { + repeated Part parts = 1; +} + +message GetBeamProfileNameResponse{ + string name = 1; } message RenameManyRequest{ @@ -204,6 +232,7 @@ message UploadFileRequest { message UploadFileResponse { string file_path=1; + ansys.api.dbu.v0.EntityIdentifier document_id=2; } message CreateSphereRequest { diff --git a/ansys/api/geometry/v0/components.proto b/ansys/api/geometry/v0/components.proto index 3b06527..7415a8e 100644 --- a/ansys/api/geometry/v0/components.proto +++ b/ansys/api/geometry/v0/components.proto @@ -28,6 +28,14 @@ service Components{ rpc GetUpdateState(ansys.api.dbu.v0.EntityIdentifier) returns (UpdateState); rpc SetPlacement(SetPlacementRequest) returns (SetPlacementResponse); + + rpc GetBeamBodies(ansys.api.dbu.v0.EntityIdentifier) returns (GetBeamBodiesResponse); + + rpc GetPart(ansys.api.dbu.v0.EntityIdentifier) returns (Part); +} + +message GetBeamBodiesResponse { + repeated string beams = 1; } message SetPlacementRequest { diff --git a/ansys/api/geometry/v0/models.proto b/ansys/api/geometry/v0/models.proto index 8ad446c..f82248e 100644 --- a/ansys/api/geometry/v0/models.proto +++ b/ansys/api/geometry/v0/models.proto @@ -39,6 +39,25 @@ message Curve{ repeated Point points = 4; } +message CurveGeometry { + Point origin = 1; + double radius = 2; + double major_radius = 3; + double minor_radius = 4; + Direction direction = 5; + Direction reference = 6; + Direction axis = 7; +} + +message TrimmedCurve { + CurveGeometry curve = 1; + Point start = 2; + Point end = 3; + double interval_start = 4; + double interval_end = 5; + double length = 6; +} + // // A edge. message Edge{ @@ -392,4 +411,57 @@ enum SegmentType { message UpdateState { int32 state=1; +} + +message Vertex { + Point position = 1; + repeated Edge edges = 2; +} +message TrimmedCurveList { + repeated TrimmedCurve curves = 1; +} + +message SpotWeld { + map weld_points = 1; +} + +message Weld { + repeated TrimmedCurveList geometry = 1; + string display_name = 2; + double length = 3; + double volume = 4; + double mass = 5; + double time = 6; + double rod_length = 7; + bool is_intermittent = 8; + int32 sequence_id = 9; + double size1 = 10; + double size2 = 11; + + // This data only exists if the weld is intermittent + bool is_angular = 12; + bool is_at_center = 13; + double intermittent_length = 14; + int32 number_of_welds = 15; + double pitch = 16; +} + +message BeamProperties { + double area = 1; + double centroid_x = 2; + double centroid_y = 3; + double warping_constant = 4; + double ixx = 5; + double ixy = 6; + double iyy = 7; + double torsional_constant = 8; + double shear_center_x = 9; + double shear_center_y = 10; +} + +message BeamCrossSectionInfo { + int32 section_anchor = 1; + double section_angle = 2; + Frame section_frame = 3; + repeated TrimmedCurveList section_profile = 4; } \ No newline at end of file