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"
10 tooltip="Create a new sketch"
11 icon=":icons/sketch.png">
12 <sketch-start-label title="Select a plane on which to create a sketch" tooltip="Select a plane on which to create a sketch"/>
13 <!--icon=":pictures/x_point.png"-->
15 <feature id="SketchPoint" title="Point" tooltip="Create a new point" icon=":icons/point.png">
16 <sketch-2dpoint_selector id="PointCoordindates" title="Point" tooltip="Point coordinates"/>
18 <feature id="SketchLine" title="Line" tooltip="Create a new line" icon=":icons/line.png">
19 <sketch-2dpoint_selector id="StartPoint" title="Start point" tooltip="Start point coordinates" previous_feature_param="EndPoint"/>
20 <sketch-2dpoint_selector id="EndPoint" title="End point" tooltip="End point coordinates"/>
22 <feature id="SketchCircle" title="Circle" tooltip="Create a new circle" icon=":icons/circle.png">
23 <sketch-2dpoint_selector id="CircleCenter" title="Center" tooltip="Center coordinates"/>
24 <point2ddistance id="CircleRadius" first_point="CircleCenter" label="Radius:" min="0" step="1.0" default="0" icon=":icons/radius.png" tooltip="Set radius">
25 <validator id="GeomValidators_Positive"/>
28 <feature id="SketchArc" title="Arc" tooltip="Create a new arc" icon=":icons/arc.png">
29 <sketch-2dpoint_selector id="ArcCenter" title="Center" tooltip="Center of a circle"/>
30 <sketch-2dpoint_selector id="ArcStartPoint" title="Start point" tooltip="Start point"/>
31 <sketch-2dpoint_selector id="ArcEndPoint" title="End point" tooltip="End point"/>
35 <group id="Constraints">
37 id="SketchConstraintCoincidence"
39 tooltip="Create constraint for the coincidence of two points"
41 <!-- SketchConstraintDistance -->
43 id="SketchConstraintDistance"
45 tooltip="Set fixed distance from a point to an object"
46 icon=":icons/distance.png">
47 <label title="Select objects for distance definition. Following objects can be accepted: point, line or arc end point, center of circle or arc."/>
48 <sketch_shape_selector
49 id="ConstraintEntityA"
51 tooltip="Select point, line end point, line, center of circle or arc."
52 shape_types="edge vertex"/>
53 <sketch_shape_selector
54 id="ConstraintEntityB"
56 tooltip="Select point, line end point, line, center of circle or arc."
57 shape_types="edge vertex">
58 <validator id="SketchPlugin_DifferentObjects"/>
59 </sketch_shape_selector>
61 <sketch-2dpoint_selector id="ConstraintFlyoutValuePnt" internal="1" obligatory="0"/>
63 <doublevalue_editor label="Value" tooltip="Distance" id="ConstraintValue" default="computed" min="0">
64 <validator id="GeomValidators_Positive"/>
67 <validator id="PartSet_DistanceValidator"/>
69 <!-- SketchConstraintLength -->
70 <feature id="SketchConstraintLength" title="Length" tooltip="Set fixed length of a line segment" icon=":icons/length.png">
71 <label title="Select a line on which to calculate length" tooltip="Select a line on which to calculate length"/>
72 <shape_selector id="ConstraintEntityA" label="Line" tooltip="Select an line"
74 <validator id="SketchPlugin_ResultLine"/>
75 <selection_filter id="EdgeFilter" parameters="line"/>
77 <sketch-2dpoint_selector id="ConstraintFlyoutValuePnt" internal="1" obligatory="0"/>
78 <doublevalue_editor label="Value" tooltip="Length" id="ConstraintValue" default="computed">
79 <validator id="GeomValidators_Positive"/>
81 <validator id="PartSet_LengthValidator"/>
83 <!-- SketchConstraintRadius -->
84 <feature id="SketchConstraintRadius" title="Radius" tooltip="Set fixed radius of a circle or an arc" icon=":icons/radius_constr.png">
85 <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"/>
86 <shape_selector id="ConstraintEntityA" label="Circle or Arc" tooltip="Select a circle or an arc"
88 <validator id="SketchPlugin_ResultArc"/>
89 <selection_filter id="EdgeFilter" parameters="circle"/>
91 <sketch-2dpoint_selector id="ConstraintFlyoutValuePnt" internal="1" obligatory="0"/>
92 <doublevalue_editor label="Value" tooltip="Radius" id="ConstraintValue" default="computed"/>
93 <validator id="PartSet_RadiusValidator"/>
95 <!-- SketchConstraintParallel -->
96 <feature id="SketchConstraintParallel" title="Parallel" tooltip="Create constraint defining two parallel lines" icon=":icons/parallel.png">
97 <sketch_constraint_shape_selector id="ConstraintEntityA"
98 label="First line" tooltip="Select a line" shape_types="edge">
99 <selection_filter id="EdgeFilter" parameters="line"/>
100 </sketch_constraint_shape_selector>
102 <sketch_constraint_shape_selector id="ConstraintEntityB" label="Last line" tooltip="Select a line"
104 <selection_filter id="EdgeFilter" parameters="line"/>
105 <validator id="SketchPlugin_DifferentObjects"/>
106 </sketch_constraint_shape_selector>
108 <sketch-2dpoint_selector id="ConstraintFlyoutValuePnt" internal="1" obligatory="0"/>
109 <validator id="PartSet_ParallelValidator"/>
111 <!-- SketchConstraintPerpendicular -->
112 <feature id="SketchConstraintPerpendicular" title="Perpendicular" tooltip="Create constraint defining two perpendicular lines" icon=":icons/perpendicular.png">
113 <sketch_constraint_shape_selector id="ConstraintEntityA"
114 label="First line" tooltip="Select an line"
116 <selection_filter id="EdgeFilter" parameters="line"/>
117 </sketch_constraint_shape_selector>
119 <sketch_constraint_shape_selector id="ConstraintEntityB"
120 label="Last line" tooltip="Select an line"
122 <validator id="SketchPlugin_DifferentObjects"/>
123 <selection_filter id="EdgeFilter" parameters="line"/>
124 </sketch_constraint_shape_selector>
125 <validator id="PartSet_PerpendicularValidator"/>
127 <!-- SketchConstraintRigid -->
128 <feature id="SketchConstraintRigid" title="Fixed" tooltip="Fix an object" icon=":icons/fixed.png">
129 <shape_selector id="ConstraintEntityA" label="Object" tooltip="Select an object"
130 shape_types="edge vertex">
131 <validator id="SketchPlugin_ResultPoint"/>
132 <validator id="SketchPlugin_ResultLine"/>
133 <validator id="SketchPlugin_ResultArc"/>
135 <validator id="PartSet_RigidValidator"/>