Skip to content

Commit 319e90d

Browse files
Merge branch 'main' into release/0.4
2 parents 9c72add + c7e5926 commit 319e90d

File tree

6 files changed

+82
-4
lines changed

6 files changed

+82
-4
lines changed

ansys/api/geometry/v0/bodies.proto

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ syntax = "proto3";
33
package ansys.api.geometry.v0.bodies;
44

55
import "ansys/api/dbu/v0/dbumodels.proto";
6+
import "ansys/api/geometry/v0/commands.proto";
67
import "ansys/api/geometry/v0/models.proto";
78
import "google/protobuf/empty.proto";
89

@@ -182,6 +183,7 @@ message BooleanRequest {
182183

183184
message BooleanResponse {
184185
int32 empty_result = 1;
186+
TrackerCommandResponse response = 2;
185187
}
186188

187189
enum GetType{

ansys/api/geometry/v0/commands.proto

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,15 @@ service Commands{
183183

184184
rpc ImprintCurvesAndSync(ImprintCurvesRequest) returns (ImprintCurvesAndSyncResponse);
185185

186-
187186
rpc DeleteEntities(DeleteEntitiesRequest) returns (DeleteEntitiesResponse);
187+
188+
rpc SetAutomaticTrackingState(SetAutomaticTrackingStateRequest) returns (SetAutomaticTrackingStateResponse);
189+
190+
rpc GetTracker(GetTrackerRequest) returns (GetTrackerResponse);
191+
192+
rpc GetTrackerChanges(GetTrackerChangesRequest) returns (GetTrackerChangesResponse);
193+
194+
rpc DisposeTracker(DisposeTrackerRequest) returns (DisposeTrackerResponse);
188195
}
189196

190197
message CreatePlaneRequest {
@@ -749,6 +756,7 @@ message UploadFileRequest {
749756
string file_name=2;
750757
bool open=3;
751758
map<string,bool> import_options = 4;
759+
map<string,string> import_options_strings = 5;
752760
}
753761

754762
message UploadFileResponse {
@@ -871,3 +879,35 @@ message DeleteEntitiesRequest{
871879
message DeleteEntitiesResponse{
872880
repeated ansys.api.dbu.v0.EntityIdentifier deleted_entities = 1;
873881
}
882+
883+
message SetAutomaticTrackingStateRequest{
884+
AutomaticTrackingState state = 1;
885+
}
886+
887+
message SetAutomaticTrackingStateResponse{
888+
bool success = 1;
889+
}
890+
891+
message GetTrackerRequest{
892+
ansys.api.dbu.v0.EntityIdentifier design_id = 1;
893+
}
894+
895+
message GetTrackerResponse{
896+
TrackerDefinition tracker = 1;
897+
}
898+
899+
message GetTrackerChangesRequest{
900+
ansys.api.dbu.v0.EntityIdentifier design_id = 1;
901+
}
902+
903+
message GetTrackerChangesResponse{
904+
TrackerCommandResponse changes = 1;
905+
}
906+
907+
message DisposeTrackerRequest{
908+
ansys.api.dbu.v0.EntityIdentifier design_id = 1;
909+
}
910+
911+
message DisposeTrackerResponse{
912+
bool success = 1;
913+
}

ansys/api/geometry/v0/models.proto

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,7 @@ message RepairToolMessage {
345345
repeated string created_bodies_monikers = 2;
346346
repeated string modified_bodies_monikers = 3;
347347
repeated string deleted_bodies_monikers = 4;
348+
TrackerCommandResponse complete_command_response = 5;// this should become the only response in protos v1
348349
}
349350

350351
message EnhancedRepairToolMessage {
@@ -354,6 +355,7 @@ message EnhancedRepairToolMessage {
354355
repeated string created_bodies_monikers = 4;
355356
repeated string modified_bodies_monikers = 5;
356357
repeated string deleted_bodies_monikers = 6;
358+
TrackerCommandResponse complete_command_response = 7; // this should become the only response in protos v1
357359
}
358360

359361
message Material{
@@ -770,4 +772,31 @@ message Separation {
770772
double distance = 1;
771773
Point point_a = 2;
772774
Point point_b = 3;
773-
}
775+
}
776+
777+
message TrackerCommandResponse{
778+
bool success = 1;
779+
repeated Body created_bodies = 2;
780+
repeated Body modified_bodies = 3;
781+
repeated ansys.api.dbu.v0.EntityIdentifier deleted_bodies = 4;
782+
repeated ansys.api.dbu.v0.EntityIdentifier created_faces = 5;
783+
repeated ansys.api.dbu.v0.EntityIdentifier modified_faces = 6;
784+
repeated ansys.api.dbu.v0.EntityIdentifier deleted_faces = 7;
785+
repeated ansys.api.dbu.v0.EntityIdentifier created_edges = 8;
786+
repeated ansys.api.dbu.v0.EntityIdentifier modified_edges = 9;
787+
repeated ansys.api.dbu.v0.EntityIdentifier deleted_edges = 10;
788+
repeated ansys.api.dbu.v0.EntityIdentifier created_components = 11;
789+
repeated ansys.api.dbu.v0.EntityIdentifier modified_components = 12;
790+
repeated ansys.api.dbu.v0.EntityIdentifier deleted_components = 13;
791+
}
792+
793+
//
794+
// The automatic tracking states.
795+
enum AutomaticTrackingState {
796+
ON = 0;
797+
OFF = 1;
798+
}
799+
800+
message TrackerDefinition{
801+
ansys.api.dbu.v0.EntityIdentifier design_id = 1;
802+
}

ansys/api/geometry/v0/preparetools.proto

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ syntax = "proto3";
33
package ansys.api.geometry.v0.preparetools;
44

55
import "ansys/api/dbu/v0/dbumodels.proto";
6+
import "ansys/api/geometry/v0/commands.proto";
67
import "ansys/api/geometry/v0/models.proto";
78
import "google/protobuf/wrappers.proto";
89

@@ -47,6 +48,7 @@ message CreateEnclosureResponse{
4748
bool success = 1;
4849
// The bodies representing the enclosure.
4950
repeated Body created_bodies = 2;
51+
TrackerCommandResponse command_response = 3;
5052
}
5153

5254
message FixInterferenceRequest{
@@ -57,6 +59,7 @@ message FixInterferenceRequest{
5759

5860
message FixInterferenceResponse{
5961
bool result = 1;
62+
TrackerCommandResponse changes = 2;
6063
}
6164

6265
message FixShortEdgesRequest{
@@ -67,6 +70,7 @@ message FixShortEdgesRequest{
6770

6871
message FixShortEdgesResponse{
6972
bool result = 1;
73+
TrackerCommandResponse changes = 2;
7074
}
7175

7276
message ShareTopologyRequest{
@@ -101,6 +105,7 @@ message RemoveRoundsRequest{
101105

102106
message RemoveRoundsResponse{
103107
bool result = 1;
108+
TrackerCommandResponse changes = 2;
104109
}
105110

106111
message RemoveFacesRequest{
@@ -110,6 +115,7 @@ message RemoveFacesRequest{
110115

111116
message RemoveFacesResponse{
112117
bool result = 1;
118+
TrackerCommandResponse changes = 2;
113119
}
114120

115121
message ExtractVolumeFromFacesRequest{
@@ -131,4 +137,5 @@ message VolumeExtractionResponse{
131137
bool success = 1;
132138
// The bodies created from the volume extraction.
133139
repeated Body created_bodies = 2;
140+
TrackerCommandResponse changes = 3;
134141
}

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ requires = [
33
"setuptools >= 42.0.0",
44
"wheel",
55
"ansys_tools_protoc_helper>=0.4.0",
6-
"ansys-api-dbu==0.3.14",
6+
"ansys-api-dbu==0.3.15",
77
]
88
build-backend = "setuptools.build_meta:__legacy__"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
url=f"https://github.com/ansys/{package_name}",
4040
license="MIT",
4141
python_requires=">=3.10",
42-
install_requires=["grpcio~=1.44", "protobuf>=3.19,<6", "ansys-api-dbu==0.3.14"],
42+
install_requires=["grpcio~=1.44", "protobuf>=3.19,<6", "ansys-api-dbu==0.3.15"],
4343
packages=setuptools.find_namespace_packages(".", include=("ansys.*",)),
4444
package_data={
4545
"": ["*.proto", "*.pyi", "py.typed", "VERSION"],

0 commit comments

Comments
 (0)