]> SALOME platform Git repositories - modules/shaper.git/blob - src/SketchPlugin/plugin-Sketch.xml
Salome HOME
89b6754ae5e2f305f54c5c73cdcb06ca0b021b70
[modules/shaper.git] / src / SketchPlugin / plugin-Sketch.xml
1 <!-- Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
2
3 <plugin>
4   <workbench id="Sketch">
5     <group id="Linear geometry">
6       <feature
7         id="Sketch"
8         nested="SketchPoint SketchIntersectionPoint SketchLine SketchCircle SketchArc SketchRectangle SketchProjection SketchConstraintLength SketchConstraintRadius SketchConstraintDistance SketchConstraintParallel SketchConstraintPerpendicular SketchConstraintRigid SketchConstraintHorizontal SketchConstraintVertical SketchConstraintEqual SketchConstraintTangent SketchConstraintFillet SketchConstraintCoincidence SketchConstraintMirror SketchConstraintAngle SketchMultiRotation SketchMultiTranslation SketchConstraintCollinear SketchConstraintMiddle"
9         when_nested="accept abort"
10         title="Sketch"
11         tooltip="Create sketch"
12         icon="icons/Sketch/sketch.png">
13         <sketch-start-label id="External" title="Select a plane on which to create a sketch" tooltip="Select a plane on which to create a sketch">
14           <validator id="GeomValidators_Face" parameters="plane"/>
15         </sketch-start-label>
16         <label id="SolverDOF"/>
17         <label id="SolverError" styleSheet="color : red; font : bold"/>
18         <validator id="SketchPlugin_SolverErrorValidator"/>
19       </feature>
20
21       <!-- SketchPoint -->
22       <feature id="SketchPoint" title="Point" tooltip="Create point" icon="icons/Sketch/point.png">
23         <sketch-2dpoint_selector id="PointCoordindates" accept_expressions="0" title="Point" tooltip="Point coordinates"
24                                  enable_value="false"/>
25         <boolvalue id="Auxiliary" label="Auxiliary" default="false" tooltip="Construction element" obligatory="0"/>
26       </feature>
27       
28       <!-- SketchLine -->
29       <feature id="SketchLine" title="Line" tooltip="Create line" icon="icons/Sketch/line.png">
30         <sketch-2dpoint_selector id="StartPoint" accept_expressions="0" title="Start point" tooltip="Start point coordinates"
31                                  enable_value="false"/>
32         <sketch-2dpoint_selector id="EndPoint" accept_expressions="0" title="End point" tooltip="End point coordinates"
33                                  enable_value="false"/>
34         <boolvalue id="Auxiliary" label="Auxiliary" default="false" tooltip="Construction element" obligatory="0"/>
35         <validator id="GeomValidators_Different" parameters="StartPoint,EndPoint"/>
36       </feature>
37     </group>
38     <group id="Circular geometry">
39       <!-- SketchCircle -->
40       <feature 
41         id="SketchCircle"
42         title="Circle"
43         tooltip="Create circle"
44         icon="icons/Sketch/circle.png">
45         <toolbox id="CircleType">
46           <box id="CenterRadius" title="Center and radius" icon="icons/Sketch/circle_pt_rad_32x32.png">
47             <sketch-2dpoint_selector id="CircleCenter" accept_expressions="0" title="Center" tooltip="Center coordinates"
48                                      enable_value="false"/>
49             <point2ddistance id="CircleRadius" accept_expressions="0" first_point="CircleCenter" label="Radius:" min="0" step="1.0"
50                              default="0" icon="icons/Sketch/radius.png" tooltip="Set radius"
51                              enable_value="false">
52               <validator id="GeomValidators_Positive"/>
53             </point2ddistance>
54           </box>
55           <box id="ThreePoints" title="Three points" icon="icons/Sketch/circle_3pt_32x32.png">
56             <sketch-2dpoint_selector id="FirstPoint" accept_expressions="0" title="First point" tooltip="First point"
57                                      enable_value="false"/>
58             <sketch-2dpoint_selector id="SecondPoint" accept_expressions="0" title="Second point" tooltip="Second point"
59                                      enable_value="false"/>
60             <sketch-2dpoint_selector id="ThirdPoint" accept_expressions="0" title="Third point" tooltip="Third point"
61                                      enable_value="false"/>
62           </box>
63         </toolbox>
64         <boolvalue id="Auxiliary" label="Auxiliary" default="false" tooltip="Construction element" obligatory="0"/>
65       </feature>
66
67       <!-- SketchArc -->
68       <feature
69         id="SketchArc"
70         title="Arc"
71         tooltip="Create arc"
72         icon="icons/Sketch/arc.png">
73         <toolbox id="ArcType">
74           <box id="CenterStartEnd" title="Center and two points" icon="icons/Sketch/arc_base_32x32.png">
75             <sketch-2dpoint_selector id="ArcCenter" accept_expressions="0" title="Center" tooltip="Center of a circle"
76                                      enable_value="false"/>
77             <sketch-2dpoint_selector id="ArcStartPoint" accept_expressions="0" title="Start point" tooltip="Start point"
78                                      enable_value="false"/>
79             <sketch-2dpoint_selector id="ArcEndPoint" accept_expressions="0" title="End point" tooltip="End point"
80                                      enable_value="false"/>
81             <validator id="GeomValidators_Different" parameters="ArcCenter,ArcStartPoint,ArcEndPoint"/>
82           </box>
83           <box id="ThreePoints" title="Three points on arc" icon="icons/Sketch/arc_3pt_32x32.png">
84             <sketch-2dpoint_selector id="ArcStartPoint" accept_expressions="0" title="Start point" tooltip="Start point"
85                                      enable_value="false"/>
86             <sketch-2dpoint_selector id="ArcEndPoint" accept_expressions="0" title="End point" tooltip="End point"
87                                      enable_value="false"/>
88             <sketch-2dpoint_selector id="ArcPassedPoint" accept_expressions="0" title="Passed point" tooltip="Passed point"
89                                      enable_value="false"/>
90             <validator id="GeomValidators_Different" parameters="ArcStartPoint,ArcEndPoint,ArcPassedPoint"/>
91           </box>
92           <box id="Tangent" title="Tangent with edge" icon="icons/Sketch/arc_tang_32x32.png">
93             <sketch_shape_selector id="ArcTangentPoint" label="Tangent point" tooltip="Select point on line" shape_types="vertex">
94               <validator id="SketchPlugin_ArcTangentPoint" parameters="" />
95             </sketch_shape_selector>
96             <sketch-2dpoint_selector id="ArcEndPoint" accept_expressions="0" title="End point" tooltip="End point"
97                                      enable_value="false"/>
98           </box>
99         </toolbox>
100         <doublevalue id="ArcRadius" accept_expressions="0" label="Radius:" default="computed" icon="icons/Sketch/radius.png"
101                      tooltip="Set radius" obligatory="0" enable_value="false">
102           <validator id="GeomValidators_Positive"/>
103         </doublevalue>
104         <doublevalue id="ArcAngle" label="Angle:" icon="icons/Sketch/angle.png" tooltip="Set angle" default="90" use_reset="false" obligatory="0"
105                      enable_value="false"/>
106         <boolvalue id="Auxiliary" label="Auxiliary" default="false" tooltip="Construction element" obligatory="0"
107                    enable_value="false"/>
108       </feature>
109
110       <!--  SketchConstraintFillet  -->
111       <feature id="SketchConstraintFillet" title="Fillet" tooltip="Create constraint defining fillet between two objects" icon="icons/Sketch/fillet.png">
112         <!--<sketch_shape_selector id="ConstraintEntityA"
113             label="Point" tooltip="Select point for fillet (should be shared by two entities only)" shape_types="vertex">
114           <validator id="SketchPlugin_FilletVertexValidator"/>
115         </sketch_shape_selector>-->
116         <sketch_multi_selector id="ConstraintEntityA"
117             label="Points:"
118             tooltip="Select points for fillets"
119             type_choice="Vertices"
120             greed = "true"
121             clear_in_neutral_point="false">
122           <validator id="SketchPlugin_FilletVertexValidator"/>
123         </sketch_multi_selector>
124         <doublevalue label="Radius" tooltip="Fillet arc radius" id="ConstraintValue" accept_expressions="0" min="0" use_reset="false"
125                      enable_value="false">
126           <validator id="GeomValidators_Positive"/>
127         </doublevalue>
128         <validator id="PartSet_FilletSelection"/>
129       </feature>
130     </group>
131
132     <group id="Projection">
133       <!-- Intersection Point -->
134       <!-- feature
135         id="SketchIntersectionPoint"
136         title="Intersection Point"
137         tooltip="Create intersection point"
138         icon="icons/Sketch/intersection_point.png">
139         <sketch_shape_selector
140               id="ExternalLine"
141               label="Edge"
142               tooltip="Select external line."
143               shape_types="edge"
144               use_external="false"
145               use_sketch_plane="false">
146           <validator id="GeomValidators_ShapeType" parameters="line"/>
147           <validator id="SketchPlugin_IntersectionValidator"/>
148         </sketch_shape_selector>
149       </feature -->
150
151       <!-- Projected feature -->
152       <feature
153         id="SketchProjection"
154         title="Projection"
155         tooltip="Project feature onto sketch plane"
156         icon="icons/Sketch/projection.png">
157         <sketch_shape_selector
158               id="ExternalFeature"
159               label="Edge"
160               tooltip="Select external edge."
161               shape_types="edge"
162               use_external="false"
163               use_sketch_plane="false">
164           <validator id="SketchPlugin_ProjectionValidator"/>
165         </sketch_shape_selector>
166       </feature>
167     </group>
168
169     <group id="Replication">
170       <!--  SketchConstraintMirror  -->
171       <feature
172         id="SketchConstraintMirror"
173         title="Mirror" icon="icons/Sketch/mirror.png"
174         tooltip="Create constraint, mirroring group of objects">
175         <sketch_shape_selector id="ConstraintEntityA"
176             label="Mirror line" tooltip="Select mirror line" shape_types="edge">
177           <validator id="GeomValidators_ShapeType" parameters="line"/>
178         </sketch_shape_selector>
179         <sketch_multi_selector id="ConstraintMirrorList"
180             label="Segments:"
181             tooltip="Select list of mirroring objects"
182             type_choice="Edges"
183             use_external="true"
184             greed ="true">
185           <validator id="SketchPlugin_MirrorAttr" />
186         </sketch_multi_selector>
187       </feature>
188
189       <!--  SketchMultiTranslation  -->
190       <feature
191         id="SketchMultiTranslation"
192         title="Translation" icon="icons/Sketch/translate.png"
193         tooltip="Multiple translation">
194         <sketch_multi_selector id="MultiTranslationList"
195             label="Segments:"
196             tooltip="Select list of translating objects"
197             type_choice="Edges"
198             use_external="true"
199             greed ="true">
200           <validator id="SketchPlugin_CopyValidator" />
201         </sketch_multi_selector>
202         <toolbox id="ValueType">
203           <box id="SingleValue" title="Single value" icon="icons/Sketch/translate_32x32.png">
204             <groupbox title="Direction">
205               <sketch_shape_selector
206                     id="MultiTranslationStartPoint"
207                     label="Start point"
208                     tooltip="Start point of translation"
209                     shape_types="vertex">
210                 <validator id="PartSet_DifferentObjects"/>
211                 <validator id="GeomValidators_ShapeType" parameters="vertex"/>
212               </sketch_shape_selector>
213               <sketch_shape_selector
214                     id="MultiTranslationEndPoint"
215                     label="End point"
216                     tooltip="Final point of translation"
217                     shape_types="vertex">
218                 <validator id="PartSet_DifferentObjects"/>
219                 <validator id="GeomValidators_ShapeType" parameters="vertex"/>
220               </sketch_shape_selector>
221             </groupbox>
222           </box>
223           <box id="FullValue" title="Full value" icon="icons/Sketch/translate_full_32x32.png">
224             <groupbox title="Direction">
225               <sketch_shape_selector
226                     id="MultiTranslationStartPoint"
227                     label="Start point"
228                     tooltip="Start point of translation"
229                     shape_types="vertex">
230                 <validator id="PartSet_DifferentObjects"/>
231                 <validator id="GeomValidators_ShapeType" parameters="vertex"/>
232               </sketch_shape_selector>
233               <sketch_shape_selector
234                     id="MultiTranslationEndPoint"
235                     label="End point"
236                     tooltip="Final point of translation"
237                     shape_types="vertex">
238                 <validator id="PartSet_DifferentObjects"/>
239                 <validator id="GeomValidators_ShapeType" parameters="vertex"/>
240               </sketch_shape_selector>
241             </groupbox>
242           </box>
243         </toolbox>
244         <integervalue id="MultiTranslationObjects"
245             label="Total number of objects"
246             tooltip="Total number of objects"
247             default="2" min="2" use_reset="false">
248           <validator id="GeomValidators_Positive"/>
249         </integervalue>
250       </feature>
251
252       <!--  SketchMultiRotation  -->
253       <feature
254         id="SketchMultiRotation"
255         title="Rotation" icon="icons/Sketch/rotate.png"
256         tooltip="Multiple rotation">
257         <sketch_multi_selector id="MultiRotationList"
258             label="Segments:"
259             tooltip="Select list of rotating objects"
260             type_choice="Edges"
261             use_external="true"
262             greed ="true">
263           <validator id="SketchPlugin_CopyValidator" />
264         </sketch_multi_selector>
265         <sketch_shape_selector
266               id="MultiRotationCenter"
267               label="Center of rotation"
268               tooltip="Center of rotation"
269               shape_types="vertex">
270           <validator id="GeomValidators_ShapeType" parameters="vertex"/>
271         </sketch_shape_selector>
272         <toolbox id="AngleType">
273           <box id="SingleAngle" title="Single angle" icon="icons/Sketch/angle_up_32x32.png">
274             <doublevalue id="MultiRotationAngle"
275                          label="Angle"
276                          icon="icons/Sketch/angle.png"
277                          tooltip="Rotation angle"
278                          default="90" use_reset="false"/>
279           </box>
280           <box id="FullAngle" title="Full angle" icon="icons/Sketch/angle_up_full_32x32.png">
281             <doublevalue id="MultiRotationAngle"
282                          label="Angle"
283                          icon="icons/Sketch/angle.png"
284                          tooltip="Rotation angle"
285                          default="90" use_reset="false"/>
286           </box>
287         </toolbox>
288         <integervalue id="MultiRotationObjects"
289             label="Total number of objects"
290             tooltip="Total number of objects"
291             default="2" min="2" use_reset="false">
292           <validator id="GeomValidators_Positive"/>
293         </integervalue>
294       </feature>
295     </group>
296
297     <group id="Dimensional constraints">
298     <!--  SketchConstraintDistance  -->
299       <feature
300         id="SketchConstraintDistance"
301         title="Distance"
302         tooltip="Set fixed distance from a point to an object"
303         icon="icons/Sketch/distance.png">
304         <label title="Select objects for distance definition. Following objects can be accepted: point, line or arc end point, center of circle or arc."/>
305         <sketch_shape_selector
306               id="ConstraintEntityA"
307               label="First object"
308               tooltip="Select point, line end point, line, center of circle or arc."
309               shape_types="edge vertex">
310           <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityB"/>
311           <validator id="PartSet_DifferentObjects"/>
312           <validator id="GeomValidators_ShapeType" parameters="vertex,line"/>
313         </sketch_shape_selector>
314         <sketch_shape_selector 
315           id="ConstraintEntityB" 
316           label="Second object" 
317           tooltip="Select point, line end point, line, center of circle or arc." 
318           shape_types="edge vertex">
319           <validator id="PartSet_DifferentObjects"/>
320           <validator id="SketchPlugin_DistanceAttr" parameters="ConstraintEntityA"/>
321           <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityA"/>
322           <validator id="GeomValidators_ShapeType" parameters="vertex,line"/>
323         </sketch_shape_selector>
324         <sketch-2dpoint_flyout_selector id="ConstraintFlyoutValuePnt"  default="computed" internal="1" obligatory="0"/>
325         
326         <doublevalue_editor label="Value" tooltip="Distance" id="ConstraintValue" default="computed" min="0">
327           <validator id="GeomValidators_Positive"/>
328         </doublevalue_editor>
329         
330         <validator id="PartSet_DistanceSelection"/>
331       </feature>
332       
333     <!--  SketchConstraintLength  -->      
334       <feature id="SketchConstraintLength" title="Length" tooltip="Set fixed length of a line segment" icon="icons/Sketch/length.png">
335         <label title="Select a line on which to calculate length" tooltip="Select a line on which to calculate length"/>
336         <shape_selector id="ConstraintEntityA" label="Line" tooltip="Select an line" shape_types="edge" >
337           <validator id="GeomValidators_ShapeType" parameters="line"/>
338         </shape_selector>
339         <sketch-2dpoint_flyout_selector id="ConstraintFlyoutValuePnt" default="computed" internal="1" obligatory="0"/>
340         <doublevalue_editor label="Value" tooltip="Length" id="ConstraintValue" default="computed">
341           <validator id="GeomValidators_Positive"/>
342         </doublevalue_editor>
343         <validator id="PartSet_LengthSelection"/>
344       </feature>
345
346       <!--  SketchConstraintAngle  -->
347       <feature id="SketchConstraintAngle" title="Angle" tooltip="Set fixed angle between two line segments" icon="icons/Sketch/angle_constr.png">
348         <sketch_shape_selector id="ConstraintEntityA" label="Line 1" tooltip="Select an line" shape_types="edge" >
349           <validator id="GeomValidators_ShapeType" parameters="line"/>
350           <validator id="PartSet_DifferentObjects"/>
351           <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityB"/>
352         </sketch_shape_selector>
353         <sketch_shape_selector id="ConstraintEntityB" label="Line 2" tooltip="Select an line" shape_types="edge" >
354           <validator id="GeomValidators_ShapeType" parameters="line"/>
355           <validator id="PartSet_DifferentObjects"/>
356           <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityA"/>
357         </sketch_shape_selector>
358         <sketch-2dpoint_flyout_selector id="ConstraintFlyoutValuePnt"  default="computed" internal="1" obligatory="0"/>
359         <doublevalue_editor label="Value" tooltip="Angle" id="AngleValue" default="computed" min="0" max="360" />
360         <validator id="PartSet_AngleSelection"/>
361         <module_choice id="AngleType"
362           widget_type="radiobuttons"
363           buttons_dir="horizontal"
364           label="Angle type"
365           tooltip="Type of angle"
366           string_list="Direct Complementary Additional"
367           icons_list="icons/Sketch/angle_direct.png icons/Sketch/angle_complementary.png icons/Sketch/angle_backward.png"
368           default="0"
369           />
370       </feature>
371
372       <!--  SketchConstraintRadius  -->
373       <feature id="SketchConstraintRadius" title="Radius" tooltip="Set fixed radius of a circle or an arc" icon="icons/Sketch/radius_constr.png">
374         <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"/>
375         <shape_selector id="ConstraintEntityA" label="Circle or Arc" tooltip="Select a circle or an arc"
376             shape_types="edge">
377           <validator id="GeomValidators_ShapeType" parameters="circle"/>
378         </shape_selector>
379         <sketch-2dpoint_flyout_selector id="ConstraintFlyoutValuePnt"  default="computed" internal="1" obligatory="0"/>
380         <doublevalue_editor label="Value" tooltip="Radius" id="ConstraintValue" default="computed">
381           <validator id="GeomValidators_Positive"/>
382         </doublevalue_editor>
383         <validator id="PartSet_RadiusSelection"/>
384       </feature>
385
386     </group>
387
388     <group id="Geometrical constraints">
389
390       <!--  SketchConstraintHorizontal  -->
391       <feature id="SketchConstraintHorizontal" title="Horizontal" tooltip="Create constraint defining horizontal line" icon="icons/Sketch/horisontal.png">
392         <sketch_shape_selector id="ConstraintEntityA"
393             label="Line" tooltip="Select a line" shape_types="edge" use_external="false">
394           <validator id="GeomValidators_ShapeType" parameters="line"/>
395         </sketch_shape_selector>
396         <validator id="PartSet_HVDirSelection"/>
397       </feature>
398
399       <!--  SketchConstraintVertical  -->
400       <feature id="SketchConstraintVertical" title="Vertical" tooltip="Create constraint defining vertical line" icon="icons/Sketch/vertical.png">
401         <sketch_shape_selector id="ConstraintEntityA"
402             label="Line" tooltip="Select a line" shape_types="edge" use_external="false">
403           <validator id="GeomValidators_ShapeType" parameters="line"/>
404         </sketch_shape_selector>
405         <validator id="PartSet_HVDirSelection"/>
406       </feature>
407
408       <!--  SketchConstraintRigid  -->
409       <feature id="SketchConstraintRigid" title="Fixed" tooltip="Fix an object" icon="icons/Sketch/fixed.png">
410         <sketch_shape_selector id="ConstraintEntityA" label="Object"
411                         tooltip="Select point, line end point, line, center of circle or arc."
412                         shape_types="edge vertex">
413           <validator id="GeomValidators_ShapeType" parameters="vertex,line,circle"/>
414           <validator id="SketchPlugin_NotFixed"/>
415         </sketch_shape_selector>
416         <validator id="PartSet_RigidSelection"/>
417       </feature>
418
419       <!--  SketchConstraintParallel  -->
420       <feature id="SketchConstraintParallel" title="Parallel" tooltip="Create constraint defining two parallel lines"
421                icon="icons/Sketch/parallel.png">
422         <sketch_shape_selector id="ConstraintEntityA" 
423             label="First line" tooltip="Select a line" shape_types="edge">
424           <validator id="GeomValidators_ShapeType" parameters="line"/>
425           <validator id="PartSet_DifferentObjects"/>
426           <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityB"/>
427         </sketch_shape_selector>
428         
429         <sketch_shape_selector id="ConstraintEntityB" label="Second line" tooltip="Select a line" 
430             shape_types="edge">
431             <validator id="GeomValidators_ShapeType" parameters="line"/>
432             <validator id="PartSet_DifferentObjects"/>
433             <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityA"/>
434         </sketch_shape_selector>
435         <validator id="PartSet_ParallelSelection"/>
436       </feature>
437       
438     <!--  SketchConstraintPerpendicular  -->
439       <feature id="SketchConstraintPerpendicular" title="Perpendicular" 
440         tooltip="Create constraint defining two perpendicular lines" 
441         icon="icons/Sketch/perpendicular.png">
442         <sketch_shape_selector id="ConstraintEntityA" 
443             label="First line" tooltip="Select an line" 
444             shape_types="edge">
445           <validator id="PartSet_DifferentObjects"/>
446           <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityB"/>
447             <validator id="GeomValidators_ShapeType" parameters="line"/>
448         </sketch_shape_selector>
449         
450         <sketch_shape_selector id="ConstraintEntityB" 
451             label="Second line" tooltip="Select an line" 
452             shape_types="edge">
453             <validator id="PartSet_DifferentObjects"/>
454           <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityA"/>
455             <validator id="GeomValidators_ShapeType" parameters="line"/>
456         </sketch_shape_selector>
457         <validator id="PartSet_PerpendicularSelection"/>
458       </feature>
459
460       <!--  SketchConstraintTangent  -->
461       <feature id="SketchConstraintTangent" title="Tangent" tooltip="Create constraint defining tangency of two objects with common coincident point" icon="icons/Sketch/tangent.png">
462         <sketch_shape_selector id="ConstraintEntityA"
463             label="First object" tooltip="Select line or arc" shape_types="edge">
464           <validator id="SketchPlugin_TangentAttr" parameters="ConstraintEntityB"/>
465           <validator id="PartSet_DifferentObjects"/>
466         </sketch_shape_selector>
467
468         <sketch_shape_selector id="ConstraintEntityB"
469             label="Second object" tooltip="Select line or arc" shape_types="edge">
470           <validator id="SketchPlugin_TangentAttr" parameters="ConstraintEntityA"/>
471           <validator id="PartSet_DifferentObjects"/>
472         </sketch_shape_selector>
473         <validator id="PartSet_TangentSelection"/>
474       </feature>
475
476       <!--  SketchConstraintCoincidence  -->
477       <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">
478         <sketch_shape_selector id="ConstraintEntityA" label="First object" tooltip="Select a first object" shape_types="vertex edge">
479           <validator id="PartSet_DifferentObjects"/>
480           <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityB"/>
481         </sketch_shape_selector>
482         <sketch_shape_selector id="ConstraintEntityB" label="Second object" tooltip="Select a second object" shape_types="vertex edge">
483           <validator id="PartSet_DifferentObjects"/>
484           <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityA"/>
485           <validator id="SketchPlugin_CoincidenceAttr" parameters="ConstraintEntityA"/>
486         </sketch_shape_selector>
487         <validator id="PartSet_CoincidentSelection"/>
488       </feature>
489
490       <!--  SketchConstraintMiddle  -->
491       <feature id="SketchConstraintMiddle" title="Middle point" tooltip="Create constraint for setting middle point on a line" icon="icons/Sketch/middlepoint.png">
492         <sketch_shape_selector id="ConstraintEntityA" label="First object" tooltip="Select a first object" shape_types="vertex edge">
493           <validator id="PartSet_DifferentObjects"/>
494           <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityB"/>
495           <validator id="SketchPlugin_MiddlePointAttr" parameters="ConstraintEntityB"/>
496         </sketch_shape_selector>
497         <sketch_shape_selector id="ConstraintEntityB" label="Second object" tooltip="Select a second object" shape_types="vertex edge">
498           <validator id="PartSet_DifferentObjects"/>
499           <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityA"/>
500           <validator id="SketchPlugin_MiddlePointAttr" parameters="ConstraintEntityA"/>
501         </sketch_shape_selector>
502         <validator id="PartSet_MiddlePointSelection"/>
503       </feature>
504
505       <!--  SketchConstraintEqual  -->
506       <feature id="SketchConstraintEqual" title="Equal"
507         tooltip="Create constraint defining equal lengths of two lines or line and arc or equal radii of two arcs or two circles or arc and circle"
508         icon="icons/Sketch/equal.png">
509         <sketch_shape_selector id="ConstraintEntityA" 
510             label="First object" tooltip="Select line, circle or arc" shape_types="edge">
511           <validator id="PartSet_DifferentObjects"/>
512           <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityB"/>
513         </sketch_shape_selector>
514         
515         <sketch_shape_selector id="ConstraintEntityB"
516             label="Second object" tooltip="Select line, circle or arc" shape_types="edge">
517           <validator id="SketchPlugin_EqualAttr" parameters="ConstraintEntityA"/>
518           <validator id="PartSet_DifferentObjects"/>
519           <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityA"/>
520         </sketch_shape_selector>
521         <validator id="PartSet_EqualSelection"/>
522       </feature>
523       
524     <!--  SketchConstraintCollinear  -->
525       <!--
526       <feature id="SketchConstraintCollinear" title="Collinear" tooltip="Create constraint defining collinearity of two lines" icon="icons/Sketch/collinear.png">
527         <sketch_shape_selector id="ConstraintEntityA" 
528             label="First line" tooltip="Select a line" shape_types="edge">
529           <validator id="GeomValidators_ShapeType" parameters="line"/>
530           <validator id="PartSet_DifferentObjects"/>
531         </sketch_shape_selector>
532         
533         <sketch_shape_selector id="ConstraintEntityB"
534             label="Second line" tooltip="Select a line" shape_types="edge">
535           <validator id="GeomValidators_ShapeType" parameters="line"/>
536           <validator id="PartSet_DifferentObjects"/>
537         </sketch_shape_selector>
538         <validator id="PartSet_CollinearSelection"/>
539       </feature>
540       -->
541          
542     </group>
543     
544   </workbench>
545 </plugin>