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