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