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