1 <!-- Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
4 <workbench id="Sketch">
6 <feature id="Sketch" nested="SketchPoint SketchLine SketchCircle SketchArc SketchConstraintLength SketchConstraintRadius SketchConstraintDistance SketchConstraintParallel SketchConstraintPerpendicular SketchConstraintRigid" title="Sketch" tooltip="Create a new sketch or edit an existing sketch" icon=":icons/sketch.png">
7 <sketch-start-label title="Select a plane on which to create a sketch" tooltip="Select a plane on which to create a sketch"/>
8 <!--icon=":pictures/x_point.png"-->
10 <feature id="SketchPoint" title="Point" tooltip="Create a new point" icon=":icons/point.png">
11 <sketch-2dpoint_selector id="PointCoordindates" title="Point" tooltip="Point"/>
13 <feature id="SketchLine" title="Line" tooltip="Create a new line" icon=":icons/line.png">
14 <sketch-2dpoint_selector id="StartPoint" title="Start point" tooltip="Start point of the line" previous_feature_param="EndPoint"/>
15 <sketch-2dpoint_selector id="EndPoint" title="End point" tooltip="End point of the line"/>
17 <feature id="SketchCircle" title="Circle" tooltip="Create a new circle" icon=":icons/circle.png">
18 <sketch-2dpoint_selector id="CircleCenter" title="Center" tooltip="Center of the circle"/>
19 <point2ddistance id="CircleRadius" first_point="CircleCenter" label="Radius:" min="0" step="1.0" default="0" icon=":icons/radius.png" tooltip="Set Radius">
20 <validator id="GeomValidators_Positive"/>
23 <feature id="SketchArc" title="Arc" tooltip="Create a new arc of a circle" icon=":icons/arc.png">
24 <sketch-2dpoint_selector id="ArcCenter" title="Center" tooltip="Center of the arc"/>
25 <sketch-2dpoint_selector id="ArcStartPoint" title="Start point" tooltip="Start point of the arc"/>
26 <sketch-2dpoint_selector id="ArcEndPoint" title="End point" tooltip="End point of the arc"/>
30 <group id="Constraints">
31 <feature id="SketchConstraintCoincidence" title="Coincident" tooltip="Create constraint for the coincidence of two points" internal="1"/>
32 <!-- SketchConstraintDistance -->
33 <feature id="SketchConstraintDistance" title="Distance" tooltip="Create constraint for the distance from a point to an object" icon=":icons/distance.png">
34 <label title="Select objects for distance definition. Following objects can be accepted: point, line or arc end point, center of circle or arc."/>
36 <sketch_shape_selector id="ConstraintEntityA" label="First object" tooltip="Select point, line end point, line, center of circle or arc."
37 shape_types="edge vertex" use_subshapes="true"/>
39 <sketch_shape_selector id="ConstraintEntityB" label="Last object" tooltip="Select point, line end point, line, center of circle or arc."
40 shape_types="edge vertex" use_subshapes="true">
41 <validator id="SketchPlugin_DifferentObjects"/>
42 </sketch_shape_selector>
44 <sketch-2dpoint_selector id="ConstraintFlyoutValuePnt" internal="1" obligatory="0"/>
46 <doublevalue_editor label="Value" tooltip="Constraint value" id="ConstraintValue" default="computed" min="0">
47 <validator id="GeomValidators_Positive"/>
50 <validator id="PartSet_DistanceValidator"/>
52 <!-- SketchConstraintLength -->
53 <feature id="SketchConstraintLength" title="Length" tooltip="Create constraint for the given length of a line segment" icon=":icons/length.png">
54 <label title="Select a line on which to calculate length" tooltip="Select a line on which to calculate length"/>
55 <shape_selector id="ConstraintEntityA" label="Line" tooltip="Select an line in the viewer"
57 <validator id="SketchPlugin_ResultLine"/>
59 <sketch-2dpoint_selector id="ConstraintFlyoutValuePnt" internal="1" obligatory="0"/>
60 <doublevalue_editor label="Value" tooltip="Constraint value" id="ConstraintValue" default="computed">
61 <validator id="GeomValidators_Positive"/>
63 <validator id="PartSet_LengthValidator"/>
65 <!-- SketchConstraintRadius -->
66 <feature id="SketchConstraintRadius" title="Radius" tooltip="Create constraint for the given radius of a circle or an arc" icon=":icons/radius_constr.png">
67 <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"/>
68 <shape_selector id="ConstraintEntityA" label="Circle or Arc" tooltip="Select a circle or an arc in the viewer"
70 <validator id="SketchPlugin_ResultArc"/>
72 <sketch-2dpoint_selector id="ConstraintFlyoutValuePnt" internal="1" obligatory="0"/>
73 <doublevalue_editor label="Value" tooltip="Constraint value" id="ConstraintValue" default="computed"/>
74 <validator id="PartSet_RadiusValidator"/>
76 <!-- SketchConstraintParallel -->
77 <feature id="SketchConstraintParallel" title="Parallel" tooltip="Create constraint defining two parallel lines" icon=":icons/parallel.png">
78 <sketch_constraint_shape_selector id="ConstraintEntityA"
79 label="First line" tooltip="Select an line in the viewer"
80 shape_types="edge" use_subshapes="true">
81 <selection_filter id="LinearEdgeFilter"/>
82 </sketch_constraint_shape_selector>
84 <sketch_constraint_shape_selector id="ConstraintEntityB" label="Last line" tooltip="Select an line in the viewer"
85 shape_types="edge" use_subshapes="true">
86 <validator id="SketchPlugin_DifferentObjects"/>
87 </sketch_constraint_shape_selector>
89 <sketch-2dpoint_selector id="ConstraintFlyoutValuePnt" internal="1" obligatory="0"/>
90 <validator id="PartSet_ParallelValidator"/>
92 <!-- SketchConstraintPerpendicular -->
93 <feature id="SketchConstraintPerpendicular" title="Perpendicular" tooltip="Create constraint defining two perpendicular lines" icon=":icons/perpendicular.png">
94 <sketch_constraint_shape_selector id="ConstraintEntityA"
95 label="First line" tooltip="Select an line in the viewer"
96 shape_types="edge" use_subshapes="true">
97 </sketch_constraint_shape_selector>
99 <sketch_constraint_shape_selector id="ConstraintEntityB"
100 label="Last line" tooltip="Select an line in the viewer"
101 shape_types="edge" use_subshapes="true">
102 <validator id="SketchPlugin_DifferentObjects"/>
103 </sketch_constraint_shape_selector>
104 <validator id="PartSet_PerpendicularValidator"/>
106 <!-- SketchConstraintRigid -->
107 <feature id="SketchConstraintRigid" title="Fixed" tooltip="Create constraint defining fixed object" icon=":icons/fixed.png">
108 <shape_selector id="ConstraintEntityA" label="Object" tooltip="Select any object in the viewer"
109 shape_types="edge vertex">
110 <validator id="SketchPlugin_ResultPoint"/>
111 <validator id="SketchPlugin_ResultLine"/>
112 <validator id="SketchPlugin_ResultArc"/>
114 <validator id="PartSet_RigidValidator"/>