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 <validator id="SketchPlugin_ResultLine"/>
56 </sketch_shape_selector>/>
57 <sketch_shape_selector
58 id="ConstraintEntityB"
60 tooltip="Select point, line end point, line, center of circle or arc."
61 shape_types="edge vertex">
62 <validator id="SketchPlugin_DifferentObjects"/>
63 <validator id="SketchPlugin_DistanceAttr" parameters="ConstraintEntityA"/>
64 <selection_filter id="MultiFilter" parameters="line,vertex"/>
65 </sketch_shape_selector>
67 <sketch-2dpoint_selector id="ConstraintFlyoutValuePnt" default="computed" internal="1" obligatory="0"/>
69 <doublevalue_editor label="Value" tooltip="Distance" id="ConstraintValue" default="computed" min="0">
70 <validator id="GeomValidators_Positive"/>
73 <validator id="PartSet_DistanceValidator"/>
75 <!-- SketchConstraintLength -->
76 <feature id="SketchConstraintLength" title="Length" tooltip="Set fixed length of a line segment" icon=":icons/length.png">
77 <label title="Select a line on which to calculate length" tooltip="Select a line on which to calculate length"/>
78 <shape_selector id="ConstraintEntityA" label="Line" tooltip="Select an line"
80 <validator id="SketchPlugin_ResultLine"/>
81 <selection_filter id="EdgeFilter" parameters="line"/>
82 <validator id="SketchPlugin_ResultLine"/>
84 <sketch-2dpoint_selector id="ConstraintFlyoutValuePnt" default="computed" internal="1" obligatory="0"/>
85 <doublevalue_editor label="Value" tooltip="Length" id="ConstraintValue" default="computed">
86 <validator id="GeomValidators_Positive"/>
88 <validator id="PartSet_LengthValidator"/>
90 <!-- SketchConstraintRadius -->
91 <feature id="SketchConstraintRadius" title="Radius" tooltip="Set fixed radius of a circle or an arc" icon=":icons/radius_constr.png">
92 <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"/>
93 <shape_selector id="ConstraintEntityA" label="Circle or Arc" tooltip="Select a circle or an arc"
95 <validator id="SketchPlugin_ResultArc"/>
96 <selection_filter id="EdgeFilter" parameters="circle"/>
98 <sketch-2dpoint_selector id="ConstraintFlyoutValuePnt" default="computed" internal="1" obligatory="0"/>
99 <doublevalue_editor label="Value" tooltip="Radius" id="ConstraintValue" default="computed"/>
100 <validator id="PartSet_RadiusValidator"/>
102 <!-- SketchConstraintParallel -->
103 <feature id="SketchConstraintParallel" title="Parallel" tooltip="Create constraint defining two parallel lines" icon=":icons/parallel.png">
104 <sketch_constraint_shape_selector id="ConstraintEntityA"
105 label="First line" tooltip="Select a line" shape_types="edge">
106 <selection_filter id="EdgeFilter" parameters="line"/>
107 </sketch_constraint_shape_selector>
109 <sketch_constraint_shape_selector id="ConstraintEntityB" label="Last line" tooltip="Select a line"
111 <selection_filter id="EdgeFilter" parameters="line"/>
112 <validator id="SketchPlugin_DifferentObjects"/>
113 </sketch_constraint_shape_selector>
115 <sketch-2dpoint_selector id="ConstraintFlyoutValuePnt" internal="1" obligatory="0"/>
116 <validator id="PartSet_ParallelValidator"/>
118 <!-- SketchConstraintPerpendicular -->
119 <feature id="SketchConstraintPerpendicular" title="Perpendicular" tooltip="Create constraint defining two perpendicular lines" icon=":icons/perpendicular.png">
120 <sketch_constraint_shape_selector id="ConstraintEntityA"
121 label="First line" tooltip="Select an line"
123 <selection_filter id="EdgeFilter" parameters="line"/>
124 </sketch_constraint_shape_selector>
126 <sketch_constraint_shape_selector id="ConstraintEntityB"
127 label="Last line" tooltip="Select an line"
129 <validator id="SketchPlugin_DifferentObjects"/>
130 <selection_filter id="EdgeFilter" parameters="line"/>
131 </sketch_constraint_shape_selector>
132 <validator id="PartSet_PerpendicularValidator"/>
134 <!-- SketchConstraintRigid -->
135 <feature id="SketchConstraintRigid" title="Fixed" tooltip="Fix an object" icon=":icons/fixed.png">
136 <shape_selector id="ConstraintEntityA" label="Object" tooltip="Select an object"
137 shape_types="edge vertex">
138 <validator id="SketchPlugin_ResultPoint"/>
139 <validator id="SketchPlugin_ResultLine"/>
140 <validator id="SketchPlugin_ResultArc"/>
142 <validator id="PartSet_RigidValidator"/>