1 <!-- Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
4 <workbench id="Sketch">
8 nested="SketchPoint SketchLine SketchCircle SketchArc SketchConstraintLength SketchConstraintRadius SketchConstraintDistance SketchConstraintParallel SketchConstraintPerpendicular SketchConstraintRigid SketchConstraintHorizontal SketchConstraintVertical SketchConstraintEqual SketchConstraintTangent SketchConstraintFillet SketchConstraintCoincidence"
9 when_nested="accept abort"
11 tooltip="Create a new sketch"
12 icon=":icons/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"/>
16 <!--icon=":pictures/x_point.png"-->
18 <feature id="SketchPoint" title="Point" tooltip="Create a new point" icon=":icons/point.png">
19 <sketch-2dpoint_selector id="PointCoordindates" title="Point" tooltip="Point coordinates"/>
20 <boolvalue id="Auxiliary" label="Auxiliary" default="false" tooltip="Construction element" obligatory="0"/>
22 <feature id="SketchLine" title="Line" tooltip="Create a new line" icon=":icons/line.png">
23 <sketch-2dpoint_selector id="StartPoint" title="Start point" tooltip="Start point coordinates" previous_feature_param="EndPoint"/>
24 <sketch-2dpoint_selector id="EndPoint" title="End point" tooltip="End point coordinates"/>
25 <boolvalue id="Auxiliary" label="Auxiliary" default="false" tooltip="Construction element" obligatory="0"/>
27 <feature id="SketchCircle" title="Circle" tooltip="Create a new circle" icon=":icons/circle.png">
28 <sketch-2dpoint_selector id="CircleCenter" title="Center" tooltip="Center coordinates"/>
29 <point2ddistance id="CircleRadius" first_point="CircleCenter" label="Radius:" min="0" step="1.0" default="0" icon=":icons/radius.png" tooltip="Set radius">
30 <validator id="GeomValidators_Positive"/>
32 <boolvalue id="Auxiliary" label="Auxiliary" default="false" tooltip="Construction element" obligatory="0"/>
34 <feature id="SketchArc" title="Arc" tooltip="Create a new arc" icon=":icons/arc.png">
35 <sketch-2dpoint_selector id="ArcCenter" title="Center" tooltip="Center of a circle"/>
36 <sketch-2dpoint_selector id="ArcStartPoint" title="Start point" tooltip="Start point"/>
37 <sketch-2dpoint_selector id="ArcEndPoint" title="End point" tooltip="End point"/>
38 <boolvalue id="Auxiliary" label="Auxiliary" default="false" tooltip="Construction element" obligatory="0"/>
42 <group id="Constraints">
43 <!-- SketchConstraintDistance -->
45 id="SketchConstraintDistance"
47 tooltip="Set fixed distance from a point to an object"
48 icon=":icons/distance.png">
49 <label title="Select objects for distance definition. Following objects can be accepted: point, line or arc end point, center of circle or arc."/>
50 <sketch_shape_selector
51 id="ConstraintEntityA"
53 tooltip="Select point, line end point, line, center of circle or arc."
54 shape_types="edge vertex">
55 <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityB"/>
56 <validator id="GeomValidators_EdgeOrVertex"/>
57 </sketch_shape_selector>/>
58 <sketch_shape_selector
59 id="ConstraintEntityB"
61 tooltip="Select point, line end point, line, center of circle or arc."
62 shape_types="edge vertex">
63 <validator id="PartSet_DifferentObjects"/>
64 <validator id="SketchPlugin_DistanceAttr" parameters="ConstraintEntityA"/>
65 <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityA"/>
66 <validator id="GeomValidators_EdgeOrVertex"/>
67 </sketch_shape_selector>
69 <sketch-2dpoint_selector id="ConstraintFlyoutValuePnt" default="computed" internal="1" obligatory="0"/>
71 <doublevalue_editor label="Value" tooltip="Distance" id="ConstraintValue" default="computed" min="0">
72 <validator id="GeomValidators_Positive"/>
75 <validator id="PartSet_DistanceValidator"/>
78 <!-- SketchConstraintLength -->
79 <feature id="SketchConstraintLength" title="Length" tooltip="Set fixed length of a line segment" icon=":icons/length.png">
80 <label title="Select a line on which to calculate length" tooltip="Select a line on which to calculate length"/>
81 <shape_selector id="ConstraintEntityA" label="Line" tooltip="Select an line"
83 <validator id="GeomValidators_Edge" parameters="line"/>
85 <sketch-2dpoint_selector id="ConstraintFlyoutValuePnt" default="computed" internal="1" obligatory="0"/>
86 <doublevalue_editor label="Value" tooltip="Length" id="ConstraintValue" default="computed">
87 <validator id="GeomValidators_Positive"/>
89 <validator id="PartSet_LengthValidator"/>
92 <!-- SketchConstraintRadius -->
93 <feature id="SketchConstraintRadius" title="Radius" tooltip="Set fixed radius of a circle or an arc" icon=":icons/radius_constr.png">
94 <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"/>
95 <shape_selector id="ConstraintEntityA" label="Circle or Arc" tooltip="Select a circle or an arc"
97 <validator id="GeomValidators_Edge" parameters="circle"/>
99 <sketch-2dpoint_selector id="ConstraintFlyoutValuePnt" default="computed" internal="1" obligatory="0"/>
100 <doublevalue_editor label="Value" tooltip="Radius" id="ConstraintValue" default="computed"/>
101 <validator id="PartSet_RadiusValidator"/>
104 <!-- SketchConstraintParallel -->
105 <feature id="SketchConstraintParallel" title="Parallel" tooltip="Create constraint defining two parallel lines" icon=":icons/parallel.png">
106 <sketch_constraint_shape_selector id="ConstraintEntityA"
107 label="First line" tooltip="Select a line" shape_types="edge">
108 <validator id="GeomValidators_Edge" parameters="line"/>
109 <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityB"/>
110 </sketch_constraint_shape_selector>
112 <sketch_constraint_shape_selector id="ConstraintEntityB" label="Last line" tooltip="Select a line"
114 <validator id="GeomValidators_Edge" parameters="line"/>
115 <validator id="PartSet_DifferentObjects"/>
116 <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityA"/>
117 </sketch_constraint_shape_selector>
119 <validator id="PartSet_ParallelValidator"/>
122 <!-- SketchConstraintPerpendicular -->
123 <feature id="SketchConstraintPerpendicular" title="Perpendicular" tooltip="Create constraint defining two perpendicular lines" icon=":icons/perpendicular.png">
124 <sketch_constraint_shape_selector id="ConstraintEntityA"
125 label="First line" tooltip="Select an line"
127 <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityB"/>
128 <validator id="GeomValidators_Edge" parameters="line"/>
129 </sketch_constraint_shape_selector>
131 <sketch_constraint_shape_selector id="ConstraintEntityB"
132 label="Last line" tooltip="Select an line"
134 <validator id="PartSet_DifferentObjects"/>
135 <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityA"/>
136 <validator id="GeomValidators_Edge" parameters="line"/>
137 </sketch_constraint_shape_selector>
138 <validator id="PartSet_PerpendicularValidator"/>
141 <!-- SketchConstraintCoincedence -->
142 <feature id="SketchConstraintCoincidence" title="Coincident" tooltip="Create constraint for the coincidence of two points" icon=":icons/coincedence.png">
143 <sketch_shape_selector id="ConstraintEntityA" label="First point" tooltip="Select a first point" shape_types="vertex"/>
144 <sketch_shape_selector id="ConstraintEntityB" label="Second point" tooltip="Select a second point" shape_types="vertex">
145 <validator id="PartSet_DifferentObjects"/>
146 </sketch_shape_selector>
149 <!-- SketchConstraintRigid -->
150 <feature id="SketchConstraintRigid" title="Fixed" tooltip="Fix an object" icon=":icons/fixed.png">
151 <shape_selector id="ConstraintEntityA" label="Object" tooltip="Select an object"
152 shape_types="edge vertex">
153 <validator id="PartSet_SketchEntityValidator" parameters="SketchPoint,SketchLine,SketchCircle,SketchArc"/>
155 <validator id="PartSet_RigidValidator"/>
158 <!-- SketchConstraintHorizontal -->
159 <feature id="SketchConstraintHorizontal" title="Horizontal" tooltip="Create constraint defining horizontal line" icon=":icons/horisontal.png">
160 <sketch_constraint_shape_selector id="ConstraintEntityA"
161 label="Line" tooltip="Select a line" shape_types="edge">
162 <validator id="GeomValidators_Edge" parameters="line"/>
163 </sketch_constraint_shape_selector>
166 <!-- SketchConstraintVertical -->
167 <feature id="SketchConstraintVertical" title="Vertical" tooltip="Create constraint defining vertical line" icon=":icons/vertical.png">
168 <sketch_constraint_shape_selector id="ConstraintEntityA"
169 label="Line" tooltip="Select a line" shape_types="edge">
170 <validator id="GeomValidators_Edge" parameters="line"/>
171 </sketch_constraint_shape_selector>
174 <!-- SketchConstraintEqual -->
175 <feature id="SketchConstraintEqual" title="Equal" tooltip="Create constraint defining equality of two objects" icon=":icons/equal.png">
176 <sketch_constraint_shape_selector id="ConstraintEntityA"
177 label="First object" tooltip="Select line, circle or arc" shape_types="edge">
178 </sketch_constraint_shape_selector>
180 <sketch_constraint_shape_selector id="ConstraintEntityB"
181 label="Last object" tooltip="Select line, circle or arc" shape_types="edge">
182 </sketch_constraint_shape_selector>
185 <!-- SketchConstraintTangent -->
186 <feature id="SketchConstraintTangent" title="Tangent" tooltip="Create constraint defining tangency of two objects" icon=":icons/tangent.png">
187 <sketch_constraint_shape_selector id="ConstraintEntityA"
188 label="First object" tooltip="Select line or arc" shape_types="edge">
189 </sketch_constraint_shape_selector>
191 <sketch_constraint_shape_selector id="ConstraintEntityB"
192 label="Last object" tooltip="Select line or arc" shape_types="edge">
193 <validator id="SketchPlugin_TangentAttr" parameters="ConstraintEntityA"/>
194 </sketch_constraint_shape_selector>
197 <!-- SketchConstraintMirror -->
199 id="SketchConstraintMirror"
201 tooltip="Create constraint mirroring group of objects"
206 <!-- SketchConstraintFillet -->
207 <feature id="SketchConstraintFillet" title="Fillet" tooltip="Create constraint defining fillet between two objects" icon=":icons/fillet.png">
208 <sketch_constraint_shape_selector id="ConstraintEntityA"
209 label="First object" tooltip="Select line or arc" shape_types="edge">
210 </sketch_constraint_shape_selector>
212 <sketch_constraint_shape_selector id="ConstraintEntityB"
213 label="Last object" tooltip="Select line or arc" shape_types="edge">
214 </sketch_constraint_shape_selector>
216 <doublevalue_editor label="Value" tooltip="Fillet radius" id="ConstraintValue" default="0" min="0">
217 <validator id="GeomValidators_Positive"/>
218 </doublevalue_editor>