2 <workbench id="Sketch">
3 <group id="Linear geometry">
6 nested="SketchPoint SketchIntersectionPoint SketchLine
7 SketchCircle SketchMacroCircle SketchArc SketchMacroArc
8 SketchEllipse SketchMacroEllipse
11 SketchConstraintLength SketchConstraintRadius SketchConstraintDistance SketchConstraintDistanceHorizontal SketchConstraintDistanceVertical
12 SketchConstraintParallel SketchConstraintPerpendicular
13 SketchConstraintRigid SketchConstraintHorizontal SketchConstraintVertical
14 SketchConstraintEqual SketchConstraintTangent
15 SketchFillet SketchSplit SketchTrim
16 SketchConstraintCoincidence SketchConstraintCoincidenceInternal
17 SketchConstraintMirror SketchConstraintAngle
18 SketchMultiRotation SketchMultiTranslation
19 SketchConstraintCollinear SketchConstraintMiddle"
20 when_nested="accept abort"
22 tooltip="Create sketch"
23 icon="icons/Sketch/sketch.png"
24 helpfile="SketchPlugin.html">
25 <sketch-start-label id="External" geometrical_selection="true" title="Select a plane on which to create a sketch" tooltip="Select a plane on which to create a sketch">
26 <validator id="GeomValidators_Face" parameters="plane"/>
28 <label id="SolverDOF"/>
29 <label id="SolverError" styleSheet="color : red; font : bold"/>
30 <validator id="SketchPlugin_SolverErrorValidator"/>
34 <feature id="SketchPoint" title="Point" tooltip="Create point" icon="icons/Sketch/point.png"
35 helpfile="pointFeature.html">
36 <sketch-2dpoint_selector id="PointCoordinates" accept_expressions="0" title="Point" tooltip="Point coordinates"
37 enable_value="enable_by_preferences"/>
38 <boolvalue id="Auxiliary" label="Auxiliary" default="false" tooltip="Construction element" obligatory="0"/>
42 <feature id="SketchLine" title="Line" tooltip="Create line" icon="icons/Sketch/line.png"
43 helpfile="lineFeature.html">
44 <sketch-2dpoint_selector id="StartPoint" accept_expressions="0" title="Start point" tooltip="Start point coordinates"
45 enable_value="enable_by_preferences"/>
46 <sketch-2dpoint_selector id="EndPoint" accept_expressions="0" title="End point" tooltip="End point coordinates"
47 enable_value="enable_by_preferences"/>
48 <labelvalue id="LineLength" accept_expressions="0" label="Length:" default="computed" icon="icons/Sketch/distance_value.png"
49 tooltip="Line length" obligatory="0" enable_value="false"/>
50 <boolvalue id="Auxiliary" label="Auxiliary" default="false" tooltip="Construction element" obligatory="0"/>
51 <validator id="GeomValidators_Different" parameters="StartPoint,EndPoint"/>
54 <group id="Circular geometry">
55 <!-- SketchCircle is a hidden feature. It is created inside SketchMacroCircle. -->
56 <feature id="SketchCircle"
58 tooltip="Create circle"
59 icon="icons/Sketch/circle.png"
61 <sketch-2dpoint_selector id="circle_center"
63 tooltip="Center coordinates"
64 accept_expressions="0"
65 enable_value="enable_by_preferences"/>
66 <labelvalue id="circle_radius"
67 icon="icons/Sketch/radius.png"
71 accept_expressions="0"
72 enable_value="enable_by_preferences">
74 <boolvalue id="Auxiliary" label="Auxiliary" default="false" tooltip="Construction element" obligatory="0"/>
76 <!-- SketchMacroCircle -->
77 <feature id="SketchMacroCircle"
78 icon="icons/Sketch/circle.png"
80 tooltip="Create circle"
81 helpfile="circleFeature.html">
82 <toolbox id="circle_type" modified_in_edit="edit_circle_type">
83 <box id="circle_type_by_center_and_passed_points"
84 icon="icons/Sketch/circle_pt_rad_32x32.png"
85 title="Center and passed points">
86 <sketch-2dpoint_selector id="center_point"
87 reference_attribute="center_point_ref"
89 tooltip="Center point coordinates"
90 accept_expressions="0"
91 enable_value="enable_by_preferences"/>
92 <sketch-2dpoint_selector id="passed_point"
93 reference_attribute="passed_point_ref"
95 tooltip="Passed point coordinates"
96 accept_expressions="0"
97 enable_value="enable_by_preferences">
98 <validator id="SketchPlugin_CirclePassedPointValidator"/>
99 </sketch-2dpoint_selector>
100 <validator id="GeomValidators_Different" parameters="center_point_ref,passed_point_ref"/>
102 <box id="circle_type_by_three_points"
103 icon="icons/Sketch/circle_3pt_32x32.png"
104 title="Three points">
105 <sketch-2dpoint_selector id="first_point"
106 reference_attribute="first_point_ref"
108 tooltip="First point"
109 accept_expressions="0"
110 enable_value="enable_by_preferences"/>
111 <sketch-2dpoint_selector id="second_point"
112 reference_attribute="second_point_ref"
114 tooltip="Second point"
115 accept_expressions="0"
116 enable_value="enable_by_preferences">
117 <validator id="SketchPlugin_DifferentReference" parameters="first_point_ref,second_point_ref"/>
118 </sketch-2dpoint_selector>
119 <sketch-2dpoint_selector id="third_point"
120 reference_attribute="third_point_ref"
122 tooltip="Third point"
123 accept_expressions="0"
124 enable_value="enable_by_preferences">
125 <validator id="SketchPlugin_DifferentReference" parameters="first_point_ref,second_point_ref,third_point_ref"/>
126 <validator id="SketchPlugin_ThirdPointValidator" parameters="third_point_ref"/>
127 </sketch-2dpoint_selector>
128 <validator id="GeomValidators_Different" parameters="first_point_ref,second_point_ref,third_point_ref"/>
131 <labelvalue id="circle_radius"
132 icon="icons/Sketch/radius.png"
136 accept_expressions="0"
138 enable_value="enable_by_preferences">
139 <validator id="GeomValidators_Positive"/>
141 <boolvalue id="Auxiliary"
142 tooltip="Construction element"
149 <feature id="SketchArc"
150 icon="icons/Sketch/arc.png"
154 <sketch-2dpoint_selector id="center_point"
156 tooltip="Center of a circle"
157 accept_expressions="0"
158 enable_value="enable_by_preferences"/>
159 <sketch-2dpoint_selector id="start_point"
161 tooltip="Start point"
162 accept_expressions="0"
163 enable_value="enable_by_preferences"/>
164 <sketch-2dpoint_selector id="end_point"
167 accept_expressions="0"
168 enable_value="enable_by_preferences"/>
169 <validator id="GeomValidators_Different" parameters="center_point,start_point,end_point"/>
170 <labelvalue id="radius"
171 icon="icons/Sketch/radius.png"
174 accept_expressions="0"
178 enable_value="enable_by_preferences">
180 <labelvalue id="angle"
181 icon="icons/Sketch/angle.png"
187 enable_value="enable_by_preferences"/>
188 <boolvalue id="Auxiliary"
190 tooltip="Construction element"
195 <!-- SketchMacroArc -->
200 icon="icons/Sketch/arc.png"
201 helpfile="arcFeature.html">
202 <toolbox id="arc_type" modified_in_edit="edit_arc_type">
203 <box id="by_center_and_points"
204 icon="icons/Sketch/arc_base_32x32.png"
205 title="Center and two points">
206 <sketch-2dpoint_selector id="center_point"
207 reference_attribute="center_point_ref"
209 tooltip="Center of a circle"
210 accept_expressions="0"
211 enable_value="enable_by_preferences" />
212 <sketch-2dpoint_selector id="start_point_1"
213 reference_attribute="start_point_ref"
215 tooltip="Start point"
216 accept_expressions="0"
217 enable_value="enable_by_preferences"/>
218 <sketch-2dpoint_selector id="end_point_1"
219 reference_attribute="end_point_ref"
222 accept_expressions="0"
223 enable_value="enable_by_preferences">
224 <validator id="SketchPlugin_ArcEndPointValidator" parameters="end_point_ref"/>
225 <validator id="SketchPlugin_ArcEndPointIntersectionValidator" parameters="end_point_ref"/>
226 </sketch-2dpoint_selector>
227 <validator id="GeomValidators_Different" parameters="center_point,start_point_1,end_point_1"/>
229 <box id="by_three_points"
230 icon="icons/Sketch/arc_3pt_32x32.png"
231 title="Three points on arc">
232 <sketch-2dpoint_selector id="start_point_2"
233 reference_attribute="start_point_ref"
235 tooltip="Start point"
236 accept_expressions="0"
237 enable_value="enable_by_preferences"/>
238 <sketch-2dpoint_selector id="end_point_2"
239 reference_attribute="end_point_ref"
242 accept_expressions="0"
243 enable_value="enable_by_preferences">
244 <validator id="GeomValidators_Different" parameters="start_point_2,end_point_2"/>
245 <validator id="SketchPlugin_DifferentPointReference" parameters="start_point_ref,end_point_ref"/>
246 </sketch-2dpoint_selector>
247 <sketch-2dpoint_selector id="passed_point"
248 reference_attribute="passed_point_ref"
250 tooltip="Passed point"
251 accept_expressions="0"
252 enable_value="enable_by_preferences">
253 <validator id="SketchPlugin_DifferentReference" parameters="start_point_ref,end_point_ref,passed_point_ref"/>
254 <validator id="SketchPlugin_ThirdPointValidator" parameters="passed_point_ref"/>
255 </sketch-2dpoint_selector>
256 <validator id="GeomValidators_Different" parameters="start_point_2,end_point_2,passed_point"/>
258 <box id="by_tangent_edge"
259 icon="icons/Sketch/arc_tang_32x32.png"
260 title="Tangent with edge">
261 <sketch_shape_selector id="tangent_point"
262 label="Tangent point"
263 tooltip="Select point on line"
264 shape_types="vertex">
265 <validator id="SketchPlugin_ArcTangentPoint"/>
266 </sketch_shape_selector>
267 <sketch-2dpoint_selector id="end_point_3"
268 reference_attribute="end_point_ref"
271 accept_expressions="0"
272 enable_value="enable_by_preferences">
273 <validator id="SketchPlugin_ArcEndPointValidator" parameters="end_point_ref"/>
274 </sketch-2dpoint_selector>
276 <box id="by_transversal_line"
277 icon="icons/Sketch/arc_perp_32x32.png"
278 title="Perpendicular to line">
279 <sketch_shape_selector id="tangent_point"
280 label="Transversal point"
281 tooltip="Select point on line"
282 shape_types="vertex">
283 <validator id="SketchPlugin_ArcTransversalPoint"/>
284 </sketch_shape_selector>
285 <sketch-2dpoint_selector id="end_point_3"
286 reference_attribute="end_point_ref"
289 accept_expressions="0"
290 enable_value="enable_by_preferences">
291 <validator id="SketchPlugin_ArcEndPointValidator" parameters="end_point_ref"/>
292 </sketch-2dpoint_selector>
295 <labelvalue id="radius"
296 icon="icons/Sketch/radius.png"
299 accept_expressions="0"
303 enable_value="enable_by_preferences">
305 <labelvalue id="angle"
306 icon="icons/Sketch/angle.png"
312 enable_value="enable_by_preferences"/>
313 <boolvalue id="Auxiliary"
315 tooltip="Construction element"
320 <!-- SketchFillet -->
321 <feature id="SketchFillet"
323 tooltip="Create constraint defining fillet between two connected segments"
324 icon="icons/Sketch/fillet.png"
325 helpfile="filletFeature.html">
326 <sketch_shape_selector id="fillet_point"
328 tooltip="Select point for fillet (should be shared by two entities only)"
329 shape_types="vertex">
330 <validator id="SketchPlugin_FilletVertexValidator"/>
331 </sketch_shape_selector>
332 <!--<validator id="PartSet_FilletSelection"/>-->
335 <feature id="SketchSplit" title="Split"
336 tooltip="Cut selected segment arc or circle on existing coincident points"
337 icon="icons/Sketch/split.png"
338 helpfile="splitFeature.html">
339 <sketch_feature_point_selector
341 selection_attributes="SelectedObject SelectedPoint PreviewObject PreviewPoint"
343 tooltip="Select segment for split"
345 use_external="false">
346 <validator id="SketchPlugin_SplitValidator"/>
347 </sketch_feature_point_selector>
348 <validator id="PartSet_SplitSelection"/>
351 <feature id="SketchTrim" title="Trim"
352 tooltip="Trim selected segment arc or circle on intersection points nearest to the graphic selection"
353 icon="icons/Sketch/trim.png"
354 helpfile="trimFeature.html">
355 <sketch_feature_point_selector
357 selection_attributes="SelectedObject SelectedPoint PreviewObject PreviewPoint"
359 tooltip="Select segment for trim"
361 use_external="false">
362 <validator id="SketchPlugin_TrimValidator"/>
363 </sketch_feature_point_selector>
364 <validator id="PartSet_SplitSelection"/>
368 <group id="Elliptic geometry">
369 <!-- SketchEllipse is a hidden feature. It is created inside SketchMacroEllipse. -->
370 <feature id="SketchEllipse"
372 tooltip="Create ellipse"
373 icon="icons/Sketch/ellipse.png"
375 <sketch-2dpoint_selector id="ellipse_center"
377 tooltip="Center coordinates"
378 accept_expressions="0"
379 enable_value="enable_by_preferences"/>
380 <sketch-2dpoint_selector id="ellipse_first_focus"
382 tooltip="Focus coordinates"
383 accept_expressions="0"
384 enable_value="enable_by_preferences"/>
385 <sketch-2dpoint_selector id="ellipse_second_focus"
387 tooltip="Focus coordinates"
388 accept_expressions="0"
389 enable_value="enable_by_preferences"/>
390 <sketch-2dpoint_selector id="ellipse_major_axis_start_point"
391 title="Major axis start"
392 tooltip="Coordinates of point on negative direction of major axis"
393 accept_expressions="0"
394 enable_value="enable_by_preferences"/>
395 <sketch-2dpoint_selector id="ellipse_major_axis_end_point"
396 title="Major axis end"
397 tooltip="Coordinates of point on positive direction of major axis"
398 accept_expressions="0"
399 enable_value="enable_by_preferences"/>
400 <sketch-2dpoint_selector id="ellipse_minor_axis_start_point"
401 title="Minor axis start"
402 tooltip="Coordinates of point on negative direction of minor axis"
403 accept_expressions="0"
404 enable_value="enable_by_preferences"/>
405 <sketch-2dpoint_selector id="ellipse_minor_axis_end_point"
406 title="Minor axis end"
407 tooltip="Coordinates of point on positive direction of minor axis"
408 accept_expressions="0"
409 enable_value="enable_by_preferences"/>
410 <labelvalue id="ellipse_major_radius"
411 icon="icons/Sketch/radius_major.png"
412 label="Major radius:"
413 tooltip="Set major radius"
415 accept_expressions="0"
416 enable_value="enable_by_preferences">
418 <labelvalue id="ellipse_minor_radius"
419 icon="icons/Sketch/radius_minor.png"
420 label="Minor radius:"
421 tooltip="Set minor radius"
423 accept_expressions="0"
424 enable_value="enable_by_preferences">
426 <boolvalue id="Auxiliary" label="Auxiliary" default="false" tooltip="Construction element" obligatory="0"/>
428 <!-- SketchMacroEllipse -->
429 <feature id="SketchMacroEllipse"
430 icon="icons/Sketch/ellipse.png"
432 tooltip="Create ellipse"
433 helpfile="ellipseFeature.html">
434 <toolbox id="ellipse_type" modified_in_edit="edit_ellipse_type">
435 <box id="by_center_axis_point"
436 icon="icons/Sketch/ellipse_cent_rad_32x32.png"
437 title="Center, major semi-axis and passing point">
438 <sketch-2dpoint_selector id="first_point"
439 reference_attribute="first_point_ref"
441 tooltip="Center point coordinates"
442 accept_expressions="0"
443 enable_value="enable_by_preferences"/>
444 <sketch-2dpoint_selector id="second_point"
445 reference_attribute="second_point_ref"
446 title="Major axis point"
447 tooltip="Major axis point coordinates"
448 accept_expressions="0"
449 enable_value="enable_by_preferences"/>
450 <sketch-2dpoint_selector id="passed_point"
451 reference_attribute="passed_point_ref"
453 tooltip="Passed point coordinates"
454 accept_expressions="0"
455 enable_value="enable_by_preferences">
456 <!-- <validator id="SketchPlugin_CirclePassedPointValidator"/> -->
457 </sketch-2dpoint_selector>
459 <box id="by_major_axis_and_point"
460 icon="icons/Sketch/ellipse_axes_32x32.png"
461 title="Major axis and passing point">
462 <sketch-2dpoint_selector id="first_point"
463 reference_attribute="first_point_ref"
464 title="Major axis start point"
465 tooltip="Major axis start point coordinates"
466 accept_expressions="0"
467 enable_value="enable_by_preferences"/>
468 <sketch-2dpoint_selector id="second_point"
469 reference_attribute="second_point_ref"
470 title="Major axis end point"
471 tooltip="Major axis end point coordinates"
472 accept_expressions="0"
473 enable_value="enable_by_preferences"/>
474 <sketch-2dpoint_selector id="passed_point"
475 reference_attribute="passed_point_ref"
477 tooltip="Passed point coordinates"
478 accept_expressions="0"
479 enable_value="enable_by_preferences"/>
482 <!-- <validator id="GeomValidators_Different" parameters="center_point_ref,passed_point_ref"/> -->
483 <labelvalue id="major_radius"
484 icon="icons/Sketch/radius_major.png"
485 label="Major radius:"
486 tooltip="Set major radius"
488 accept_expressions="0"
490 enable_value="enable_by_preferences">
491 <validator id="GeomValidators_Positive"/>
493 <labelvalue id="minor_radius"
494 icon="icons/Sketch/radius_minor.png"
495 label="Minor radius:"
496 tooltip="Set minor radius"
498 accept_expressions="0"
500 enable_value="enable_by_preferences">
501 <validator id="GeomValidators_Positive"/>
503 <boolvalue id="Auxiliary"
504 tooltip="Construction element"
511 <group id="Projection">
512 <!-- Projected feature -->
514 id="SketchProjection"
516 tooltip="Project feature onto sketch plane"
517 icon="icons/Sketch/projection.png"
518 helpfile="projectionFeature.html">
519 <sketch_shape_selector
522 tooltip="Select external edge or vertex."
523 shape_types="edge vertex"
525 can_create_external="false"
526 use_sketch_plane="false">
527 <validator id="SketchPlugin_ProjectionValidator"/>
528 </sketch_shape_selector>
529 <boolvalue id="IncludeToResult" label="Include into the sketch result" default="true" tooltip="Include projected feature into the sketch result"/>
530 <validator id="PartSet_ProjectionSelection"/>
533 <!-- Intersection Point -->
535 id="SketchIntersectionPoint"
537 tooltip="Intersect edge with sketch plane"
538 icon="icons/Sketch/intersection.png"
539 helpfile="intersectionFeature.html">
540 <sketch_shape_selector
543 tooltip="Select external edge."
546 can_create_external="false"
547 use_sketch_plane="false">
548 <validator id="SketchPlugin_IntersectionValidator"/>
549 </sketch_shape_selector>
550 <boolvalue id="IncludeToResult" label="Include into the sketch result" default="true" tooltip="Include projected feature into the sketch result"/>
551 <validator id="PartSet_IntersectionSelection"/>
555 <group id="Replication">
556 <!-- SketchConstraintMirror -->
558 id="SketchConstraintMirror"
559 title="Mirror copy" icon="icons/Sketch/mirror.png"
560 tooltip="Create constraint, mirroring group of objects"
561 helpfile="mirrorFeature.html">
562 <sketch_shape_selector id="ConstraintEntityA"
563 label="Mirror line" tooltip="Select mirror line" shape_types="edge">
564 <validator id="GeomValidators_ShapeType" parameters="line"/>
565 <validator id="SketchPlugin_ReplicationReference" parameters="ConstraintEntityC"/>
566 </sketch_shape_selector>
567 <sketch_multi_selector id="ConstraintMirrorList"
569 tooltip="Select list of objects to be mirrored"
573 <validator id="SketchPlugin_MirrorAttr" />
574 </sketch_multi_selector>
575 <validator id="PartSet_MultyTranslationSelection" />
578 <!-- SketchMultiTranslation -->
580 id="SketchMultiTranslation"
581 title="Linear copy" icon="icons/Sketch/translate.png"
582 tooltip="Copy objects and move"
583 helpfile="translationFeature.html">
584 <sketch_multi_selector id="MultiTranslationList"
586 tooltip="Select list of objects to be translated"
590 <validator id="SketchPlugin_CopyValidator" />
591 </sketch_multi_selector>
592 <toolbox id="ValueType">
593 <box id="SingleValue" title="Single value" icon="icons/Sketch/translate_32x32.png">
594 <groupbox title="Direction">
595 <sketch_shape_selector
596 id="MultiTranslationStartPoint"
598 tooltip="Start point of translation"
599 shape_types="vertex">
600 <validator id="PartSet_DifferentObjects"/>
601 <validator id="GeomValidators_ShapeType" parameters="vertex"/>
602 <validator id="SketchPlugin_ReplicationReference" parameters="ConstraintEntityB"/>
603 </sketch_shape_selector>
604 <sketch_shape_selector
605 id="MultiTranslationEndPoint"
607 tooltip="Final point of translation"
608 shape_types="vertex">
609 <validator id="PartSet_DifferentObjects"/>
610 <validator id="GeomValidators_ShapeType" parameters="vertex"/>
611 <validator id="SketchPlugin_ReplicationReference" parameters="ConstraintEntityB"/>
612 </sketch_shape_selector>
615 <box id="FullValue" title="Full value" icon="icons/Sketch/translate_full_32x32.png">
616 <groupbox title="Direction">
617 <sketch_shape_selector
618 id="MultiTranslationStartPoint"
620 tooltip="Start point of translation"
621 shape_types="vertex">
622 <validator id="PartSet_DifferentObjects"/>
623 <validator id="GeomValidators_ShapeType" parameters="vertex"/>
624 <validator id="SketchPlugin_ReplicationReference" parameters="ConstraintEntityB"/>
625 </sketch_shape_selector>
626 <sketch_shape_selector
627 id="MultiTranslationEndPoint"
629 tooltip="Final point of translation"
630 shape_types="vertex">
631 <validator id="PartSet_DifferentObjects"/>
632 <validator id="GeomValidators_ShapeType" parameters="vertex"/>
633 <validator id="SketchPlugin_ReplicationReference" parameters="ConstraintEntityB"/>
634 </sketch_shape_selector>
638 <integervalue id="MultiTranslationObjects"
639 label="Total number of objects"
640 tooltip="Total number of objects"
641 default="2" min="2" use_reset="false">
642 <validator id="GeomValidators_Positive" parameters="1"/>
644 <validator id="PartSet_MultyTranslationSelection" />
647 <!-- SketchMultiRotation -->
649 id="SketchMultiRotation"
650 title="Angular copy" icon="icons/Sketch/rotate.png"
651 tooltip="Copy objects and rotate"
652 helpfile="rotationFeature.html">
653 <sketch_multi_selector id="MultiRotationList"
655 tooltip="Select list of objects to be rotated"
659 <validator id="SketchPlugin_CopyValidator" />
660 </sketch_multi_selector>
661 <sketch_shape_selector
662 id="MultiRotationCenter"
663 label="Center of rotation"
664 tooltip="Center of rotation"
665 shape_types="vertex">
666 <validator id="GeomValidators_ShapeType" parameters="vertex"/>
667 <validator id="SketchPlugin_ReplicationReference" parameters="ConstraintEntityB"/>
668 </sketch_shape_selector>
669 <toolbox id="AngleType">
670 <box id="FullAngle" title="Full angle" icon="icons/Sketch/angle_up_full_32x32.png">
671 <doublevalue id="MultiRotationAngle"
673 icon="icons/Sketch/angle.png"
674 tooltip="Rotation angle"
675 default="360" min="0" max="360"
677 <validator id="SketchPlugin_MultiRotationAngleValidator" />
679 <boolvalue id="MultiRotationReversed"
681 tooltip="Reverse angular copy"
685 <box id="SingleAngle" title="Single angle" icon="icons/Sketch/angle_up_32x32.png">
686 <doublevalue id="MultiRotationAngle"
688 icon="icons/Sketch/angle.png"
689 tooltip="Rotation angle"
690 default="90" min="0" max="360"
692 <validator id="SketchPlugin_MultiRotationAngleValidator" />
694 <boolvalue id="MultiRotationReversed"
696 tooltip="Reverse angular copy"
701 <integervalue id="MultiRotationObjects"
702 label="Total number of objects"
703 tooltip="Total number of objects"
704 default="4" min="2" use_reset="false">
705 <validator id="GeomValidators_Positive" parameters="1"/>
707 <validator id="PartSet_MultyTranslationSelection" />
711 <group id="Dimensional constraints">
712 <!-- SketchConstraintDistance -->
714 id="SketchConstraintDistance"
716 tooltip="Set fixed distance from a point to an object"
717 icon="icons/Sketch/distance.png"
718 helpfile="distanceFeature.html">
719 <label title="Select objects for distance definition. Following objects can be accepted: point, line or arc end point, center of circle or arc."/>
720 <sketch_shape_selector
721 id="ConstraintEntityA"
723 tooltip="Select point, line end point, line, center of circle or arc."
724 shape_types="edge vertex">
725 <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityB"/>
726 <validator id="PartSet_DifferentObjects"/>
727 <validator id="GeomValidators_ShapeType" parameters="vertex,line"/>
728 <validator id="PartSet_DifferentPoints" parameters="ConstraintEntityB"/>
729 </sketch_shape_selector>
730 <sketch_shape_selector
731 id="ConstraintEntityB"
732 label="Second object"
733 tooltip="Select point, line end point, line, center of circle or arc."
734 shape_types="edge vertex">
735 <validator id="PartSet_DifferentObjects"/>
736 <validator id="SketchPlugin_DistanceAttr" parameters="ConstraintEntityA"/>
737 <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityA"/>
738 <validator id="GeomValidators_ShapeType" parameters="vertex,line"/>
739 <validator id="PartSet_DifferentPoints" parameters="ConstraintEntityA"/>
740 </sketch_shape_selector>
741 <sketch-2dpoint_flyout_selector id="ConstraintFlyoutValuePnt" default="computed" internal="1" obligatory="0"/>
743 <doublevalue_editor label="Value" tooltip="Distance" id="ConstraintValue" default="computed" min="0">
744 <validator id="GeomValidators_Positive"/>
745 </doublevalue_editor>
747 <module_choice id="LocationType"
748 widget_type="radiobuttons"
749 buttons_dir="horizontal"
750 label="Text location"
751 tooltip="Relative location of the text"
752 string_list="Left Automatic Right"
753 icons_list="icons/Sketch/location_left.png icons/Sketch/location_automatic.png icons/Sketch/location_right.png"
757 <boolvalue id="SignedDistance" label="Keep orientation" default="true" tooltip="Keep distance orientation" obligatory="0"/>
758 <validator id="PartSet_DistanceSelection"/>
761 <!-- SketchConstraintDistanceHorizontal -->
763 id="SketchConstraintDistanceHorizontal"
764 title="Horizontal Distance"
765 tooltip="Set horizontal distance between two points"
766 icon="icons/Sketch/distance_h.png"
767 helpfile="horizontalDistFeature.html">
768 <label title="Select points for distance definition."/>
769 <sketch_shape_selector
770 id="ConstraintEntityA"
772 tooltip="Select point."
773 shape_types="vertex">
774 <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityB"/>
775 <validator id="PartSet_DifferentObjects"/>
776 <validator id="GeomValidators_ShapeType" parameters="vertex"/>
777 </sketch_shape_selector>
778 <sketch_shape_selector
779 id="ConstraintEntityB"
781 tooltip="Select point."
782 shape_types="vertex">
783 <validator id="PartSet_DifferentObjects"/>
784 <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityA"/>
785 <validator id="GeomValidators_ShapeType" parameters="vertex"/>
786 </sketch_shape_selector>
787 <sketch-2dpoint_flyout_selector id="ConstraintFlyoutValuePnt" default="computed" internal="1" obligatory="0"/>
789 <doublevalue_editor label="Value" tooltip="Distance" id="DistanceValue" default="computed" min="0">
790 <validator id="GeomValidators_Positive"/>
791 </doublevalue_editor>
793 <module_choice id="LocationType"
794 widget_type="radiobuttons"
795 buttons_dir="horizontal"
796 label="Text location"
797 tooltip="Relative location of the text"
798 string_list="Left Automatic Right"
799 icons_list="icons/Sketch/location_left.png icons/Sketch/location_automatic.png icons/Sketch/location_right.png"
803 <validator id="PartSet_DistanceSelection"/>
806 <!-- SketchConstraintDistanceVertical -->
808 id="SketchConstraintDistanceVertical"
809 title="Vertical Distance"
810 tooltip="Set vertical distance between two points"
811 icon="icons/Sketch/distance_v.png"
812 helpfile="verticalDistFeature.html">
813 <label title="Select points for distance definition."/>
814 <sketch_shape_selector
815 id="ConstraintEntityA"
817 tooltip="Select point."
818 shape_types="vertex">
819 <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityB"/>
820 <validator id="PartSet_DifferentObjects"/>
821 <validator id="GeomValidators_ShapeType" parameters="vertex"/>
822 </sketch_shape_selector>
823 <sketch_shape_selector
824 id="ConstraintEntityB"
826 tooltip="Select point."
827 shape_types="vertex">
828 <validator id="PartSet_DifferentObjects"/>
829 <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityA"/>
830 <validator id="GeomValidators_ShapeType" parameters="vertex"/>
831 </sketch_shape_selector>
832 <sketch-2dpoint_flyout_selector id="ConstraintFlyoutValuePnt" default="computed" internal="1" obligatory="0"/>
834 <doublevalue_editor label="Value" tooltip="Distance" id="DistanceValue" default="computed" min="0">
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_DistanceSelection"/>
851 <!-- SketchConstraintLength -->
852 <feature id="SketchConstraintLength" title="Length" tooltip="Set fixed length of a line segment" icon="icons/Sketch/length.png"
853 helpfile="lengthFeature.html">
854 <label title="Select a line on which to calculate length" tooltip="Select a line on which to calculate length"/>
855 <shape_selector id="ConstraintEntityA" label="Line" tooltip="Select a line" shape_types="edge" >
856 <validator id="GeomValidators_ShapeType" parameters="line"/>
857 <validator id="SketchPlugin_SketchFeatureValidator"/>
859 <sketch-2dpoint_flyout_selector id="ConstraintFlyoutValuePnt" default="computed" internal="1" obligatory="0"/>
860 <doublevalue_editor label="Value" tooltip="Length" id="ConstraintValue" default="computed">
861 <validator id="GeomValidators_Positive"/>
862 </doublevalue_editor>
863 <module_choice id="LocationType"
864 widget_type="radiobuttons"
865 buttons_dir="horizontal"
866 label="Text location"
867 tooltip="Relative location of the text"
868 string_list="Left Automatic Right"
869 icons_list="icons/Sketch/location_left.png icons/Sketch/location_automatic.png icons/Sketch/location_right.png"
872 <validator id="PartSet_LengthSelection"/>
875 <!-- SketchConstraintAngle -->
876 <feature id="SketchConstraintAngle" title="Angle" tooltip="Set fixed angle between two line segments" icon="icons/Sketch/angle_constr.png"
877 helpfile="angleFeature.html">
878 <sketch_shape_selector id="ConstraintEntityA" label="Line 1" tooltip="Select a line" shape_types="edge" >
879 <validator id="GeomValidators_ShapeType" parameters="line"/>
880 <validator id="PartSet_DifferentObjects"/>
881 <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityB"/>
882 </sketch_shape_selector>
883 <sketch_shape_selector id="ConstraintEntityB" label="Line 2" tooltip="Select a line" shape_types="edge" >
884 <validator id="GeomValidators_ShapeType" parameters="line"/>
885 <validator id="PartSet_DifferentObjects"/>
886 <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityA"/>
887 </sketch_shape_selector>
888 <sketch-2dpoint_flyout_selector id="ConstraintFlyoutValuePnt" default="computed" internal="1" obligatory="0"/>
889 <doublevalue_editor label="Value" tooltip="Angle" id="AngleValue" default="computed" min="0" max="360" />
890 <validator id="PartSet_AngleSelection"/>
891 <module_choice id="AngleType"
892 widget_type="radiobuttons"
893 buttons_dir="horizontal"
895 tooltip="Type of angle"
896 string_list="Direct Complementary Additional"
897 icons_list="icons/Sketch/angle_direct.png icons/Sketch/angle_complementary.png icons/Sketch/angle_backward.png"
901 <module_choice id="LocationType"
902 widget_type="radiobuttons"
903 buttons_dir="horizontal"
904 label="Text location"
905 tooltip="Relative location of the text"
906 string_list="Left Automatic Right"
907 icons_list="icons/Sketch/location_left.png icons/Sketch/location_automatic.png icons/Sketch/location_right.png"
913 <!-- SketchConstraintRadius -->
914 <feature id="SketchConstraintRadius" title="Radius" tooltip="Set fixed radius of a circle or an arc" icon="icons/Sketch/radius_constr.png"
915 helpfile="radiusFeature.html">
916 <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"/>
917 <shape_selector id="ConstraintEntityA" label="Circle or Arc" tooltip="Select a circle or an arc"
919 <validator id="GeomValidators_ShapeType" parameters="circle"/>
921 <sketch-2dpoint_flyout_selector id="ConstraintFlyoutValuePnt" default="computed" internal="1" obligatory="0"/>
922 <doublevalue_editor label="Value" tooltip="Radius" id="ConstraintValue" default="computed">
923 <validator id="GeomValidators_Positive"/>
924 </doublevalue_editor>
926 <module_choice id="LocationType"
927 widget_type="radiobuttons"
928 buttons_dir="horizontal"
929 label="Text location"
930 tooltip="Relative location of the text"
931 string_list="Left Automatic Right"
932 icons_list="icons/Sketch/location_left.png icons/Sketch/location_automatic.png icons/Sketch/location_right.png"
936 <validator id="PartSet_RadiusSelection"/>
941 <group id="Geometrical constraints">
943 <!-- SketchConstraintHorizontal -->
944 <feature id="SketchConstraintHorizontal" title="Horizontal" tooltip="Create constraint defining horizontal line" icon="icons/Sketch/horisontal.png"
945 helpfile="horizontalFeature.html">
946 <sketch_shape_selector id="ConstraintEntityA"
947 label="Line" tooltip="Select a line" shape_types="edge" use_external="false">
948 <validator id="GeomValidators_ShapeType" parameters="line"/>
949 <validator id="SketchPlugin_HasNoConstraint" parameters="SketchConstraintHorizontal,SketchConstraintVertical"/>
950 </sketch_shape_selector>
951 <validator id="PartSet_HVDirSelection"/>
954 <!-- SketchConstraintVertical -->
955 <feature id="SketchConstraintVertical" title="Vertical" tooltip="Create constraint defining vertical line" icon="icons/Sketch/vertical.png"
956 helpfile="verticalFeature.html">
957 <sketch_shape_selector id="ConstraintEntityA"
958 label="Line" tooltip="Select a line" shape_types="edge" use_external="false">
959 <validator id="GeomValidators_ShapeType" parameters="line"/>
960 <validator id="SketchPlugin_HasNoConstraint" parameters="SketchConstraintHorizontal,SketchConstraintVertical"/>
961 </sketch_shape_selector>
962 <validator id="PartSet_HVDirSelection"/>
965 <!-- SketchConstraintRigid -->
966 <feature id="SketchConstraintRigid" title="Fixed" tooltip="Fix an object" icon="icons/Sketch/fixed.png"
967 helpfile="rigidFeature.html">
968 <sketch_shape_selector id="ConstraintEntityA" label="Object"
969 tooltip="Select point, curve or its boundary point."
970 shape_types="edge vertex">
971 <validator id="GeomValidators_ShapeType" parameters="vertex,edge"/>
972 <validator id="SketchPlugin_NotFixed"/>
973 </sketch_shape_selector>
974 <validator id="PartSet_RigidSelection"/>
977 <!-- SketchConstraintParallel -->
978 <feature id="SketchConstraintParallel" title="Parallel" tooltip="Create constraint defining two parallel lines"
979 icon="icons/Sketch/parallel.png" helpfile="parallelFeature.html">
980 <sketch_shape_selector id="ConstraintEntityA"
981 label="First line" tooltip="Select a line" shape_types="edge">
982 <validator id="GeomValidators_ShapeType" parameters="line"/>
983 <validator id="PartSet_DifferentObjects"/>
984 <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityB"/>
985 </sketch_shape_selector>
987 <sketch_shape_selector id="ConstraintEntityB" label="Second line" tooltip="Select a line"
989 <validator id="GeomValidators_ShapeType" parameters="line"/>
990 <validator id="PartSet_DifferentObjects"/>
991 <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityA"/>
992 </sketch_shape_selector>
993 <validator id="PartSet_ParallelSelection"/>
996 <!-- SketchConstraintPerpendicular -->
997 <feature id="SketchConstraintPerpendicular" title="Perpendicular"
998 tooltip="Create constraint defining two orthogonal objects"
999 icon="icons/Sketch/perpendicular.png"
1000 helpfile="perpendicularFeature.html">
1001 <sketch_shape_selector id="ConstraintEntityA"
1002 label="First object" tooltip="Select line or arc"
1004 <validator id="PartSet_DifferentObjects"/>
1005 <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityB"/>
1006 <validator id="SketchPlugin_PerpendicularAttr" parameters="ConstraintEntityB"/>
1007 <validator id="GeomValidators_ShapeType" parameters="line,circle"/>
1008 </sketch_shape_selector>
1010 <sketch_shape_selector id="ConstraintEntityB"
1011 label="Second object" tooltip="Select line or arc"
1013 <validator id="PartSet_DifferentObjects"/>
1014 <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityA"/>
1015 <validator id="SketchPlugin_PerpendicularAttr" parameters="ConstraintEntityA"/>
1016 <validator id="GeomValidators_ShapeType" parameters="line,circle"/>
1017 </sketch_shape_selector>
1018 <validator id="PartSet_PerpendicularSelection"/>
1021 <!-- SketchConstraintTangent -->
1022 <feature id="SketchConstraintTangent" title="Tangent" tooltip="Create constraint defining tangency of two segments with common coincident point" icon="icons/Sketch/tangent.png"
1023 helpfile="tangentFeature.html">
1024 <sketch_shape_selector id="ConstraintEntityA"
1025 label="First object" tooltip="Select line or arc" shape_types="edge">
1026 <validator id="SketchPlugin_TangentAttr" parameters="ConstraintEntityB"/>
1027 <validator id="PartSet_DifferentObjects"/>
1028 </sketch_shape_selector>
1030 <sketch_shape_selector id="ConstraintEntityB"
1031 label="Second object" tooltip="Select line or arc" shape_types="edge">
1032 <validator id="SketchPlugin_TangentAttr" parameters="ConstraintEntityA"/>
1033 <validator id="PartSet_DifferentObjects"/>
1034 </sketch_shape_selector>
1035 <validator id="PartSet_TangentSelection"/>
1038 <!-- SketchConstraintCoincidence -->
1039 <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"
1040 helpfile="coincedenceFeature.html">
1041 <sketch_shape_selector id="ConstraintEntityA" label="First object" tooltip="Select a first object" shape_types="vertex edge">
1042 <validator id="PartSet_DifferentObjects"/>
1043 <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityB"/>
1044 </sketch_shape_selector>
1045 <sketch_shape_selector id="ConstraintEntityB" label="Second object" tooltip="Select a second object" shape_types="vertex edge">
1046 <validator id="PartSet_DifferentObjects"/>
1047 <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityA"/>
1048 <validator id="SketchPlugin_CoincidenceAttr" parameters="ConstraintEntityA"/>
1049 </sketch_shape_selector>
1050 <validator id="PartSet_CoincidentSelection"/>
1052 <!-- SketchConstraintCoincidenceInternal -->
1053 <feature id="SketchConstraintCoincidenceInternal" title="Internal Coincidence" tooltip="Internal coincidence" icon="icons/Sketch/coincedence.png"
1054 helpfile="coincedenceFeature.html" internal="1">
1055 <sketch_shape_selector id="ConstraintEntityA" label="First object" tooltip="Select a first object" shape_types="vertex">
1056 <validator id="PartSet_DifferentObjects"/>
1057 <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityB"/>
1058 </sketch_shape_selector>
1059 <sketch_shape_selector id="ConstraintEntityB" label="Second object" tooltip="Select a second object" shape_types="vertex">
1060 <validator id="PartSet_DifferentObjects"/>
1061 <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityA"/>
1062 <validator id="SketchPlugin_CoincidenceAttr" parameters="ConstraintEntityA"/>
1063 </sketch_shape_selector>
1064 <validator id="PartSet_CoincidentSelection"/>
1067 <!-- SketchConstraintMiddle -->
1068 <feature id="SketchConstraintMiddle" title="Middle point" tooltip="Create constraint for setting middle point on a line"
1069 icon="icons/Sketch/middlepoint.png"
1070 helpfile="middleFeature.html">
1071 <sketch_shape_selector id="ConstraintEntityA" label="First object" tooltip="Select a first object" shape_types="vertex edge">
1072 <validator id="PartSet_DifferentObjects"/>
1073 <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityB"/>
1074 <validator id="SketchPlugin_MiddlePointAttr" parameters="ConstraintEntityB"/>
1075 </sketch_shape_selector>
1076 <sketch_shape_selector id="ConstraintEntityB" label="Second object" tooltip="Select a second object" shape_types="vertex edge">
1077 <validator id="PartSet_DifferentObjects"/>
1078 <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityA"/>
1079 <validator id="SketchPlugin_MiddlePointAttr" parameters="ConstraintEntityA"/>
1080 </sketch_shape_selector>
1081 <validator id="PartSet_MiddlePointSelection"/>
1084 <!-- SketchConstraintEqual -->
1085 <feature id="SketchConstraintEqual" title="Equal"
1086 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"
1087 icon="icons/Sketch/equal.png"
1088 helpfile="equalFeature.html">
1089 <sketch_shape_selector id="ConstraintEntityA"
1090 label="First object" tooltip="Select line, circle or arc" shape_types="edge">
1091 <validator id="PartSet_DifferentObjects"/>
1092 <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityB"/>
1093 </sketch_shape_selector>
1095 <sketch_shape_selector id="ConstraintEntityB"
1096 label="Second object" tooltip="Select line, circle or arc" shape_types="edge">
1097 <validator id="SketchPlugin_EqualAttr" parameters="ConstraintEntityA"/>
1098 <validator id="PartSet_DifferentObjects"/>
1099 <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityA"/>
1100 </sketch_shape_selector>
1101 <validator id="PartSet_EqualSelection"/>
1104 <!-- SketchConstraintCollinear -->
1105 <feature id="SketchConstraintCollinear" title="Collinear" tooltip="Create constraint defining collinearity of two lines"
1106 icon="icons/Sketch/collinear.png"
1107 helpfile="collinearFeature.html">
1108 <sketch_shape_selector id="ConstraintEntityA"
1109 label="First line" tooltip="Select a line" shape_types="edge">
1110 <validator id="GeomValidators_ShapeType" parameters="line"/>
1111 <validator id="PartSet_DifferentObjects"/>
1112 </sketch_shape_selector>
1114 <sketch_shape_selector id="ConstraintEntityB"
1115 label="Second line" tooltip="Select a line" shape_types="edge">
1116 <validator id="GeomValidators_ShapeType" parameters="line"/>
1117 <validator id="PartSet_DifferentObjects"/>
1118 </sketch_shape_selector>
1119 <validator id="PartSet_CollinearSelection"/>