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"
9 when_nested="accept abort"
11 tooltip="Create a new sketch"
12 icon=":icons/sketch.png">
13 <sketch-start-label title="Select a plane on which to create a sketch" tooltip="Select a plane on which to create a sketch"/>
14 <!--icon=":pictures/x_point.png"-->
16 <feature id="SketchPoint" title="Point" tooltip="Create a new point" icon=":icons/point.png">
17 <sketch-2dpoint_selector id="PointCoordindates" title="Point" tooltip="Point coordinates"/>
19 <feature id="SketchLine" title="Line" tooltip="Create a new line" icon=":icons/line.png">
20 <sketch-2dpoint_selector id="StartPoint" title="Start point" tooltip="Start point coordinates" previous_feature_param="EndPoint"/>
21 <sketch-2dpoint_selector id="EndPoint" title="End point" tooltip="End point coordinates"/>
23 <feature id="SketchCircle" title="Circle" tooltip="Create a new circle" icon=":icons/circle.png">
24 <sketch-2dpoint_selector id="CircleCenter" title="Center" tooltip="Center coordinates"/>
25 <point2ddistance id="CircleRadius" first_point="CircleCenter" label="Radius:" min="0" step="1.0" default="0" icon=":icons/radius.png" tooltip="Set radius">
26 <validator id="GeomValidators_Positive"/>
29 <feature id="SketchArc" title="Arc" tooltip="Create a new arc" icon=":icons/arc.png">
30 <sketch-2dpoint_selector id="ArcCenter" title="Center" tooltip="Center of a circle"/>
31 <sketch-2dpoint_selector id="ArcStartPoint" title="Start point" tooltip="Start point"/>
32 <sketch-2dpoint_selector id="ArcEndPoint" title="End point" tooltip="End point"/>
36 <group id="Constraints">
38 id="SketchConstraintCoincidence"
40 tooltip="Create constraint for the coincidence of two points"
42 <!-- SketchConstraintDistance -->
44 id="SketchConstraintDistance"
46 tooltip="Set fixed distance from a point to an object"
47 icon=":icons/distance.png">
48 <label title="Select objects for distance definition. Following objects can be accepted: point, line or arc end point, center of circle or arc."/>
49 <sketch_shape_selector
50 id="ConstraintEntityA"
52 tooltip="Select point, line end point, line, center of circle or arc."
53 shape_types="edge vertex">
54 <selection_filter id="MultiFilter" parameters="line,vertex"/>
55 </sketch_shape_selector>/>
56 <sketch_shape_selector
57 id="ConstraintEntityB"
59 tooltip="Select point, line end point, line, center of circle or arc."
60 shape_types="edge vertex">
61 <validator id="SketchPlugin_DifferentObjects"/>
62 <validator id="SketchPlugin_DistanceAttr" parameters="ConstraintEntityA"/>
63 <selection_filter id="MultiFilter" parameters="line,vertex"/>
64 </sketch_shape_selector>
66 <sketch-2dpoint_selector id="ConstraintFlyoutValuePnt" default="computed" internal="1" obligatory="0"/>
68 <doublevalue_editor label="Value" tooltip="Distance" id="ConstraintValue" default="computed" min="0">
69 <validator id="GeomValidators_Positive"/>
72 <validator id="PartSet_DistanceValidator"/>
74 <!-- SketchConstraintLength -->
75 <feature id="SketchConstraintLength" title="Length" tooltip="Set fixed length of a line segment" icon=":icons/length.png">
76 <label title="Select a line on which to calculate length" tooltip="Select a line on which to calculate length"/>
77 <shape_selector id="ConstraintEntityA" label="Line" tooltip="Select an line"
79 <validator id="SketchPlugin_ResultLine"/>
80 <selection_filter id="EdgeFilter" parameters="line"/>
82 <sketch-2dpoint_selector id="ConstraintFlyoutValuePnt" default="computed" internal="1" obligatory="0"/>
83 <doublevalue_editor label="Value" tooltip="Length" id="ConstraintValue" default="computed">
84 <validator id="GeomValidators_Positive"/>
86 <validator id="PartSet_LengthValidator"/>
88 <!-- SketchConstraintRadius -->
89 <feature id="SketchConstraintRadius" title="Radius" tooltip="Set fixed radius of a circle or an arc" icon=":icons/radius_constr.png">
90 <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"/>
91 <shape_selector id="ConstraintEntityA" label="Circle or Arc" tooltip="Select a circle or an arc"
93 <validator id="SketchPlugin_ResultArc"/>
94 <selection_filter id="EdgeFilter" parameters="circle"/>
96 <sketch-2dpoint_selector id="ConstraintFlyoutValuePnt" default="computed" internal="1" obligatory="0"/>
97 <doublevalue_editor label="Value" tooltip="Radius" id="ConstraintValue" default="computed"/>
98 <validator id="PartSet_RadiusValidator"/>
100 <!-- SketchConstraintParallel -->
101 <feature id="SketchConstraintParallel" title="Parallel" tooltip="Create constraint defining two parallel lines" icon=":icons/parallel.png">
102 <sketch_constraint_shape_selector id="ConstraintEntityA"
103 label="First line" tooltip="Select a line" shape_types="edge">
104 <selection_filter id="EdgeFilter" parameters="line"/>
105 </sketch_constraint_shape_selector>
107 <sketch_constraint_shape_selector id="ConstraintEntityB" label="Last line" tooltip="Select a line"
109 <selection_filter id="EdgeFilter" parameters="line"/>
110 <validator id="SketchPlugin_DifferentObjects"/>
111 </sketch_constraint_shape_selector>
113 <sketch-2dpoint_selector id="ConstraintFlyoutValuePnt" internal="1" obligatory="0"/>
114 <validator id="PartSet_ParallelValidator"/>
116 <!-- SketchConstraintPerpendicular -->
117 <feature id="SketchConstraintPerpendicular" title="Perpendicular" tooltip="Create constraint defining two perpendicular lines" icon=":icons/perpendicular.png">
118 <sketch_constraint_shape_selector id="ConstraintEntityA"
119 label="First line" tooltip="Select an line"
121 <selection_filter id="EdgeFilter" parameters="line"/>
122 </sketch_constraint_shape_selector>
124 <sketch_constraint_shape_selector id="ConstraintEntityB"
125 label="Last line" tooltip="Select an line"
127 <validator id="SketchPlugin_DifferentObjects"/>
128 <selection_filter id="EdgeFilter" parameters="line"/>
129 </sketch_constraint_shape_selector>
130 <validator id="PartSet_PerpendicularValidator"/>
132 <!-- SketchConstraintRigid -->
133 <feature id="SketchConstraintRigid" title="Fixed" tooltip="Fix an object" icon=":icons/fixed.png">
134 <shape_selector id="ConstraintEntityA" label="Object" tooltip="Select an object"
135 shape_types="edge vertex">
136 <validator id="SketchPlugin_ResultPoint"/>
137 <validator id="SketchPlugin_ResultLine"/>
138 <validator id="SketchPlugin_ResultArc"/>
140 <validator id="PartSet_RigidValidator"/>