Salome HOME
Task 5.1.3 Sketcher: angle dimension (issue #3061)
[modules/shaper.git] / src / SketchPlugin / plugin-Sketch.xml
1 <plugin>
2   <workbench id="Sketch">
3     <group id="Linear geometry">
4       <feature
5         id="Sketch"
6         nested="SketchPoint SketchIntersectionPoint SketchLine
7                 SketchCircle SketchMacroCircle SketchArc SketchMacroArc
8                 SketchEllipse SketchMacroEllipse SketchEllipticArc SketchMacroEllipticArc
9                 SketchRectangle
10                 SketchProjection
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"
21         title="Sketch"
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"/>
27         </sketch-start-label>
28         <undo_label id="SolverError" isHTML="true" />
29         <validator id="SketchPlugin_SolverErrorValidator"/>
30       </feature>
31
32       <!-- SketchPoint -->
33       <feature id="SketchPoint" title="Point" tooltip="Create point" icon="icons/Sketch/point.png"
34                 helpfile="pointFeature.html">
35         <sketch-2dpoint_selector id="PointCoordinates" accept_expressions="0" title="Point" tooltip="Point coordinates"
36                                  enable_value="enable_by_preferences"/>
37         <boolvalue id="Auxiliary" label="Auxiliary" default="false" tooltip="Construction element" obligatory="0" change_visual_attributes="true"/>
38       </feature>
39
40       <!-- SketchLine -->
41       <feature id="SketchLine" title="Line" tooltip="Create line" icon="icons/Sketch/line.png"
42                helpfile="lineFeature.html">
43         <sketch-2dpoint_selector id="StartPoint" accept_expressions="0" title="Start point" tooltip="Start point coordinates"
44                                  enable_value="enable_by_preferences"/>
45         <sketch-2dpoint_selector id="EndPoint" accept_expressions="0" title="End point" tooltip="End point coordinates"
46                                  enable_value="enable_by_preferences"/>
47         <labelvalue id="LineLength" accept_expressions="0" label="Length" default="computed" icon="icons/Sketch/distance_value.png"
48                      tooltip="Line length" obligatory="0" enable_value="false"/>
49         <boolvalue id="Auxiliary" label="Auxiliary" default="false" tooltip="Construction element" obligatory="0" change_visual_attributes="true"/>
50         <validator id="GeomValidators_Different" parameters="StartPoint,EndPoint"/>
51       </feature>
52     </group>
53     <group id="Conical geometry">
54       <!-- SketchCircle is a hidden feature. It is created inside SketchMacroCircle. -->
55       <feature id="SketchCircle"
56                title="Circle"
57                tooltip="Create circle"
58                icon="icons/Sketch/circle.png"
59                internal="1">
60         <sketch-2dpoint_selector id="circle_center"
61                                  title="Center"
62                                  tooltip="Center coordinates"
63                                  accept_expressions="0"
64                                  enable_value="enable_by_preferences"/>
65         <labelvalue id="circle_radius"
66                     icon="icons/Sketch/radius.png"
67                     label="Radius"
68                     tooltip="Set radius"
69                     default="computed"
70                     accept_expressions="0"
71                     enable_value="enable_by_preferences">
72         </labelvalue>
73         <boolvalue id="Auxiliary" label="Auxiliary" default="false" tooltip="Construction element" obligatory="0" change_visual_attributes="true"/>
74       </feature>
75       <!-- SketchMacroCircle -->
76       <feature id="SketchMacroCircle"
77                icon="icons/Sketch/circle.png"
78                title="Circle"
79                tooltip="Create circle"
80                helpfile="circleFeature.html">
81         <toolbox id="circle_type" modified_in_edit="edit_circle_type">
82           <box id="circle_type_by_center_and_passed_points"
83                icon="icons/Sketch/circle_pt_rad_32x32.png"
84                title="Center and passed points">
85             <sketch-2dpoint_selector id="center_point"
86                                      reference_attribute="center_point_ref"
87                                      title="Center point"
88                                      tooltip="Center point coordinates"
89                                      accept_expressions="0"
90                                      enable_value="enable_by_preferences"/>
91             <sketch-2dpoint_selector id="passed_point"
92                                      reference_attribute="passed_point_ref"
93                                      title="Passed point"
94                                      tooltip="Passed point coordinates"
95                                      accept_expressions="0"
96                                      enable_value="enable_by_preferences">
97               <validator id="SketchPlugin_CirclePassedPointValidator"/>
98             </sketch-2dpoint_selector>
99             <validator id="GeomValidators_Different" parameters="center_point_ref,passed_point_ref"/>
100           </box>
101           <box id="circle_type_by_three_points"
102                icon="icons/Sketch/circle_3pt_32x32.png"
103                title="Three points">
104             <sketch-2dpoint_selector id="first_point"
105                                      reference_attribute="first_point_ref"
106                                      title="First point"
107                                      tooltip="First point"
108                                      accept_expressions="0"
109                                      enable_value="enable_by_preferences"/>
110             <sketch-2dpoint_selector id="second_point"
111                                      reference_attribute="second_point_ref"
112                                      title="Second point"
113                                      tooltip="Second point"
114                                      accept_expressions="0"
115                                      enable_value="enable_by_preferences">
116               <validator id="SketchPlugin_DifferentReference" parameters="first_point_ref,second_point_ref"/>
117             </sketch-2dpoint_selector>
118             <sketch-2dpoint_selector id="third_point"
119                                      reference_attribute="third_point_ref"
120                                      title="Third point"
121                                      tooltip="Third point"
122                                      accept_expressions="0"
123                                      enable_value="enable_by_preferences">
124               <validator id="SketchPlugin_DifferentReference" parameters="first_point_ref,second_point_ref,third_point_ref"/>
125               <validator id="SketchPlugin_ThirdPointValidator" parameters="third_point_ref"/>
126             </sketch-2dpoint_selector>
127             <validator id="GeomValidators_Different" parameters="first_point_ref,second_point_ref,third_point_ref"/>
128           </box>
129         </toolbox>
130         <labelvalue id="circle_radius"
131                     icon="icons/Sketch/radius.png"
132                     label="Radius"
133                     tooltip="Set radius"
134                     default="computed"
135                     accept_expressions="0"
136                     obligatory="0"
137                     enable_value="enable_by_preferences">
138         </labelvalue>
139         <boolvalue id="Auxiliary"
140                    tooltip="Construction element"
141                    label="Auxiliary"
142                    default="false"
143                    obligatory="0"
144                    change_visual_attributes="true"/>
145       </feature>
146
147       <!-- SketchArc -->
148       <feature id="SketchArc"
149                icon="icons/Sketch/arc.png"
150                title="Arc"
151                tooltip="Create arc"
152                internal="1">
153         <sketch-2dpoint_selector id="center_point"
154                                  title="Center"
155                                  tooltip="Center of a circle"
156                                  accept_expressions="0"
157                                  enable_value="enable_by_preferences"/>
158         <sketch-2dpoint_selector id="start_point"
159                                  title="Start point"
160                                  tooltip="Start point"
161                                  accept_expressions="0"
162                                  enable_value="enable_by_preferences"/>
163         <sketch-2dpoint_selector id="end_point"
164                                  title="End point"
165                                  tooltip="End point"
166                                  accept_expressions="0"
167                                  enable_value="enable_by_preferences"/>
168         <validator id="GeomValidators_Different" parameters="center_point,start_point,end_point"/>
169         <labelvalue id="radius"
170                     icon="icons/Sketch/radius.png"
171                     label="Radius"
172                     tooltip="Set radius"
173                     accept_expressions="0"
174                     min="0"
175                     default="0"
176                     obligatory="0"
177                     enable_value="enable_by_preferences">
178         </labelvalue>
179         <labelvalue id="angle"
180                     icon="icons/Sketch/angle.png"
181                     label="Angle"
182                     tooltip="Set angle"
183                     default="0"
184                     use_reset="false"
185                     obligatory="0"
186                     enable_value="enable_by_preferences"/>
187         <boolvalue id="Auxiliary"
188                    label="Auxiliary"
189                    tooltip="Construction element"
190                    default="false"
191                    obligatory="0"
192                    change_visual_attributes="true"/>
193       </feature>
194
195       <!-- SketchMacroArc -->
196       <feature
197         id="SketchMacroArc"
198         title="Arc"
199         tooltip="Create arc"
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"
208                                      title="Center point"
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"
214                                      title="Start point"
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"
220                                      title="End point"
221                                      tooltip="End point"
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"/>
228           </box>
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"
234                                      title="Start point"
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"
240                                      title="End point"
241                                      tooltip="End point"
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"
249                                      title="Passed point"
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"/>
257           </box>
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"
269                                      title="End point"
270                                      tooltip="End point"
271                                      accept_expressions="0"
272                                      enable_value="enable_by_preferences">
273               <validator id="SketchPlugin_ArcEndPointValidator" parameters="end_point_ref"/>
274             </sketch-2dpoint_selector>
275           </box>
276           <box id="by_transversal_line"
277                icon="icons/Sketch/arc_perp_32x32.png"
278                title="Perpendicular to line">
279             <sketch_shape_selector id="transversal_point"
280                                    label="Point on the perpendicular line"
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_4"
286                                      reference_attribute="end_point_ref"
287                                      title="End point"
288                                      tooltip="End point"
289                                      accept_expressions="0"
290                                      enable_value="enable_by_preferences">
291               <validator id="SketchPlugin_ArcEndPointValidator" parameters="end_point_ref"/>
292             </sketch-2dpoint_selector>
293           </box>
294         </toolbox>
295         <labelvalue id="radius"
296                     icon="icons/Sketch/radius.png"
297                     label="Radius"
298                     tooltip="Set radius"
299                     accept_expressions="0"
300                     min="0"
301                     default="0"
302                     obligatory="0"
303                     enable_value="enable_by_preferences">
304         </labelvalue>
305         <labelvalue id="angle"
306                     icon="icons/Sketch/angle.png"
307                     label="Angle"
308                     tooltip="Set angle"
309                     default="0"
310                     use_reset="false"
311                     obligatory="0"
312                     enable_value="enable_by_preferences"/>
313         <boolvalue id="Auxiliary"
314                    label="Auxiliary"
315                    tooltip="Construction element"
316                    default="false"
317                    obligatory="0"
318                    change_visual_attributes="true"/>
319       </feature>
320
321       <!--  SketchFillet  -->
322       <feature id="SketchFillet"
323                title="Fillet"
324                tooltip="Create constraint defining fillet between two connected segments"
325                icon="icons/Sketch/fillet.png"
326                helpfile="filletFeature.html">
327         <sketch_shape_selector id="fillet_point"
328                                label="Point"
329                                tooltip="Select point for fillet (should be shared by two entities only)"
330                                shape_types="vertex">
331           <validator id="SketchPlugin_FilletVertexValidator"/>
332         </sketch_shape_selector>
333         <!--<validator id="PartSet_FilletSelection"/>-->
334       </feature>
335
336       <!-- SketchEllipse is a hidden feature. It is created inside SketchMacroEllipse. -->
337       <feature id="SketchEllipse"
338                title="Ellipse"
339                tooltip="Create ellipse"
340                icon="icons/Sketch/ellipse.png"
341                internal="1">
342         <sketch-2dpoint_selector id="ellipse_center"
343                                  title="Center"
344                                  tooltip="Center coordinates"
345                                  accept_expressions="0"
346                                  enable_value="enable_by_preferences"/>
347         <sketch-2dpoint_selector id="ellipse_first_focus"
348                                  title="First focus"
349                                  tooltip="Focus coordinates"
350                                  accept_expressions="0"
351                                  enable_value="enable_by_preferences"/>
352         <sketch-2dpoint_selector id="ellipse_second_focus"
353                                  title="Second focus"
354                                  tooltip="Focus coordinates"
355                                  accept_expressions="0"
356                                  enable_value="enable_by_preferences"/>
357         <sketch-2dpoint_selector id="ellipse_major_axis_start_point"
358                                  title="Major axis start"
359                                  tooltip="Coordinates of point on negative direction of major axis"
360                                  accept_expressions="0"
361                                  enable_value="enable_by_preferences"/>
362         <sketch-2dpoint_selector id="ellipse_major_axis_end_point"
363                                  title="Major axis end"
364                                  tooltip="Coordinates of point on positive direction of major axis"
365                                  accept_expressions="0"
366                                  enable_value="enable_by_preferences"/>
367         <sketch-2dpoint_selector id="ellipse_minor_axis_start_point"
368                                  title="Minor axis start"
369                                  tooltip="Coordinates of point on negative direction of minor axis"
370                                  accept_expressions="0"
371                                  enable_value="enable_by_preferences"/>
372         <sketch-2dpoint_selector id="ellipse_minor_axis_end_point"
373                                  title="Minor axis end"
374                                  tooltip="Coordinates of point on positive direction of minor axis"
375                                  accept_expressions="0"
376                                  enable_value="enable_by_preferences"/>
377         <labelvalue id="ellipse_major_radius"
378                     icon="icons/Sketch/radius_major.png"
379                     label="Major radius"
380                     tooltip="Set major radius"
381                     default="computed"
382                     accept_expressions="0"
383                     enable_value="enable_by_preferences">
384         </labelvalue>
385         <labelvalue id="ellipse_minor_radius"
386                     icon="icons/Sketch/radius_minor.png"
387                     label="Minor radius"
388                     tooltip="Set minor radius"
389                     default="computed"
390                     accept_expressions="0"
391                     enable_value="enable_by_preferences">
392         </labelvalue>
393         <boolvalue id="Auxiliary" label="Auxiliary" default="false" tooltip="Construction element" obligatory="0" change_visual_attributes="true"/>
394       </feature>
395       <!-- SketchMacroEllipse -->
396       <feature id="SketchMacroEllipse"
397                icon="icons/Sketch/ellipse.png"
398                title="Ellipse"
399                tooltip="Create ellipse"
400                helpfile="ellipseFeature.html">
401         <toolbox id="ellipse_type" modified_in_edit="edit_ellipse_type">
402           <box id="by_center_axis_point"
403                icon="icons/Sketch/ellipse_cent_rad_32x32.png"
404                title="Center, major semi-axis and passing point">
405             <sketch-2dpoint_selector id="first_point"
406                                      reference_attribute="first_point_ref"
407                                      title="Center point"
408                                      tooltip="Center point coordinates"
409                                      accept_expressions="0"
410                                      enable_value="enable_by_preferences"/>
411             <sketch-2dpoint_selector id="second_point"
412                                      reference_attribute="second_point_ref"
413                                      title="Major axis point"
414                                      tooltip="Major axis point coordinates"
415                                      accept_expressions="0"
416                                      enable_value="enable_by_preferences"/>
417             <sketch-2dpoint_selector id="passed_point"
418                                      reference_attribute="passed_point_ref"
419                                      title="Passed point"
420                                      tooltip="Passed point coordinates"
421                                      accept_expressions="0"
422                                      enable_value="enable_by_preferences"/>
423           </box>
424           <box id="by_major_axis_and_point"
425                icon="icons/Sketch/ellipse_axes_32x32.png"
426                title="Major axis and passing point">
427             <sketch-2dpoint_selector id="first_point_1"
428                                      reference_attribute="first_point_ref_1"
429                                      title="Major axis start point"
430                                      tooltip="Major axis start point coordinates"
431                                      accept_expressions="0"
432                                      enable_value="enable_by_preferences"/>
433             <sketch-2dpoint_selector id="second_point_1"
434                                      reference_attribute="second_point_ref_1"
435                                      title="Major axis end point"
436                                      tooltip="Major axis end point coordinates"
437                                      accept_expressions="0"
438                                      enable_value="enable_by_preferences"/>
439             <sketch-2dpoint_selector id="passed_point_1"
440                                      reference_attribute="passed_point_ref_1"
441                                      title="Passed point"
442                                      tooltip="Passed point coordinates"
443                                      accept_expressions="0"
444                                      enable_value="enable_by_preferences"/>
445           </box>
446         </toolbox>
447         <labelvalue id="major_radius"
448                     icon="icons/Sketch/radius_major.png"
449                     label="Major radius"
450                     tooltip="Set major radius"
451                     default="computed"
452                     accept_expressions="0"
453                     obligatory="0"
454                     enable_value="enable_by_preferences">
455         </labelvalue>
456         <labelvalue id="minor_radius"
457                     icon="icons/Sketch/radius_minor.png"
458                     label="Minor radius"
459                     tooltip="Set minor radius"
460                     default="computed"
461                     accept_expressions="0"
462                     obligatory="0"
463                     enable_value="enable_by_preferences">
464         </labelvalue>
465         <boolvalue id="Auxiliary"
466                    tooltip="Construction element"
467                    label="Auxiliary"
468                    default="false"
469                    obligatory="0"
470                    change_visual_attributes="true"/>
471       </feature>
472
473       <!-- SketchEllipticArc is a hidden feature. It is created inside SketchMacroEllipse. -->
474       <feature id="SketchEllipticArc"
475                title="Elliptic arc"
476                tooltip="Create elliptic arc"
477                icon="icons/Sketch/elliptic_arc.png"
478                internal="1">
479         <sketch-2dpoint_selector id="ellipse_center"
480                                  title="Center"
481                                  tooltip="Center coordinates"
482                                  accept_expressions="0"
483                                  enable_value="enable_by_preferences"/>
484         <sketch-2dpoint_selector id="ellipse_first_focus"
485                                  title="First focus"
486                                  tooltip="Focus coordinates"
487                                  accept_expressions="0"
488                                  enable_value="enable_by_preferences"/>
489         <sketch-2dpoint_selector id="ellipse_second_focus"
490                                  title="Second focus"
491                                  tooltip="Focus coordinates"
492                                  accept_expressions="0"
493                                  enable_value="enable_by_preferences"/>
494         <sketch-2dpoint_selector id="ellipse_major_axis_start_point"
495                                  title="Major axis start"
496                                  tooltip="Coordinates of point on negative direction of major axis"
497                                  accept_expressions="0"
498                                  enable_value="enable_by_preferences"/>
499         <sketch-2dpoint_selector id="ellipse_major_axis_end_point"
500                                  title="Major axis end"
501                                  tooltip="Coordinates of point on positive direction of major axis"
502                                  accept_expressions="0"
503                                  enable_value="enable_by_preferences"/>
504         <sketch-2dpoint_selector id="ellipse_minor_axis_start_point"
505                                  title="Minor axis start"
506                                  tooltip="Coordinates of point on negative direction of minor axis"
507                                  accept_expressions="0"
508                                  enable_value="enable_by_preferences"/>
509         <sketch-2dpoint_selector id="ellipse_minor_axis_end_point"
510                                  title="Minor axis end"
511                                  tooltip="Coordinates of point on positive direction of minor axis"
512                                  accept_expressions="0"
513                                  enable_value="enable_by_preferences"/>
514         <sketch-2dpoint_selector id="start_point"
515                                  title="Start point"
516                                  tooltip="Arc start point coordinates"
517                                  accept_expressions="0"
518                                  enable_value="enable_by_preferences"/>
519         <sketch-2dpoint_selector id="end_point"
520                                  title="End point"
521                                  tooltip="Arc end point coordinates"
522                                  accept_expressions="0"
523                                  enable_value="enable_by_preferences"/>
524         <labelvalue id="ellipse_major_radius"
525                     icon="icons/Sketch/radius_major.png"
526                     label="Major radius"
527                     tooltip="Set major radius"
528                     default="computed"
529                     accept_expressions="0"
530                     enable_value="enable_by_preferences">
531         </labelvalue>
532         <labelvalue id="ellipse_minor_radius"
533                     icon="icons/Sketch/radius_minor.png"
534                     label="Minor radius"
535                     tooltip="Set minor radius"
536                     default="computed"
537                     accept_expressions="0"
538                     enable_value="enable_by_preferences">
539         </labelvalue>
540         <boolvalue id="Auxiliary" label="Auxiliary" default="false" tooltip="Construction element" obligatory="0" change_visual_attributes="true"/>
541       </feature>
542       <!-- SketchMacroEllipticArc -->
543       <feature id="SketchMacroEllipticArc"
544                icon="icons/Sketch/elliptic_arc.png"
545                title="Elliptic arc"
546                tooltip="Create elliptic arc"
547                helpfile="ellipseFeature.html">
548         <sketch-2dpoint_selector id="center"
549                                  reference_attribute="center_ref"
550                                  title="Center point"
551                                  tooltip="Center point coordinates"
552                                  accept_expressions="0"
553                                  enable_value="enable_by_preferences"/>
554         <sketch-2dpoint_selector id="major_axis_point"
555                                  reference_attribute="major_axis_point_ref"
556                                  title="Major axis point"
557                                  tooltip="Major axis point coordinates"
558                                  accept_expressions="0"
559                                  enable_value="enable_by_preferences"/>
560         <sketch-2dpoint_selector id="start_point"
561                                  reference_attribute="start_point_ref"
562                                  title="Start point"
563                                  tooltip="Arc start point coordinates"
564                                  accept_expressions="0"
565                                  enable_value="enable_by_preferences"/>
566         <sketch-2dpoint_selector id="end_point"
567                                  reference_attribute="end_point_ref"
568                                  title="End point"
569                                  tooltip="Arc end point coordinates"
570                                  accept_expressions="0"
571                                  enable_value="enable_by_preferences"/>
572         <labelvalue id="major_radius"
573                     icon="icons/Sketch/radius_major.png"
574                     label="Major radius"
575                     tooltip="Set major radius"
576                     default="computed"
577                     accept_expressions="0"
578                     obligatory="0"
579                     enable_value="enable_by_preferences">
580         </labelvalue>
581         <labelvalue id="minor_radius"
582                     icon="icons/Sketch/radius_minor.png"
583                     label="Minor radius"
584                     tooltip="Set minor radius"
585                     default="computed"
586                     accept_expressions="0"
587                     obligatory="0"
588                     enable_value="enable_by_preferences">
589         </labelvalue>
590         <boolvalue id="Auxiliary"
591                    tooltip="Construction element"
592                    label="Auxiliary"
593                    default="false"
594                    obligatory="0"
595                    change_visual_attributes="true"/>
596       </feature>
597     </group>
598
599     <group id="Segmentation">
600       <!--  SketchSplit  -->
601       <feature id="SketchSplit" title="Split"
602                tooltip="Cut selected segment arc or circle on existing coincident points"
603                icon="icons/Sketch/split.png"
604                helpfile="splitFeature.html">
605         <sketch_feature_point_selector
606             id="SelectedObject"
607             selection_attributes="SelectedObject SelectedPoint PreviewObject PreviewPoint"
608             label="Segment"
609             tooltip="Select segment for split"
610             shape_types="edge"
611             use_external="false">
612           <validator id="SketchPlugin_SplitValidator"/>
613         </sketch_feature_point_selector>
614         <validator id="PartSet_SplitSelection"/>
615       </feature>
616       <!--  SketchTrim  -->
617       <feature id="SketchTrim" title="Trim"
618                tooltip="Trim selected segment arc or circle on intersection points nearest to the graphic selection"
619                icon="icons/Sketch/trim.png"
620                helpfile="trimFeature.html">
621         <sketch_feature_point_selector
622             id="SelectedObject"
623             selection_attributes="SelectedObject SelectedPoint PreviewObject PreviewPoint"
624             label="Segment"
625             tooltip="Select segment for trim"
626             shape_types="edge"
627             use_external="false">
628           <validator id="SketchPlugin_TrimValidator"/>
629         </sketch_feature_point_selector>
630         <validator id="PartSet_SplitSelection"/>
631       </feature>
632     </group>
633
634     <group id="Projection">
635       <!-- Projected feature -->
636       <feature
637         id="SketchProjection"
638         title="Projection"
639         tooltip="Project feature onto sketch plane"
640         icon="icons/Sketch/projection.png"
641         helpfile="projectionFeature.html">
642         <sketch_shape_selector
643               id="ExternalFeature"
644               label="Object"
645               tooltip="Select external edge or vertex."
646               shape_types="edge vertex"
647               use_external="true"
648               can_create_external="false"
649               use_sketch_plane="false">
650           <validator id="SketchPlugin_ProjectionValidator"/>
651         </sketch_shape_selector>
652         <boolvalue id="IncludeToResult" label="Include into the sketch result" default="true" tooltip="Include projected feature into the sketch result"
653                    change_visual_attributes="true"/>
654         <validator id="PartSet_ProjectionSelection"/>
655       </feature>
656
657       <!-- Intersection Point -->
658       <feature
659         id="SketchIntersectionPoint"
660         title="Intersection"
661         tooltip="Intersect edge with sketch plane"
662         icon="icons/Sketch/intersection.png"
663         helpfile="intersectionFeature.html">
664         <sketch_shape_selector
665               id="ExternalFeature"
666               label="Object"
667               tooltip="Select external edge."
668               shape_types="edge"
669               use_external="true"
670               can_create_external="false"
671               use_sketch_plane="false">
672           <validator id="SketchPlugin_IntersectionValidator"/>
673         </sketch_shape_selector>
674         <boolvalue id="IncludeToResult" label="Include into the sketch result" default="true" tooltip="Include projected feature into the sketch result"
675                    change_visual_attributes="true"/>
676         <validator id="PartSet_IntersectionSelection"/>
677       </feature>
678     </group>
679
680     <group id="Replication">
681       <!--  SketchConstraintMirror  -->
682       <feature
683         id="SketchConstraintMirror"
684         title="Mirror copy" icon="icons/Sketch/mirror.png"
685         tooltip="Create constraint, mirroring group of objects"
686         helpfile="mirrorFeature.html">
687         <sketch_shape_selector id="ConstraintEntityA"
688             label="Mirror line" tooltip="Select mirror line" shape_types="edge">
689           <validator id="GeomValidators_ShapeType" parameters="line"/>
690           <validator id="SketchPlugin_ReplicationReference" parameters="ConstraintEntityC"/>
691         </sketch_shape_selector>
692         <sketch_multi_selector id="ConstraintMirrorList"
693             label="Segments"
694             tooltip="Select list of objects to be mirrored"
695             shape_types="Edges"
696             use_external="true"
697             greed ="true">
698           <validator id="SketchPlugin_MirrorAttr" />
699         </sketch_multi_selector>
700         <validator id="PartSet_MultyTranslationSelection" />
701       </feature>
702
703       <!--  SketchMultiTranslation  -->
704       <feature
705         id="SketchMultiTranslation"
706         title="Linear copy" icon="icons/Sketch/translate.png"
707         tooltip="Copy objects and move"
708         helpfile="translationFeature.html">
709         <sketch_multi_selector id="MultiTranslationList"
710             label="Segments"
711             tooltip="Select list of objects to be translated"
712             shape_types="Edges"
713             use_external="true"
714             greed ="true">
715           <validator id="SketchPlugin_CopyValidator" />
716         </sketch_multi_selector>
717         <toolbox id="ValueType">
718           <box id="SingleValue" title="Single value" icon="icons/Sketch/translate_32x32.png">
719             <groupbox title="Direction">
720               <sketch_shape_selector
721                     id="MultiTranslationStartPoint"
722                     label="Start point"
723                     tooltip="Start point of translation"
724                     shape_types="vertex">
725                 <validator id="PartSet_DifferentObjects"/>
726                 <validator id="GeomValidators_ShapeType" parameters="vertex"/>
727                 <validator id="SketchPlugin_ReplicationReference" parameters="ConstraintEntityB"/>
728               </sketch_shape_selector>
729               <sketch_shape_selector
730                     id="MultiTranslationEndPoint"
731                     label="End point"
732                     tooltip="Final point of translation"
733                     shape_types="vertex">
734                 <validator id="PartSet_DifferentObjects"/>
735                 <validator id="GeomValidators_ShapeType" parameters="vertex"/>
736                 <validator id="SketchPlugin_ReplicationReference" parameters="ConstraintEntityB"/>
737               </sketch_shape_selector>
738             </groupbox>
739           </box>
740           <box id="FullValue" title="Full value" icon="icons/Sketch/translate_full_32x32.png">
741             <groupbox title="Direction">
742               <sketch_shape_selector
743                     id="MultiTranslationStartPoint"
744                     label="Start point"
745                     tooltip="Start point of translation"
746                     shape_types="vertex">
747                 <validator id="PartSet_DifferentObjects"/>
748                 <validator id="GeomValidators_ShapeType" parameters="vertex"/>
749                 <validator id="SketchPlugin_ReplicationReference" parameters="ConstraintEntityB"/>
750               </sketch_shape_selector>
751               <sketch_shape_selector
752                     id="MultiTranslationEndPoint"
753                     label="End point"
754                     tooltip="Final point of translation"
755                     shape_types="vertex">
756                 <validator id="PartSet_DifferentObjects"/>
757                 <validator id="GeomValidators_ShapeType" parameters="vertex"/>
758                 <validator id="SketchPlugin_ReplicationReference" parameters="ConstraintEntityB"/>
759               </sketch_shape_selector>
760             </groupbox>
761           </box>
762         </toolbox>
763         <integervalue id="MultiTranslationObjects"
764             label="Total number of objects"
765             tooltip="Total number of objects"
766             default="2" min="2" use_reset="false">
767           <validator id="GeomValidators_Positive" parameters="1"/>
768         </integervalue>
769         <validator id="PartSet_MultyTranslationSelection" />
770       </feature>
771
772       <!--  SketchMultiRotation  -->
773       <feature
774         id="SketchMultiRotation"
775         title="Angular copy" icon="icons/Sketch/rotate.png"
776         tooltip="Copy objects and rotate"
777         helpfile="rotationFeature.html">
778         <sketch_multi_selector id="MultiRotationList"
779             label="Segments"
780             tooltip="Select list of objects to be rotated"
781             shape_types="Edges"
782             use_external="true"
783             greed ="true">
784           <validator id="SketchPlugin_CopyValidator" />
785         </sketch_multi_selector>
786         <sketch_shape_selector
787               id="MultiRotationCenter"
788               label="Center of rotation"
789               tooltip="Center of rotation"
790               shape_types="vertex">
791           <validator id="GeomValidators_ShapeType" parameters="vertex"/>
792           <validator id="SketchPlugin_ReplicationReference" parameters="ConstraintEntityB"/>
793         </sketch_shape_selector>
794         <toolbox id="AngleType">
795           <box id="FullAngle" title="Full angle" icon="icons/Sketch/angle_up_full_32x32.png">
796             <doublevalue id="MultiRotationAngle"
797                          label="Angle"
798                          icon="icons/Sketch/angle.png"
799                          tooltip="Rotation angle"
800                          default="360" min="0" max="360"
801                          use_reset="false">
802               <validator id="SketchPlugin_MultiRotationAngleValidator" />
803             </doublevalue>
804             <boolvalue id="MultiRotationReversed"
805                        label="Reversed"
806                        tooltip="Reverse angular copy"
807                        default="false"
808                        obligatory="0"/>
809           </box>
810           <box id="SingleAngle" title="Single angle" icon="icons/Sketch/angle_up_32x32.png">
811             <doublevalue id="MultiRotationAngle"
812                          label="Angle"
813                          icon="icons/Sketch/angle.png"
814                          tooltip="Rotation angle"
815                          default="90" min="0" max="360"
816                          use_reset="false">
817               <validator id="SketchPlugin_MultiRotationAngleValidator" />
818             </doublevalue>
819             <boolvalue id="MultiRotationReversed"
820                        label="Reversed"
821                        tooltip="Reverse angular copy"
822                        default="false"
823                        obligatory="0"/>
824           </box>
825         </toolbox>
826         <integervalue id="MultiRotationObjects"
827             label="Total number of objects"
828             tooltip="Total number of objects"
829             default="4" min="2" use_reset="false">
830           <validator id="GeomValidators_Positive" parameters="1"/>
831         </integervalue>
832         <validator id="PartSet_MultyTranslationSelection" />
833       </feature>
834     </group>
835
836     <group id="Dimensional constraints">
837       <!--  SketchConstraintDistance  -->
838       <feature
839         id="SketchConstraintDistance"
840         title="Distance"
841         tooltip="Set fixed distance from a point to an object"
842         icon="icons/Sketch/distance.png"
843         helpfile="distanceFeature.html">
844         <label title="Select objects for distance definition. Following objects can be accepted: point, line or arc end point, center of circle or arc."/>
845         <sketch_shape_selector
846               id="ConstraintEntityA"
847               label="First object"
848               tooltip="Select point, line end point, line, center of circle or arc."
849               shape_types="edge vertex">
850           <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityB"/>
851           <validator id="PartSet_DifferentObjects"/>
852           <validator id="GeomValidators_ShapeType" parameters="vertex,line"/>
853         </sketch_shape_selector>
854         <sketch_shape_selector
855           id="ConstraintEntityB"
856           label="Second object"
857           tooltip="Select point, line end point, line, center of circle or arc."
858           shape_types="edge vertex">
859           <validator id="PartSet_DifferentObjects"/>
860           <validator id="SketchPlugin_DistanceAttr" parameters="ConstraintEntityA"/>
861           <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityA"/>
862           <validator id="GeomValidators_ShapeType" parameters="vertex,line"/>
863         </sketch_shape_selector>
864         <sketch-2dpoint_flyout_selector id="ConstraintFlyoutValuePnt"  default="computed" internal="1" obligatory="0"/>
865
866         <doublevalue_editor label="Value" tooltip="Distance" id="ConstraintValue" default="computed" min="0">
867           <validator id="GeomValidators_Positive" parameters="-1.e-10"/>
868         </doublevalue_editor>
869
870         <module_choice id="LocationType"
871           widget_type="radiobuttons"
872           buttons_dir="horizontal"
873           label="Text location"
874           tooltip="Relative location of the text"
875           string_list="Left Automatic Right"
876           icons_list="icons/Sketch/location_left.png icons/Sketch/location_automatic.png icons/Sketch/location_right.png"
877           default="1"
878           />
879
880         <boolvalue id="SignedDistance" label="Keep orientation" default="true" tooltip="Keep distance orientation" obligatory="0"/>
881         <validator id="PartSet_DistanceSelection"/>
882       </feature>
883
884       <!--  SketchConstraintDistanceHorizontal  -->
885       <feature
886         id="SketchConstraintDistanceHorizontal"
887         title="Horizontal Distance"
888         tooltip="Set horizontal distance between two points"
889         icon="icons/Sketch/distance_h.png"
890         helpfile="horizontalDistFeature.html">
891         <label title="Select points for distance definition."/>
892         <sketch_shape_selector
893               id="ConstraintEntityA"
894               label="First point"
895               tooltip="Select point."
896               shape_types="vertex">
897           <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityB"/>
898           <validator id="PartSet_DifferentObjects"/>
899           <validator id="GeomValidators_ShapeType" parameters="vertex"/>
900         </sketch_shape_selector>
901         <sketch_shape_selector
902           id="ConstraintEntityB"
903           label="Second point"
904           tooltip="Select point."
905           shape_types="vertex">
906           <validator id="PartSet_DifferentObjects"/>
907           <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityA"/>
908           <validator id="GeomValidators_ShapeType" parameters="vertex"/>
909         </sketch_shape_selector>
910         <sketch-2dpoint_flyout_selector id="ConstraintFlyoutValuePnt"  default="computed" internal="1" obligatory="0"/>
911
912         <doublevalue_editor label="Value" tooltip="Distance" id="DistanceValue" default="computed" min="0">
913           <validator id="GeomValidators_Positive" parameters="-1.e-10"/>
914         </doublevalue_editor>
915
916         <module_choice id="LocationType"
917           widget_type="radiobuttons"
918           buttons_dir="horizontal"
919           label="Text location"
920           tooltip="Relative location of the text"
921           string_list="Left Automatic Right"
922           icons_list="icons/Sketch/location_left.png icons/Sketch/location_automatic.png icons/Sketch/location_right.png"
923           default="1"
924           />
925
926         <validator id="PartSet_DistanceSelection"/>
927       </feature>
928
929       <!--  SketchConstraintDistanceVertical  -->
930       <feature
931         id="SketchConstraintDistanceVertical"
932         title="Vertical Distance"
933         tooltip="Set vertical distance between two points"
934         icon="icons/Sketch/distance_v.png"
935         helpfile="verticalDistFeature.html">
936         <label title="Select points for distance definition."/>
937         <sketch_shape_selector
938               id="ConstraintEntityA"
939               label="First point"
940               tooltip="Select point."
941               shape_types="vertex">
942           <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityB"/>
943           <validator id="PartSet_DifferentObjects"/>
944           <validator id="GeomValidators_ShapeType" parameters="vertex"/>
945         </sketch_shape_selector>
946         <sketch_shape_selector
947           id="ConstraintEntityB"
948           label="Second point"
949           tooltip="Select point."
950           shape_types="vertex">
951           <validator id="PartSet_DifferentObjects"/>
952           <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityA"/>
953           <validator id="GeomValidators_ShapeType" parameters="vertex"/>
954         </sketch_shape_selector>
955         <sketch-2dpoint_flyout_selector id="ConstraintFlyoutValuePnt"  default="computed" internal="1" obligatory="0"/>
956
957         <doublevalue_editor label="Value" tooltip="Distance" id="DistanceValue" default="computed" min="0">
958           <validator id="GeomValidators_Positive" parameters="-1.e-10"/>
959         </doublevalue_editor>
960
961         <module_choice id="LocationType"
962           widget_type="radiobuttons"
963           buttons_dir="horizontal"
964           label="Text location"
965           tooltip="Relative location of the text"
966           string_list="Left Automatic Right"
967           icons_list="icons/Sketch/location_left.png icons/Sketch/location_automatic.png icons/Sketch/location_right.png"
968           default="1"
969           />
970
971         <validator id="PartSet_DistanceSelection"/>
972       </feature>
973
974       <!--  SketchConstraintLength  -->
975       <feature id="SketchConstraintLength" title="Length" tooltip="Set fixed length of a line segment" icon="icons/Sketch/length.png"
976                helpfile="lengthFeature.html">
977         <label title="Select a line on which to calculate length" tooltip="Select a line on which to calculate length"/>
978         <shape_selector id="ConstraintEntityA" label="Line" tooltip="Select a line" shape_types="edge" >
979           <validator id="GeomValidators_ShapeType" parameters="line"/>
980           <validator id="SketchPlugin_SketchFeatureValidator"/>
981         </shape_selector>
982         <sketch-2dpoint_flyout_selector id="ConstraintFlyoutValuePnt" default="computed" internal="1" obligatory="0"/>
983         <doublevalue_editor label="Value" tooltip="Length" id="ConstraintValue" default="computed">
984           <validator id="GeomValidators_Positive"/>
985         </doublevalue_editor>
986         <module_choice id="LocationType"
987           widget_type="radiobuttons"
988           buttons_dir="horizontal"
989           label="Text location"
990           tooltip="Relative location of the text"
991           string_list="Left Automatic Right"
992           icons_list="icons/Sketch/location_left.png icons/Sketch/location_automatic.png icons/Sketch/location_right.png"
993           default="1"
994           />
995         <validator id="PartSet_LengthSelection"/>
996       </feature>
997
998       <!--  SketchConstraintAngle  -->
999       <feature id="SketchConstraintAngle" title="Angle" tooltip="Set fixed angle between two line segments" icon="icons/Sketch/angle_constr.png"
1000                helpfile="angleFeature.html">
1001         <sketch_feature_point_selector
1002             id="ConstraintEntityA"
1003             selection_attributes="ConstraintEntityA SelectedPointA"
1004             label="Line 1"
1005             tooltip="Select a line"
1006             shape_types="edge"
1007             use_external="true">
1008           <validator id="GeomValidators_ShapeType" parameters="line"/>
1009           <validator id="PartSet_DifferentObjects"/>
1010           <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityB"/>
1011         </sketch_feature_point_selector>
1012         <sketch_feature_point_selector
1013             id="ConstraintEntityB"
1014             selection_attributes="ConstraintEntityB SelectedPointB"
1015             label="Line 2"
1016             tooltip="Select a line"
1017             shape_types="edge"
1018             use_external="true">
1019           <validator id="GeomValidators_ShapeType" parameters="line"/>
1020           <validator id="PartSet_DifferentObjects"/>
1021           <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityA"/>
1022         </sketch_feature_point_selector>
1023         <sketch-2dpoint_flyout_selector id="ConstraintFlyoutValuePnt"  default="computed" internal="1" obligatory="0"/>
1024         <doublevalue_editor label="Value" tooltip="Angle" id="AngleValue" default="computed" min="0" max="360" />
1025         <validator id="PartSet_AngleSelection"/>
1026         <module_choice id="AngleType"
1027           widget_type="radiobuttons"
1028           buttons_dir="horizontal"
1029           label="Angle type"
1030           tooltip="Type of angle"
1031           string_list="Direct Complementary Additional"
1032           icons_list="icons/Sketch/angle_direct.png icons/Sketch/angle_complementary.png icons/Sketch/angle_backward.png"
1033           default="0"
1034           />
1035
1036         <module_choice id="LocationType"
1037           widget_type="radiobuttons"
1038           buttons_dir="horizontal"
1039           label="Text location"
1040           tooltip="Relative location of the text"
1041           string_list="Left Automatic Right"
1042           icons_list="icons/Sketch/location_left.png icons/Sketch/location_automatic.png icons/Sketch/location_right.png"
1043           default="1"
1044           />
1045
1046       </feature>
1047
1048       <!--  SketchConstraintRadius  -->
1049       <feature id="SketchConstraintRadius" title="Radius" tooltip="Set fixed radius of a circle or an arc" icon="icons/Sketch/radius_constr.png"
1050                helpfile="radiusFeature.html">
1051         <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"/>
1052         <shape_selector id="ConstraintEntityA" label="Circle or Arc" tooltip="Select a circle or an arc"
1053             shape_types="edge">
1054           <validator id="GeomValidators_ShapeType" parameters="circle"/>
1055         </shape_selector>
1056         <sketch-2dpoint_flyout_selector id="ConstraintFlyoutValuePnt"  default="computed" internal="1" obligatory="0"/>
1057         <doublevalue_editor label="Value" tooltip="Radius" id="ConstraintValue" default="computed">
1058           <validator id="GeomValidators_Positive"/>
1059         </doublevalue_editor>
1060
1061         <module_choice id="LocationType"
1062           widget_type="radiobuttons"
1063           buttons_dir="horizontal"
1064           label="Text location"
1065           tooltip="Relative location of the text"
1066           string_list="Left Automatic Right"
1067           icons_list="icons/Sketch/location_left.png icons/Sketch/location_automatic.png icons/Sketch/location_right.png"
1068           default="1"
1069           />
1070
1071         <validator id="PartSet_RadiusSelection"/>
1072       </feature>
1073
1074     </group>
1075
1076     <group id="Geometrical constraints">
1077
1078       <!--  SketchConstraintHorizontal  -->
1079       <feature id="SketchConstraintHorizontal" title="Horizontal" tooltip="Create constraint defining horizontal line" icon="icons/Sketch/horisontal.png"
1080                helpfile="horizontalFeature.html">
1081         <sketch_shape_selector id="ConstraintEntityA"
1082             label="Line" tooltip="Select a line" shape_types="edge" use_external="false">
1083           <validator id="GeomValidators_ShapeType" parameters="line"/>
1084           <validator id="SketchPlugin_HasNoConstraint" parameters="SketchConstraintHorizontal,SketchConstraintVertical"/>
1085         </sketch_shape_selector>
1086         <validator id="PartSet_HVDirSelection"/>
1087       </feature>
1088
1089       <!--  SketchConstraintVertical  -->
1090       <feature id="SketchConstraintVertical" title="Vertical" tooltip="Create constraint defining vertical line" icon="icons/Sketch/vertical.png"
1091                helpfile="verticalFeature.html">
1092         <sketch_shape_selector id="ConstraintEntityA"
1093             label="Line" tooltip="Select a line" shape_types="edge" use_external="false">
1094           <validator id="GeomValidators_ShapeType" parameters="line"/>
1095           <validator id="SketchPlugin_HasNoConstraint" parameters="SketchConstraintHorizontal,SketchConstraintVertical"/>
1096         </sketch_shape_selector>
1097         <validator id="PartSet_HVDirSelection"/>
1098       </feature>
1099
1100       <!--  SketchConstraintRigid  -->
1101       <feature id="SketchConstraintRigid" title="Fixed" tooltip="Fix an object" icon="icons/Sketch/fixed.png"
1102                helpfile="rigidFeature.html">
1103         <sketch_shape_selector id="ConstraintEntityA" label="Object"
1104                         tooltip="Select point, curve or its boundary point."
1105                         shape_types="edge vertex">
1106           <validator id="GeomValidators_ShapeType" parameters="vertex,edge"/>
1107           <validator id="SketchPlugin_NotFixed"/>
1108         </sketch_shape_selector>
1109         <validator id="PartSet_RigidSelection"/>
1110       </feature>
1111
1112       <!--  SketchConstraintParallel  -->
1113       <feature id="SketchConstraintParallel" title="Parallel" tooltip="Create constraint defining two parallel lines"
1114                icon="icons/Sketch/parallel.png" helpfile="parallelFeature.html">
1115         <sketch_shape_selector id="ConstraintEntityA"
1116             label="First line" tooltip="Select a line" shape_types="edge">
1117           <validator id="GeomValidators_ShapeType" parameters="line"/>
1118           <validator id="PartSet_DifferentObjects"/>
1119           <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityB"/>
1120         </sketch_shape_selector>
1121
1122         <sketch_shape_selector id="ConstraintEntityB" label="Second line" tooltip="Select a line"
1123             shape_types="edge">
1124             <validator id="GeomValidators_ShapeType" parameters="line"/>
1125             <validator id="PartSet_DifferentObjects"/>
1126             <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityA"/>
1127         </sketch_shape_selector>
1128         <validator id="PartSet_ParallelSelection"/>
1129       </feature>
1130
1131       <!--  SketchConstraintPerpendicular  -->
1132       <feature id="SketchConstraintPerpendicular" title="Perpendicular"
1133                tooltip="Create constraint defining two orthogonal objects"
1134                icon="icons/Sketch/perpendicular.png"
1135                helpfile="perpendicularFeature.html">
1136         <sketch_shape_selector id="ConstraintEntityA"
1137             label="First object" tooltip="Select line or arc"
1138             shape_types="edge">
1139           <validator id="PartSet_DifferentObjects"/>
1140           <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityB"/>
1141           <validator id="SketchPlugin_PerpendicularAttr" parameters="ConstraintEntityB"/>
1142           <validator id="GeomValidators_ShapeType" parameters="edge"/>
1143         </sketch_shape_selector>
1144
1145         <sketch_shape_selector id="ConstraintEntityB"
1146             label="Second object" tooltip="Select line or arc"
1147             shape_types="edge">
1148           <validator id="PartSet_DifferentObjects"/>
1149           <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityA"/>
1150           <validator id="SketchPlugin_PerpendicularAttr" parameters="ConstraintEntityA"/>
1151           <validator id="GeomValidators_ShapeType" parameters="edge"/>
1152         </sketch_shape_selector>
1153         <validator id="PartSet_PerpendicularSelection"/>
1154       </feature>
1155
1156       <!--  SketchConstraintTangent  -->
1157       <feature id="SketchConstraintTangent" title="Tangent" tooltip="Create constraint defining tangency of two segments with common coincident point" icon="icons/Sketch/tangent.png"
1158                helpfile="tangentFeature.html">
1159         <sketch_shape_selector id="ConstraintEntityA"
1160             label="First object" tooltip="Select line or arc" shape_types="edge">
1161           <validator id="SketchPlugin_TangentAttr" parameters="ConstraintEntityB"/>
1162           <validator id="PartSet_DifferentObjects"/>
1163         </sketch_shape_selector>
1164
1165         <sketch_shape_selector id="ConstraintEntityB"
1166             label="Second object" tooltip="Select line or arc" shape_types="edge">
1167           <validator id="SketchPlugin_TangentAttr" parameters="ConstraintEntityA"/>
1168           <validator id="PartSet_DifferentObjects"/>
1169         </sketch_shape_selector>
1170         <validator id="PartSet_TangentSelection"/>
1171       </feature>
1172
1173       <!--  SketchConstraintCoincidence  -->
1174       <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"
1175                helpfile="coincedenceFeature.html">
1176         <sketch_shape_selector id="ConstraintEntityA" label="First object" tooltip="Select a first object" shape_types="vertex edge">
1177           <validator id="PartSet_DifferentObjects"/>
1178           <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityB"/>
1179         </sketch_shape_selector>
1180         <sketch_shape_selector id="ConstraintEntityB" label="Second object" tooltip="Select a second object" shape_types="vertex edge">
1181           <validator id="PartSet_DifferentObjects"/>
1182           <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityA"/>
1183           <validator id="SketchPlugin_CoincidenceAttr" parameters="ConstraintEntityA"/>
1184         </sketch_shape_selector>
1185         <validator id="PartSet_CoincidentSelection"/>
1186       </feature>
1187       <!--  SketchConstraintCoincidenceInternal  -->
1188       <feature id="SketchConstraintCoincidenceInternal" title="Internal Coincidence" tooltip="Internal coincidence" icon="icons/Sketch/coincedence.png"
1189                helpfile="coincedenceFeature.html" internal="1">
1190         <sketch_shape_selector id="ConstraintEntityA" label="First object" tooltip="Select a first object" shape_types="vertex">
1191           <validator id="PartSet_DifferentObjects"/>
1192           <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityB"/>
1193         </sketch_shape_selector>
1194         <sketch_shape_selector id="ConstraintEntityB" label="Second object" tooltip="Select a second object" shape_types="vertex">
1195           <validator id="PartSet_DifferentObjects"/>
1196           <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityA"/>
1197           <validator id="SketchPlugin_CoincidenceAttr" parameters="ConstraintEntityA"/>
1198         </sketch_shape_selector>
1199         <validator id="PartSet_CoincidentSelection"/>
1200       </feature>
1201
1202       <!--  SketchConstraintMiddle  -->
1203       <feature id="SketchConstraintMiddle" title="Middle point" tooltip="Create constraint for setting middle point on a line"
1204                icon="icons/Sketch/middlepoint.png"
1205                helpfile="middleFeature.html">
1206         <sketch_shape_selector id="ConstraintEntityA" label="First object" tooltip="Select a first object" shape_types="vertex edge">
1207           <validator id="PartSet_DifferentObjects"/>
1208           <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityB"/>
1209           <validator id="SketchPlugin_MiddlePointAttr" parameters="ConstraintEntityB"/>
1210         </sketch_shape_selector>
1211         <sketch_shape_selector id="ConstraintEntityB" label="Second object" tooltip="Select a second object" shape_types="vertex edge">
1212           <validator id="PartSet_DifferentObjects"/>
1213           <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityA"/>
1214           <validator id="SketchPlugin_MiddlePointAttr" parameters="ConstraintEntityA"/>
1215         </sketch_shape_selector>
1216         <validator id="PartSet_MiddlePointSelection"/>
1217       </feature>
1218
1219       <!--  SketchConstraintEqual  -->
1220       <feature id="SketchConstraintEqual" title="Equal"
1221         tooltip="Create constraint defining equal lengths of two lines or line and arc or equal radiuses of two arcs or two circles or arc and circle"
1222         icon="icons/Sketch/equal.png"
1223                helpfile="equalFeature.html">
1224         <sketch_shape_selector id="ConstraintEntityA"
1225             label="First object" tooltip="Select edge" shape_types="edge">
1226           <validator id="PartSet_DifferentObjects"/>
1227           <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityB"/>
1228         </sketch_shape_selector>
1229
1230         <sketch_shape_selector id="ConstraintEntityB"
1231             label="Second object" tooltip="Select edge" shape_types="edge">
1232           <validator id="SketchPlugin_EqualAttr" parameters="ConstraintEntityA"/>
1233           <validator id="PartSet_DifferentObjects"/>
1234           <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityA"/>
1235         </sketch_shape_selector>
1236         <validator id="PartSet_EqualSelection"/>
1237       </feature>
1238
1239       <!--  SketchConstraintCollinear  -->
1240       <feature id="SketchConstraintCollinear" title="Collinear" tooltip="Create constraint defining collinearity of two lines"
1241                icon="icons/Sketch/collinear.png"
1242                helpfile="collinearFeature.html">
1243         <sketch_shape_selector id="ConstraintEntityA"
1244             label="First line" tooltip="Select a line" shape_types="edge">
1245           <validator id="GeomValidators_ShapeType" parameters="line"/>
1246           <validator id="PartSet_DifferentObjects"/>
1247         </sketch_shape_selector>
1248
1249         <sketch_shape_selector id="ConstraintEntityB"
1250             label="Second line" tooltip="Select a line" shape_types="edge">
1251           <validator id="GeomValidators_ShapeType" parameters="line"/>
1252           <validator id="PartSet_DifferentObjects"/>
1253         </sketch_shape_selector>
1254         <validator id="PartSet_CollinearSelection"/>
1255       </feature>
1256     </group>
1257   </workbench>
1258 </plugin>