Skip to content

Commit 3fcdf93

Browse files
pyansys-ci-bottfs_caslservice
andauthored
sync: file sync performed by ansys-tools-repo-sync (#110)
Co-authored-by: tfs_caslservice <tfs_caslservice@cdcw22cslbld01>
1 parent ef96027 commit 3fcdf93

File tree

2 files changed

+107
-0
lines changed

2 files changed

+107
-0
lines changed

ansys/api/geometry/v0/commands.proto

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,83 @@ service Commands{
130130
rpc ProjectToSolid(ProjectToSolidRequest) returns (CommandResponse);
131131

132132
rpc SplitBody(SplitBodyRequest) returns (CommandResponse);
133+
134+
rpc CreateLinearPattern(CreateLinearPatternRequest) returns (PatternCommandResponse);
135+
136+
rpc ModifyLinearPattern(ModifyLinearPatternRequest) returns (PatternCommandResponse);
137+
138+
rpc CreateCircularPattern(CreateCircularPatternRequest) returns (PatternCommandResponse);
139+
140+
rpc CreateFillPattern(CreateFillPatternRequest) returns (PatternCommandResponse);
141+
142+
rpc UpdateFillPattern(PatternRequest) returns (PatternCommandResponse);
143+
144+
rpc RemovePatterns(PatternRequest) returns (PatternCommandResponse);
145+
146+
rpc RemovePatternMember(PatternRequest) returns (PatternCommandResponse);
147+
148+
rpc SetPatternValue(SetPatternValueRequest) returns (PatternCommandResponse);
149+
}
150+
151+
message CreateLinearPatternRequest {
152+
repeated ansys.api.dbu.v0.EntityIdentifier selection = 1;
153+
bool two_dimensional = 2;
154+
ansys.api.dbu.v0.EntityIdentifier linear_direction = 3;
155+
int32 count_x = 4;
156+
int32 count_y = 5;
157+
double pitch_x = 6;
158+
double pitch_y = 7;
159+
}
160+
161+
message ModifyLinearPatternRequest {
162+
repeated ansys.api.dbu.v0.EntityIdentifier selection = 1;
163+
int32 count_x = 2;
164+
int32 count_y = 3;
165+
double pitch_x = 4;
166+
double pitch_y = 5;
167+
int32 new_seed_index = 6;
168+
int32 old_seed_index = 7;
169+
}
170+
171+
message CreateCircularPatternRequest {
172+
repeated ansys.api.dbu.v0.EntityIdentifier selection = 1;
173+
double circular_angle = 2;
174+
ansys.api.dbu.v0.EntityIdentifier circular_axis = 3;
175+
int32 circular_count = 4;
176+
int32 linear_count = 5;
177+
double linear_pitch = 6;
178+
bool two_dimensional = 7;
179+
Direction radial_direction = 8;
180+
}
181+
182+
message CreateFillPatternRequest {
183+
repeated ansys.api.dbu.v0.EntityIdentifier selection = 1;
184+
double column_x_offset = 2;
185+
double column_y_offset = 3;
186+
FillPatternType fill_pattern_type= 4;
187+
ansys.api.dbu.v0.EntityIdentifier linear_direction = 5;
188+
double margin = 6;
189+
double row_x_offset = 7;
190+
double row_y_offset = 8;
191+
double x_spacing = 9;
192+
double y_spacing = 10;
193+
}
194+
195+
message SetPatternValueRequest {
196+
repeated ansys.api.dbu.v0.EntityIdentifier selection = 1;
197+
PatternModificationType modification_type = 2;
198+
double value = 3;
199+
}
200+
201+
message PatternRequest {
202+
repeated ansys.api.dbu.v0.EntityIdentifier selection = 1;
203+
}
204+
205+
message PatternCommandResponse {
206+
ansys.api.dbu.v0.RequestResult result = 1;
207+
repeated Face created_faces = 2;
208+
repeated Edge created_edges = 3;
209+
repeated Body modified_bodies = 4;
133210
}
134211

135212
message CombineIntersectBodiesRequest {

ansys/api/geometry/v0/models.proto

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -569,4 +569,34 @@ enum DraftSide {
569569
DRAFTSIDE_THIS = 1;
570570
DRAFTSIDE_OTHER = 2;
571571
DRAFTSIDE_BOTH = 3;
572+
}
573+
574+
//
575+
// The type of a fill pattern.
576+
enum FillPatternType {
577+
FILLPATTERNTYPE_GRID = 0;
578+
FILLPATTERNTYPE_OFFSET = 1;
579+
FILLPATTERNTYPE_SKEWED = 2;
580+
}
581+
582+
//
583+
// The type of a pattern modification.
584+
enum PatternModificationType {
585+
PATTERNMODIFICATIONTYPE_PRIMARY_COUNT_PRESERVE_SPACING = 0;
586+
PATTERNMODIFICATIONTYPE_PRIMARY_COUNT_PRESERVE_OVERALL = 1;
587+
PATTERNMODIFICATIONTYPE_PRIMARY_COUNT_PLUS_PRESERVE_SPACING = 2;
588+
PATTERNMODIFICATIONTYPE_PRIMARY_COUNT_PLUS_PRESERVE_OVERALL = 3;
589+
PATTERNMODIFICATIONTYPE_PRIMARY_COUNT_MINUS_PRESERVE_SPACING = 4;
590+
PATTERNMODIFICATIONTYPE_PRIMARY_COUNT_MINUS_PRESERVE_OVERALL = 5;
591+
PATTERNMODIFICATIONTYPE_PRIMARY_OVERALL_DIMENSION = 6;
592+
PATTERNMODIFICATIONTYPE_PRIMARY_SPACING_DIMENSION = 7;
593+
PATTERNMODIFICATIONTYPE_SECONDARY_COUNT_PRESERVE_SPACING = 8;
594+
PATTERNMODIFICATIONTYPE_SECONDARY_COUNT_PRESERVE_OVERALL = 9;
595+
PATTERNMODIFICATIONTYPE_SECONDARY_COUNT_PLUS_PRESERVE_SPACING = 10;
596+
PATTERNMODIFICATIONTYPE_SECONDARY_COUNT_PLUS_PRESERVE_OVERALL =11;
597+
PATTERNMODIFICATIONTYPE_SECONDARY_COUNT_MINUS_PRESERVE_SPACING = 12;
598+
PATTERNMODIFICATIONTYPE_SECONDARY_COUNT_MINUS_PRESERVE_OVERALL = 13;
599+
PATTERNMODIFICATIONTYPE_SECONDARY_OVERALL_DIMENSION = 14;
600+
PATTERNMODIFICATIONTYPE_SECONDARY_SPACING_DIMENSION = 15;
601+
PATTERNMODIFICATIONTYPE_CIRCULAR_RADIUS = 16;
572602
}

0 commit comments

Comments
 (0)