2 Copyright (C) 2014-2017 CEA/DEN, EDF R&D
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Lesser General Public License for more details.
14 You should have received a copy of the GNU Lesser General Public
15 License along with this library; if not, write to the Free Software
16 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 See http:##www.salome-platform.org/ or
19 email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
23 <workbench id="Sketch">
24 <group id="Linear geometry">
27 nested="SketchPoint SketchIntersectionPoint SketchLine
28 SketchCircle SketchMacroCircle SketchArc SketchMacroArc
31 SketchConstraintLength SketchConstraintRadius SketchConstraintDistance SketchConstraintDistanceHorizontal SketchConstraintDistanceVertical
32 SketchConstraintParallel SketchConstraintPerpendicular
33 SketchConstraintRigid SketchConstraintHorizontal SketchConstraintVertical
34 SketchConstraintEqual SketchConstraintTangent
35 SketchFillet SketchSplit SketchTrim
36 SketchConstraintCoincidence
37 SketchConstraintMirror SketchConstraintAngle
38 SketchMultiRotation SketchMultiTranslation
39 SketchConstraintCollinear SketchConstraintMiddle"
40 when_nested="accept abort"
42 tooltip="Create sketch"
43 icon="icons/Sketch/sketch.png">
44 <sketch-start-label id="External" title="Select a plane on which to create a sketch" tooltip="Select a plane on which to create a sketch">
45 <validator id="GeomValidators_Face" parameters="plane"/>
47 <label id="SolverDOF"/>
48 <label id="SolverError" styleSheet="color : red; font : bold"/>
49 <validator id="SketchPlugin_SolverErrorValidator"/>
53 <feature id="SketchPoint" title="Point" tooltip="Create point" icon="icons/Sketch/point.png">
54 <sketch-2dpoint_selector id="PointCoordinates" accept_expressions="0" title="Point" tooltip="Point coordinates"
55 enable_value="enable_by_preferences"/>
56 <boolvalue id="Auxiliary" label="Auxiliary" default="false" tooltip="Construction element" obligatory="0"/>
60 <feature id="SketchLine" title="Line" tooltip="Create line" icon="icons/Sketch/line.png">
61 <sketch-2dpoint_selector id="StartPoint" accept_expressions="0" title="Start point" tooltip="Start point coordinates"
62 enable_value="enable_by_preferences"/>
63 <sketch-2dpoint_selector id="EndPoint" accept_expressions="0" title="End point" tooltip="End point coordinates"
64 enable_value="enable_by_preferences"/>
65 <labelvalue id="LineLength" accept_expressions="0" label="Length:" default="computed" icon="icons/Sketch/distance_value.png"
66 tooltip="Line length" obligatory="0" enable_value="false"/>
67 <boolvalue id="Auxiliary" label="Auxiliary" default="false" tooltip="Construction element" obligatory="0"/>
68 <validator id="GeomValidators_Different" parameters="StartPoint,EndPoint"/>
71 <group id="Circular geometry">
72 <!-- SketchCircle is a hidden feature. It is created inside SketchMacroCircle. -->
73 <feature id="SketchCircle"
75 tooltip="Create circle"
76 icon="icons/Sketch/circle.png"
78 <sketch-2dpoint_selector id="circle_center"
80 tooltip="Center coordinates"
81 accept_expressions="0"
82 enable_value="enable_by_preferences"/>
83 <labelvalue id="circle_radius"
84 icon="icons/Sketch/radius.png"
88 accept_expressions="0"
89 enable_value="enable_by_preferences">
91 <boolvalue id="Auxiliary" label="Auxiliary" default="false" tooltip="Construction element" obligatory="0"/>
93 <!-- SketchMacroCircle -->
94 <feature id="SketchMacroCircle"
95 icon="icons/Sketch/circle.png"
97 tooltip="Create circle">
98 <toolbox id="circle_type" modified_in_edit="edit_circle_type">
99 <box id="circle_type_by_center_and_passed_points"
100 icon="icons/Sketch/circle_pt_rad_32x32.png"
101 title="Center and passed points">
102 <sketch-2dpoint_selector id="center_point"
103 reference_attribute="center_point_ref"
105 tooltip="Center point coordinates"
106 accept_expressions="0"
107 enable_value="enable_by_preferences"/>
108 <sketch-2dpoint_selector id="passed_point"
109 reference_attribute="passed_point_ref"
111 tooltip="Passed point coordinates"
112 accept_expressions="0"
113 enable_value="enable_by_preferences">
114 <validator id="SketchPlugin_CirclePassedPointValidator"/>
115 </sketch-2dpoint_selector>
116 <validator id="GeomValidators_Different" parameters="center_point_ref,passed_point_ref"/>
118 <box id="circle_type_by_three_points"
119 icon="icons/Sketch/circle_3pt_32x32.png"
120 title="Three points">
121 <sketch-2dpoint_selector id="first_point"
122 reference_attribute="first_point_ref"
124 tooltip="First point"
125 accept_expressions="0"
126 enable_value="enable_by_preferences"/>
127 <sketch-2dpoint_selector id="second_point"
128 reference_attribute="second_point_ref"
130 tooltip="Second point"
131 accept_expressions="0"
132 enable_value="enable_by_preferences">
133 <validator id="SketchPlugin_DifferentReference" parameters="first_point_ref,second_point_ref"/>
134 </sketch-2dpoint_selector>
135 <sketch-2dpoint_selector id="third_point"
136 reference_attribute="third_point_ref"
138 tooltip="Third point"
139 accept_expressions="0"
140 enable_value="enable_by_preferences">
141 <validator id="SketchPlugin_DifferentReference" parameters="first_point_ref,second_point_ref,third_point_ref"/>
142 <validator id="SketchPlugin_ThirdPointValidator" parameters="third_point_ref"/>
143 </sketch-2dpoint_selector>
144 <validator id="GeomValidators_Different" parameters="first_point_ref,second_point_ref,third_point_ref"/>
147 <labelvalue id="circle_radius"
148 icon="icons/Sketch/radius.png"
152 accept_expressions="0"
154 enable_value="enable_by_preferences">
155 <validator id="GeomValidators_Positive"/>
157 <boolvalue id="Auxiliary"
158 tooltip="Construction element"
165 <feature id="SketchArc"
166 icon="icons/Sketch/arc.png"
170 <sketch-2dpoint_selector id="center_point"
172 tooltip="Center of a circle"
173 accept_expressions="0"
174 enable_value="enable_by_preferences"/>
175 <sketch-2dpoint_selector id="start_point"
177 tooltip="Start point"
178 accept_expressions="0"
179 enable_value="enable_by_preferences"/>
180 <sketch-2dpoint_selector id="end_point"
183 accept_expressions="0"
184 enable_value="enable_by_preferences"/>
185 <validator id="GeomValidators_Different" parameters="center_point,start_point,end_point"/>
186 <labelvalue id="radius"
187 icon="icons/Sketch/radius.png"
190 accept_expressions="0"
194 enable_value="enable_by_preferences">
196 <labelvalue id="angle"
197 icon="icons/Sketch/angle.png"
203 enable_value="enable_by_preferences"/>
204 <boolvalue id="Auxiliary"
206 tooltip="Construction element"
211 <!-- SketchMacroArc -->
216 icon="icons/Sketch/arc.png">
217 <toolbox id="arc_type" modified_in_edit="edit_arc_type">
218 <box id="by_center_and_points"
219 icon="icons/Sketch/arc_base_32x32.png"
220 title="Center and two points">
221 <sketch-2dpoint_selector id="center_point"
222 reference_attribute="center_point_ref"
224 tooltip="Center of a circle"
225 accept_expressions="0"
226 enable_value="enable_by_preferences" />
227 <sketch-2dpoint_selector id="start_point_1"
228 reference_attribute="start_point_ref"
230 tooltip="Start point"
231 accept_expressions="0"
232 enable_value="enable_by_preferences"/>
233 <sketch-2dpoint_selector id="end_point_1"
234 reference_attribute="end_point_ref"
237 accept_expressions="0"
238 enable_value="enable_by_preferences">
239 <validator id="SketchPlugin_ArcEndPointValidator" parameters="end_point_ref"/>
240 <validator id="SketchPlugin_ArcEndPointIntersectionValidator" parameters="end_point_ref"/>
241 </sketch-2dpoint_selector>
242 <validator id="GeomValidators_Different" parameters="center_point,start_point_1,end_point_1"/>
244 <box id="by_three_points"
245 icon="icons/Sketch/arc_3pt_32x32.png"
246 title="Three points on arc">
247 <sketch-2dpoint_selector id="start_point_2"
248 reference_attribute="start_point_ref"
250 tooltip="Start point"
251 accept_expressions="0"
252 enable_value="enable_by_preferences"/>
253 <sketch-2dpoint_selector id="end_point_2"
254 reference_attribute="end_point_ref"
257 accept_expressions="0"
258 enable_value="enable_by_preferences">
259 <validator id="GeomValidators_Different" parameters="start_point_2,end_point_2"/>
260 <validator id="SketchPlugin_DifferentPointReference" parameters="start_point_ref,end_point_ref"/>
261 </sketch-2dpoint_selector>
262 <sketch-2dpoint_selector id="passed_point"
263 reference_attribute="passed_point_ref"
265 tooltip="Passed point"
266 accept_expressions="0"
267 enable_value="enable_by_preferences">
268 <validator id="SketchPlugin_DifferentReference" parameters="start_point_ref,end_point_ref,passed_point_ref"/>
269 <validator id="SketchPlugin_ThirdPointValidator" parameters="passed_point_ref"/>
270 </sketch-2dpoint_selector>
271 <validator id="GeomValidators_Different" parameters="start_point_2,end_point_2,passed_point"/>
273 <box id="by_tangent_edge"
274 icon="icons/Sketch/arc_tang_32x32.png"
275 title="Tangent with edge">
276 <sketch_shape_selector id="tangent_point"
277 label="Tangent point"
278 tooltip="Select point on line"
279 shape_types="vertex">
280 <validator id="SketchPlugin_ArcTangentPoint"/>
281 </sketch_shape_selector>
282 <sketch-2dpoint_selector id="end_point_3"
283 reference_attribute="end_point_ref"
286 accept_expressions="0"
287 enable_value="enable_by_preferences">
288 <validator id="SketchPlugin_ArcEndPointValidator" parameters="end_point_ref"/>
289 </sketch-2dpoint_selector>
292 <labelvalue id="radius"
293 icon="icons/Sketch/radius.png"
296 accept_expressions="0"
300 enable_value="enable_by_preferences">
302 <labelvalue id="angle"
303 icon="icons/Sketch/angle.png"
309 enable_value="enable_by_preferences"/>
310 <boolvalue id="Auxiliary"
312 tooltip="Construction element"
317 <!-- SketchFillet -->
318 <feature id="SketchFillet"
320 tooltip="Create constraint defining fillet between two objects"
321 icon="icons/Sketch/fillet.png">
322 <sketch_shape_selector id="fillet_point"
324 tooltip="Select point for fillet (should be shared by two entities only)"
325 shape_types="vertex">
326 <validator id="SketchPlugin_FilletVertexValidator"/>
327 </sketch_shape_selector>
328 <!--<validator id="PartSet_FilletSelection"/>-->
331 <feature id="SketchSplit" title="Split"
332 tooltip="Cut selected segment arc or circle on existing coincident points"
333 icon="icons/Sketch/split.png">
334 <sketch_feature_point_selector
336 selection_attributes="SelectedObject SelectedPoint PreviewObject PreviewPoint"
338 tooltip="Select segment for split"
340 use_external="false">
341 <validator id="SketchPlugin_SplitValidator"/>
342 </sketch_feature_point_selector>
343 <validator id="PartSet_SplitSelection"/>
346 <feature id="SketchTrim" title="Trim"
347 tooltip="Trim selected segment arc or circle on intersection points nearest to the graphic selection"
348 icon="icons/Sketch/trim.png">
349 <sketch_feature_point_selector
351 selection_attributes="SelectedObject SelectedPoint PreviewObject PreviewPoint"
353 tooltip="Select segment for trim"
355 use_external="false">
356 <validator id="SketchPlugin_TrimValidator"/>
357 </sketch_feature_point_selector>
358 <validator id="PartSet_SplitSelection"/>
363 <group id="Elliptic geometry">
364 <!-- SketchEllipse is a hidden feature. It is created inside SketchMacroEllipse. -->
365 <feature id="SketchEllipse"
367 tooltip="Create ellipse"
368 icon="icons/Sketch/ellipse.png"
370 <sketch-2dpoint_selector id="ellipse_center"
372 tooltip="Center coordinates"
373 accept_expressions="0"
374 enable_value="enable_by_preferences"/>
375 <sketch-2dpoint_selector id="ellipse_focus"
377 tooltip="Focus coordinates"
378 accept_expressions="0"
379 enable_value="enable_by_preferences"/>
380 <labelvalue id="ellipse_major_radius"
381 icon="icons/Sketch/radius.png"
382 label="Major radius:"
383 tooltip="Set major radius"
385 accept_expressions="0"
386 enable_value="enable_by_preferences">
388 <labelvalue id="ellipse_minor_radius"
389 icon="icons/Sketch/radius.png"
390 label="Minor radius:"
391 tooltip="Set minor radius"
393 accept_expressions="0"
394 enable_value="enable_by_preferences">
396 <boolvalue id="Auxiliary" label="Auxiliary" default="false" tooltip="Construction element" obligatory="0"/>
398 <!-- SketchMacroEllipse -->
399 <feature id="SketchMacroEllipse"
400 icon="icons/Sketch/ellipse.png"
402 tooltip="Create ellipse">
403 <sketch-2dpoint_selector id="center_point"
404 reference_attribute="center_point_ref"
406 tooltip="Center point coordinates"
407 accept_expressions="0"
408 enable_value="enable_by_preferences"/>
409 <sketch-2dpoint_selector id="major_axis_point"
410 reference_attribute="major_axis_point_ref"
411 title="Major axis point"
412 tooltip="Major axis point coordinates"
413 accept_expressions="0"
414 enable_value="enable_by_preferences"/>
415 <sketch-2dpoint_selector id="passed_point"
416 reference_attribute="passed_point_ref"
418 tooltip="Passed point coordinates"
419 accept_expressions="0"
420 enable_value="enable_by_preferences">
421 <!-- <validator id="SketchPlugin_CirclePassedPointValidator"/> -->
422 </sketch-2dpoint_selector>
423 <!-- <validator id="GeomValidators_Different" parameters="center_point_ref,passed_point_ref"/> -->
424 <labelvalue id="ellipse_major_radius"
425 icon="icons/Sketch/radius.png"
426 label="Major radius:"
427 tooltip="Set major radius"
429 accept_expressions="0"
431 enable_value="enable_by_preferences">
432 <validator id="GeomValidators_Positive"/>
434 <labelvalue id="ellipse_minor_radius"
435 icon="icons/Sketch/radius.png"
436 label="Minor radius:"
437 tooltip="Set minor radius"
439 accept_expressions="0"
441 enable_value="enable_by_preferences">
442 <validator id="GeomValidators_Positive"/>
444 <boolvalue id="Auxiliary"
445 tooltip="Construction element"
453 <group id="Projection">
454 <!-- Intersection Point -->
456 id="SketchIntersectionPoint"
457 title="Intersection Point"
458 tooltip="Create intersection point"
459 icon="icons/Sketch/intersection_point.png">
460 <sketch_shape_selector
463 tooltip="Select external line."
466 use_sketch_plane="false">
467 <validator id="GeomValidators_ShapeType" parameters="line"/>
468 <validator id="SketchPlugin_IntersectionValidator"/>
469 </sketch_shape_selector>
472 <!-- Projected feature -->
474 id="SketchProjection"
476 tooltip="Project feature onto sketch plane"
477 icon="icons/Sketch/projection.png">
478 <sketch_shape_selector
481 tooltip="Select external edge."
482 shape_types="edge vertex"
484 can_create_external="false"
485 use_sketch_plane="false">
486 <validator id="SketchPlugin_ProjectionValidator"/>
487 </sketch_shape_selector>
488 <boolvalue id="IncludeToResult" label="Include into the sketch result" default="true" tooltip="Include projected feature into the sketch result"/>
489 <validator id="PartSet_ProjectionSelection"/>
493 <group id="Replication">
494 <!-- SketchConstraintMirror -->
496 id="SketchConstraintMirror"
497 title="Mirror" icon="icons/Sketch/mirror.png"
498 tooltip="Create constraint, mirroring group of objects">
499 <sketch_shape_selector id="ConstraintEntityA"
500 label="Mirror line" tooltip="Select mirror line" shape_types="edge">
501 <validator id="GeomValidators_ShapeType" parameters="line"/>
502 <validator id="SketchPlugin_ReplicationReference" parameters="ConstraintEntityC"/>
503 </sketch_shape_selector>
504 <sketch_multi_selector id="ConstraintMirrorList"
506 tooltip="Select list of objects to be mirrored"
510 <validator id="SketchPlugin_MirrorAttr" />
511 </sketch_multi_selector>
512 <validator id="PartSet_MultyTranslationSelection" />
515 <!-- SketchMultiTranslation -->
517 id="SketchMultiTranslation"
518 title="Translation" icon="icons/Sketch/translate.png"
519 tooltip="Multiple translation">
520 <sketch_multi_selector id="MultiTranslationList"
522 tooltip="Select list of objects to be translated"
526 <validator id="SketchPlugin_CopyValidator" />
527 </sketch_multi_selector>
528 <toolbox id="ValueType">
529 <box id="SingleValue" title="Single value" icon="icons/Sketch/translate_32x32.png">
530 <groupbox title="Direction">
531 <sketch_shape_selector
532 id="MultiTranslationStartPoint"
534 tooltip="Start point of translation"
535 shape_types="vertex">
536 <validator id="PartSet_DifferentObjects"/>
537 <validator id="GeomValidators_ShapeType" parameters="vertex"/>
538 <validator id="SketchPlugin_ReplicationReference" parameters="ConstraintEntityB"/>
539 </sketch_shape_selector>
540 <sketch_shape_selector
541 id="MultiTranslationEndPoint"
543 tooltip="Final point of translation"
544 shape_types="vertex">
545 <validator id="PartSet_DifferentObjects"/>
546 <validator id="GeomValidators_ShapeType" parameters="vertex"/>
547 <validator id="SketchPlugin_ReplicationReference" parameters="ConstraintEntityB"/>
548 </sketch_shape_selector>
551 <box id="FullValue" title="Full value" icon="icons/Sketch/translate_full_32x32.png">
552 <groupbox title="Direction">
553 <sketch_shape_selector
554 id="MultiTranslationStartPoint"
556 tooltip="Start point of translation"
557 shape_types="vertex">
558 <validator id="PartSet_DifferentObjects"/>
559 <validator id="GeomValidators_ShapeType" parameters="vertex"/>
560 <validator id="SketchPlugin_ReplicationReference" parameters="ConstraintEntityB"/>
561 </sketch_shape_selector>
562 <sketch_shape_selector
563 id="MultiTranslationEndPoint"
565 tooltip="Final point of translation"
566 shape_types="vertex">
567 <validator id="PartSet_DifferentObjects"/>
568 <validator id="GeomValidators_ShapeType" parameters="vertex"/>
569 <validator id="SketchPlugin_ReplicationReference" parameters="ConstraintEntityB"/>
570 </sketch_shape_selector>
574 <integervalue id="MultiTranslationObjects"
575 label="Total number of objects"
576 tooltip="Total number of objects"
577 default="2" min="2" use_reset="false">
578 <validator id="GeomValidators_Positive" parameters="1"/>
580 <validator id="PartSet_MultyTranslationSelection" />
583 <!-- SketchMultiRotation -->
585 id="SketchMultiRotation"
586 title="Rotation" icon="icons/Sketch/rotate.png"
587 tooltip="Multiple rotation">
588 <sketch_multi_selector id="MultiRotationList"
590 tooltip="Select list of objects to be rotated"
594 <validator id="SketchPlugin_CopyValidator" />
595 </sketch_multi_selector>
596 <sketch_shape_selector
597 id="MultiRotationCenter"
598 label="Center of rotation"
599 tooltip="Center of rotation"
600 shape_types="vertex">
601 <validator id="GeomValidators_ShapeType" parameters="vertex"/>
602 <validator id="SketchPlugin_ReplicationReference" parameters="ConstraintEntityB"/>
603 </sketch_shape_selector>
604 <toolbox id="AngleType">
605 <box id="SingleAngle" title="Single angle" icon="icons/Sketch/angle_up_32x32.png">
606 <doublevalue id="MultiRotationAngle"
608 icon="icons/Sketch/angle.png"
609 tooltip="Rotation angle"
610 default="90" use_reset="false"/>
612 <box id="FullAngle" title="Full angle" icon="icons/Sketch/angle_up_full_32x32.png">
613 <doublevalue id="MultiRotationAngle"
615 icon="icons/Sketch/angle.png"
616 tooltip="Rotation angle"
617 default="90" use_reset="false"/>
620 <integervalue id="MultiRotationObjects"
621 label="Total number of objects"
622 tooltip="Total number of objects"
623 default="2" min="2" use_reset="false">
624 <validator id="GeomValidators_Positive" parameters="1"/>
626 <validator id="PartSet_MultyTranslationSelection" />
630 <group id="Dimensional constraints">
631 <!-- SketchConstraintDistance -->
633 id="SketchConstraintDistance"
635 tooltip="Set fixed distance from a point to an object"
636 icon="icons/Sketch/distance.png">
637 <label title="Select objects for distance definition. Following objects can be accepted: point, line or arc end point, center of circle or arc."/>
638 <sketch_shape_selector
639 id="ConstraintEntityA"
641 tooltip="Select point, line end point, line, center of circle or arc."
642 shape_types="edge vertex">
643 <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityB"/>
644 <validator id="PartSet_DifferentObjects"/>
645 <validator id="GeomValidators_ShapeType" parameters="vertex,line"/>
646 <validator id="PartSet_DifferentPoints" parameters="ConstraintEntityB"/>
647 </sketch_shape_selector>
648 <sketch_shape_selector
649 id="ConstraintEntityB"
650 label="Second object"
651 tooltip="Select point, line end point, line, center of circle or arc."
652 shape_types="edge vertex">
653 <validator id="PartSet_DifferentObjects"/>
654 <validator id="SketchPlugin_DistanceAttr" parameters="ConstraintEntityA"/>
655 <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityA"/>
656 <validator id="GeomValidators_ShapeType" parameters="vertex,line"/>
657 <validator id="PartSet_DifferentPoints" parameters="ConstraintEntityA"/>
658 </sketch_shape_selector>
659 <sketch-2dpoint_flyout_selector id="ConstraintFlyoutValuePnt" default="computed" internal="1" obligatory="0"/>
661 <doublevalue_editor label="Value" tooltip="Distance" id="ConstraintValue" default="computed" min="0">
662 <validator id="GeomValidators_Positive"/>
663 </doublevalue_editor>
665 <module_choice id="LocationType"
666 widget_type="radiobuttons"
667 buttons_dir="horizontal"
668 label="Text location"
669 tooltip="Relative location of the text"
670 string_list="Left Automatic Right"
671 icons_list="icons/Sketch/location_left.png icons/Sketch/location_automatic.png icons/Sketch/location_right.png"
675 <boolvalue id="SignedDistance" label="Keep orientation" default="true" tooltip="Keep distance orientation" obligatory="0"/>
676 <validator id="PartSet_DistanceSelection"/>
679 <!-- SketchConstraintDistanceHorizontal -->
681 id="SketchConstraintDistanceHorizontal"
682 title="Horizontal Distance"
683 tooltip="Set horizontal distance between two points"
684 icon="icons/Sketch/distance_h.png">
685 <label title="Select points for distance definition."/>
686 <sketch_shape_selector
687 id="ConstraintEntityA"
689 tooltip="Select point."
690 shape_types="vertex">
691 <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityB"/>
692 <validator id="PartSet_DifferentObjects"/>
693 <validator id="GeomValidators_ShapeType" parameters="vertex"/>
694 </sketch_shape_selector>
695 <sketch_shape_selector
696 id="ConstraintEntityB"
698 tooltip="Select point."
699 shape_types="vertex">
700 <validator id="PartSet_DifferentObjects"/>
701 <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityA"/>
702 <validator id="GeomValidators_ShapeType" parameters="vertex"/>
703 </sketch_shape_selector>
704 <sketch-2dpoint_flyout_selector id="ConstraintFlyoutValuePnt" default="computed" internal="1" obligatory="0"/>
706 <doublevalue_editor label="Value" tooltip="Distance" id="DistanceValue" default="computed" min="0">
707 <validator id="GeomValidators_Positive"/>
708 </doublevalue_editor>
710 <module_choice id="LocationType"
711 widget_type="radiobuttons"
712 buttons_dir="horizontal"
713 label="Text location"
714 tooltip="Relative location of the text"
715 string_list="Left Automatic Right"
716 icons_list="icons/Sketch/location_left.png icons/Sketch/location_automatic.png icons/Sketch/location_right.png"
720 <validator id="PartSet_DistanceSelection"/>
723 <!-- SketchConstraintDistanceVertical -->
725 id="SketchConstraintDistanceVertical"
726 title="Vertical Distance"
727 tooltip="Set vertical distance between two points"
728 icon="icons/Sketch/distance_v.png">
729 <label title="Select points for distance definition."/>
730 <sketch_shape_selector
731 id="ConstraintEntityA"
733 tooltip="Select point."
734 shape_types="vertex">
735 <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityB"/>
736 <validator id="PartSet_DifferentObjects"/>
737 <validator id="GeomValidators_ShapeType" parameters="vertex"/>
738 </sketch_shape_selector>
739 <sketch_shape_selector
740 id="ConstraintEntityB"
742 tooltip="Select point."
743 shape_types="vertex">
744 <validator id="PartSet_DifferentObjects"/>
745 <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityA"/>
746 <validator id="GeomValidators_ShapeType" parameters="vertex"/>
747 </sketch_shape_selector>
748 <sketch-2dpoint_flyout_selector id="ConstraintFlyoutValuePnt" default="computed" internal="1" obligatory="0"/>
750 <doublevalue_editor label="Value" tooltip="Distance" id="DistanceValue" default="computed" min="0">
751 <validator id="GeomValidators_Positive"/>
752 </doublevalue_editor>
754 <module_choice id="LocationType"
755 widget_type="radiobuttons"
756 buttons_dir="horizontal"
757 label="Text location"
758 tooltip="Relative location of the text"
759 string_list="Left Automatic Right"
760 icons_list="icons/Sketch/location_left.png icons/Sketch/location_automatic.png icons/Sketch/location_right.png"
764 <validator id="PartSet_DistanceSelection"/>
767 <!-- SketchConstraintLength -->
768 <feature id="SketchConstraintLength" title="Length" tooltip="Set fixed length of a line segment" icon="icons/Sketch/length.png">
769 <label title="Select a line on which to calculate length" tooltip="Select a line on which to calculate length"/>
770 <shape_selector id="ConstraintEntityA" label="Line" tooltip="Select a line" shape_types="edge" >
771 <validator id="GeomValidators_ShapeType" parameters="line"/>
773 <sketch-2dpoint_flyout_selector id="ConstraintFlyoutValuePnt" default="computed" internal="1" obligatory="0"/>
774 <doublevalue_editor label="Value" tooltip="Length" id="ConstraintValue" default="computed">
775 <validator id="GeomValidators_Positive"/>
776 </doublevalue_editor>
777 <module_choice id="LocationType"
778 widget_type="radiobuttons"
779 buttons_dir="horizontal"
780 label="Text location"
781 tooltip="Relative location of the text"
782 string_list="Left Automatic Right"
783 icons_list="icons/Sketch/location_left.png icons/Sketch/location_automatic.png icons/Sketch/location_right.png"
786 <validator id="PartSet_LengthSelection"/>
789 <!-- SketchConstraintAngle -->
790 <feature id="SketchConstraintAngle" title="Angle" tooltip="Set fixed angle between two line segments" icon="icons/Sketch/angle_constr.png">
791 <sketch_shape_selector id="ConstraintEntityA" label="Line 1" tooltip="Select a line" shape_types="edge" >
792 <validator id="GeomValidators_ShapeType" parameters="line"/>
793 <validator id="PartSet_DifferentObjects"/>
794 <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityB"/>
795 </sketch_shape_selector>
796 <sketch_shape_selector id="ConstraintEntityB" label="Line 2" tooltip="Select a line" shape_types="edge" >
797 <validator id="GeomValidators_ShapeType" parameters="line"/>
798 <validator id="PartSet_DifferentObjects"/>
799 <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityA"/>
800 </sketch_shape_selector>
801 <sketch-2dpoint_flyout_selector id="ConstraintFlyoutValuePnt" default="computed" internal="1" obligatory="0"/>
802 <doublevalue_editor label="Value" tooltip="Angle" id="AngleValue" default="computed" min="0" max="360" />
803 <validator id="PartSet_AngleSelection"/>
804 <module_choice id="AngleType"
805 widget_type="radiobuttons"
806 buttons_dir="horizontal"
808 tooltip="Type of angle"
809 string_list="Direct Complementary Additional"
810 icons_list="icons/Sketch/angle_direct.png icons/Sketch/angle_complementary.png icons/Sketch/angle_backward.png"
814 <module_choice id="LocationType"
815 widget_type="radiobuttons"
816 buttons_dir="horizontal"
817 label="Text location"
818 tooltip="Relative location of the text"
819 string_list="Left Automatic Right"
820 icons_list="icons/Sketch/location_left.png icons/Sketch/location_automatic.png icons/Sketch/location_right.png"
826 <!-- SketchConstraintRadius -->
827 <feature id="SketchConstraintRadius" title="Radius" tooltip="Set fixed radius of a circle or an arc" icon="icons/Sketch/radius_constr.png">
828 <label title="Select a circle or an arc on which to calculate radius" tooltip="Select a circle or an arc on which to calculate radius"/>
829 <shape_selector id="ConstraintEntityA" label="Circle or Arc" tooltip="Select a circle or an arc"
831 <validator id="GeomValidators_ShapeType" parameters="circle"/>
833 <sketch-2dpoint_flyout_selector id="ConstraintFlyoutValuePnt" default="computed" internal="1" obligatory="0"/>
834 <doublevalue_editor label="Value" tooltip="Radius" id="ConstraintValue" default="computed">
835 <validator id="GeomValidators_Positive"/>
836 </doublevalue_editor>
838 <module_choice id="LocationType"
839 widget_type="radiobuttons"
840 buttons_dir="horizontal"
841 label="Text location"
842 tooltip="Relative location of the text"
843 string_list="Left Automatic Right"
844 icons_list="icons/Sketch/location_left.png icons/Sketch/location_automatic.png icons/Sketch/location_right.png"
848 <validator id="PartSet_RadiusSelection"/>
853 <group id="Geometrical constraints">
855 <!-- SketchConstraintHorizontal -->
856 <feature id="SketchConstraintHorizontal" title="Horizontal" tooltip="Create constraint defining horizontal line" icon="icons/Sketch/horisontal.png">
857 <sketch_shape_selector id="ConstraintEntityA"
858 label="Line" tooltip="Select a line" shape_types="edge" use_external="false">
859 <validator id="GeomValidators_ShapeType" parameters="line"/>
860 <validator id="SketchPlugin_HasNoConstraint" parameters="SketchConstraintHorizontal,SketchConstraintVertical"/>
861 </sketch_shape_selector>
862 <validator id="PartSet_HVDirSelection"/>
865 <!-- SketchConstraintVertical -->
866 <feature id="SketchConstraintVertical" title="Vertical" tooltip="Create constraint defining vertical line" icon="icons/Sketch/vertical.png">
867 <sketch_shape_selector id="ConstraintEntityA"
868 label="Line" tooltip="Select a line" shape_types="edge" use_external="false">
869 <validator id="GeomValidators_ShapeType" parameters="line"/>
870 <validator id="SketchPlugin_HasNoConstraint" parameters="SketchConstraintHorizontal,SketchConstraintVertical"/>
871 </sketch_shape_selector>
872 <validator id="PartSet_HVDirSelection"/>
875 <!-- SketchConstraintRigid -->
876 <feature id="SketchConstraintRigid" title="Fixed" tooltip="Fix an object" icon="icons/Sketch/fixed.png">
877 <sketch_shape_selector id="ConstraintEntityA" label="Object"
878 tooltip="Select point, line end point, line, center of circle or arc."
879 shape_types="edge vertex">
880 <validator id="GeomValidators_ShapeType" parameters="vertex,line,circle"/>
881 <validator id="SketchPlugin_NotFixed"/>
882 </sketch_shape_selector>
883 <validator id="PartSet_RigidSelection"/>
886 <!-- SketchConstraintParallel -->
887 <feature id="SketchConstraintParallel" title="Parallel" tooltip="Create constraint defining two parallel lines"
888 icon="icons/Sketch/parallel.png">
889 <sketch_shape_selector id="ConstraintEntityA"
890 label="First line" tooltip="Select a line" shape_types="edge">
891 <validator id="GeomValidators_ShapeType" parameters="line"/>
892 <validator id="PartSet_DifferentObjects"/>
893 <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityB"/>
894 </sketch_shape_selector>
896 <sketch_shape_selector id="ConstraintEntityB" label="Second line" tooltip="Select a line"
898 <validator id="GeomValidators_ShapeType" parameters="line"/>
899 <validator id="PartSet_DifferentObjects"/>
900 <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityA"/>
901 </sketch_shape_selector>
902 <validator id="PartSet_ParallelSelection"/>
905 <!-- SketchConstraintPerpendicular -->
906 <feature id="SketchConstraintPerpendicular" title="Perpendicular"
907 tooltip="Create constraint defining two perpendicular lines"
908 icon="icons/Sketch/perpendicular.png">
909 <sketch_shape_selector id="ConstraintEntityA"
910 label="First line" tooltip="Select a line"
912 <validator id="PartSet_DifferentObjects"/>
913 <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityB"/>
914 <validator id="GeomValidators_ShapeType" parameters="line"/>
915 </sketch_shape_selector>
917 <sketch_shape_selector id="ConstraintEntityB"
918 label="Second line" tooltip="Select a line"
920 <validator id="PartSet_DifferentObjects"/>
921 <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityA"/>
922 <validator id="GeomValidators_ShapeType" parameters="line"/>
923 </sketch_shape_selector>
924 <validator id="PartSet_PerpendicularSelection"/>
927 <!-- SketchConstraintTangent -->
928 <feature id="SketchConstraintTangent" title="Tangent" tooltip="Create constraint defining tangency of two objects with common coincident point" icon="icons/Sketch/tangent.png">
929 <sketch_shape_selector id="ConstraintEntityA"
930 label="First object" tooltip="Select line or arc" shape_types="edge">
931 <validator id="SketchPlugin_TangentAttr" parameters="ConstraintEntityB"/>
932 <validator id="PartSet_DifferentObjects"/>
933 </sketch_shape_selector>
935 <sketch_shape_selector id="ConstraintEntityB"
936 label="Second object" tooltip="Select line or arc" shape_types="edge">
937 <validator id="SketchPlugin_TangentAttr" parameters="ConstraintEntityA"/>
938 <validator id="PartSet_DifferentObjects"/>
939 </sketch_shape_selector>
940 <validator id="PartSet_TangentSelection"/>
943 <!-- SketchConstraintCoincidence -->
944 <feature id="SketchConstraintCoincidence" title="Coincident" tooltip="Create constraint for the coincidence of two points or point on line or circle" icon="icons/Sketch/coincedence.png">
945 <sketch_shape_selector id="ConstraintEntityA" label="First object" tooltip="Select a first object" shape_types="vertex edge">
946 <validator id="PartSet_DifferentObjects"/>
947 <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityB"/>
948 </sketch_shape_selector>
949 <sketch_shape_selector id="ConstraintEntityB" label="Second object" tooltip="Select a second object" shape_types="vertex edge">
950 <validator id="PartSet_DifferentObjects"/>
951 <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityA"/>
952 <validator id="SketchPlugin_CoincidenceAttr" parameters="ConstraintEntityA"/>
953 </sketch_shape_selector>
954 <validator id="PartSet_CoincidentSelection"/>
957 <!-- SketchConstraintMiddle -->
958 <feature id="SketchConstraintMiddle" title="Middle point" tooltip="Create constraint for setting middle point on a line" icon="icons/Sketch/middlepoint.png">
959 <sketch_shape_selector id="ConstraintEntityA" label="First object" tooltip="Select a first object" shape_types="vertex edge">
960 <validator id="PartSet_DifferentObjects"/>
961 <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityB"/>
962 <validator id="SketchPlugin_MiddlePointAttr" parameters="ConstraintEntityB"/>
963 </sketch_shape_selector>
964 <sketch_shape_selector id="ConstraintEntityB" label="Second object" tooltip="Select a second object" shape_types="vertex edge">
965 <validator id="PartSet_DifferentObjects"/>
966 <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityA"/>
967 <validator id="SketchPlugin_MiddlePointAttr" parameters="ConstraintEntityA"/>
968 </sketch_shape_selector>
969 <validator id="PartSet_MiddlePointSelection"/>
972 <!-- SketchConstraintEqual -->
973 <feature id="SketchConstraintEqual" title="Equal"
974 tooltip="Create constraint defining equal lengths of two lines or line and arc or equal radii of two arcs or two circles or arc and circle"
975 icon="icons/Sketch/equal.png">
976 <sketch_shape_selector id="ConstraintEntityA"
977 label="First object" tooltip="Select line, circle or arc" shape_types="edge">
978 <validator id="PartSet_DifferentObjects"/>
979 <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityB"/>
980 </sketch_shape_selector>
982 <sketch_shape_selector id="ConstraintEntityB"
983 label="Second object" tooltip="Select line, circle or arc" shape_types="edge">
984 <validator id="SketchPlugin_EqualAttr" parameters="ConstraintEntityA"/>
985 <validator id="PartSet_DifferentObjects"/>
986 <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityA"/>
987 </sketch_shape_selector>
988 <validator id="PartSet_EqualSelection"/>
991 <!-- SketchConstraintCollinear -->
992 <feature id="SketchConstraintCollinear" title="Collinear" tooltip="Create constraint defining collinearity of two lines" icon="icons/Sketch/collinear.png">
993 <sketch_shape_selector id="ConstraintEntityA"
994 label="First line" tooltip="Select a line" shape_types="edge">
995 <validator id="GeomValidators_ShapeType" parameters="line"/>
996 <validator id="PartSet_DifferentObjects"/>
997 </sketch_shape_selector>
999 <sketch_shape_selector id="ConstraintEntityB"
1000 label="Second line" tooltip="Select a line" shape_types="edge">
1001 <validator id="GeomValidators_ShapeType" parameters="line"/>
1002 <validator id="PartSet_DifferentObjects"/>
1003 </sketch_shape_selector>
1004 <validator id="PartSet_CollinearSelection"/>