<group id="Basic">
<feature
id="Sketch"
- nested="SketchPoint SketchLine SketchCircle SketchArc SketchConstraintLength SketchConstraintRadius SketchConstraintDistance SketchConstraintParallel SketchConstraintPerpendicular SketchConstraintRigid SketchConstraintHorizontal SketchConstraintVertical SketchConstraintEqual SketchConstraintTangent SketchConstraintFillet SketchConstraintCoincidence"
+ nested="SketchPoint SketchLine SketchCircle SketchArc SketchConstraintLength SketchConstraintRadius SketchConstraintDistance SketchConstraintParallel SketchConstraintPerpendicular SketchConstraintRigid SketchConstraintHorizontal SketchConstraintVertical SketchConstraintEqual SketchConstraintTangent SketchConstraintFillet SketchConstraintCoincidence SketchConstraintMirror"
when_nested="accept abort"
title="Sketch"
tooltip="Create a new sketch"
<validator id="GeomValidators_Positive"/>
</doublevalue_editor>
- <validator id="PartSet_DistanceValidator"/>
+ <validator id="PartSet_DistanceSelection"/>
</feature>
<!-- SketchConstraintLength -->
<doublevalue_editor label="Value" tooltip="Length" id="ConstraintValue" default="computed">
<validator id="GeomValidators_Positive"/>
</doublevalue_editor>
- <validator id="PartSet_LengthValidator"/>
+ <validator id="PartSet_LengthSelection"/>
</feature>
<!-- SketchConstraintRadius -->
</shape_selector>
<sketch-2dpoint_selector id="ConstraintFlyoutValuePnt" default="computed" internal="1" obligatory="0"/>
<doublevalue_editor label="Value" tooltip="Radius" id="ConstraintValue" default="computed"/>
- <validator id="PartSet_RadiusValidator"/>
+ <validator id="PartSet_RadiusSelection"/>
</feature>
<!-- SketchConstraintParallel -->
<validator id="PartSet_DifferentObjects"/>
<validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityA"/>
</sketch_constraint_shape_selector>
- <validator id="PartSet_ParallelValidator"/>
+ <validator id="PartSet_ParallelSelection"/>
</feature>
<!-- SketchConstraintPerpendicular -->
<validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityA"/>
<validator id="GeomValidators_Edge" parameters="line"/>
</sketch_constraint_shape_selector>
- <validator id="PartSet_PerpendicularValidator"/>
+ <validator id="PartSet_PerpendicularSelection"/>
</feature>
<!-- SketchConstraintCoincedence -->
<sketch_shape_selector id="ConstraintEntityB" label="Second point" tooltip="Select a second point" shape_types="vertex">
<validator id="PartSet_DifferentObjects"/>
</sketch_shape_selector>
+ <validator id="PartSet_CoincidentSelection"/>
</feature>
<!-- SketchConstraintRigid -->
<shape_selector id="ConstraintEntityA" label="Object" tooltip="Select an object"
shape_types="edge vertex">
<validator id="PartSet_SketchEntityValidator" parameters="SketchPoint,SketchLine,SketchCircle,SketchArc"/>
+ <validator id="SketchPlugin_NotFixed"/>
</shape_selector>
- <validator id="PartSet_RigidValidator"/>
+ <validator id="PartSet_RigidSelection"/>
</feature>
<!-- SketchConstraintHorizontal -->
label="Line" tooltip="Select a line" shape_types="edge">
<validator id="GeomValidators_Edge" parameters="line"/>
</sketch_constraint_shape_selector>
+ <validator id="PartSet_HVDirSelection"/>
</feature>
<!-- SketchConstraintVertical -->
label="Line" tooltip="Select a line" shape_types="edge">
<validator id="GeomValidators_Edge" parameters="line"/>
</sketch_constraint_shape_selector>
+ <validator id="PartSet_HVDirSelection"/>
</feature>
<!-- SketchConstraintEqual -->
- <feature id="SketchConstraintEqual" title="Equal" tooltip="Create constraint defining equality of two objects" icon=":icons/equal.png">
+ <feature id="SketchConstraintEqual" title="Equal"
+ tooltip="Create constraint defining equal lengths of two lines or line and arc or equal radii of two arcs or two circles or arc and circle"
+ icon=":icons/equal.png">
<sketch_constraint_shape_selector id="ConstraintEntityA"
label="First object" tooltip="Select line, circle or arc" shape_types="edge">
</sketch_constraint_shape_selector>
<sketch_constraint_shape_selector id="ConstraintEntityB"
label="Last object" tooltip="Select line, circle or arc" shape_types="edge">
+ <validator id="SketchPlugin_EqualAttr" parameters="ConstraintEntityA"/>
+ <validator id="PartSet_DifferentObjects"/>
</sketch_constraint_shape_selector>
</feature>
<sketch_constraint_shape_selector id="ConstraintEntityB"
label="Last object" tooltip="Select line or arc" shape_types="edge">
+ <validator id="SketchPlugin_TangentAttr" parameters="ConstraintEntityA"/>
+ <validator id="PartSet_DifferentObjects"/>
</sketch_constraint_shape_selector>
+ <validator id="PartSet_TangentSelection"/>
</feature>
- <!-- SketchConstraintMirror -->
- <feature
- id="SketchConstraintMirror"
- title="Mirror"
- tooltip="Create constraint mirroring group of objects"
- internal="1" />
+
</group>
<group id="Edit">
label="Last object" tooltip="Select line or arc" shape_types="edge">
</sketch_constraint_shape_selector>
- <doublevalue_editor label="Value" tooltip="Fillet radius" id="ConstraintValue" default="0" min="0">
+ <doublevalue_editor label="Value" tooltip="Fillet radius" id="ConstraintValue" min="0">
<validator id="GeomValidators_Positive"/>
</doublevalue_editor>
+ <validator id="PartSet_FilletSelection"/>
+ </feature>
+
+ <!-- SketchConstraintMirror -->
+ <feature
+ id="SketchConstraintMirror"
+ title="Mirror" icon=":icons/mirror.png"
+ tooltip="Create constraint, mirroring group of objects">
+ <sketch_constraint_shape_selector id="ConstraintEntityA"
+ label="Mirror line" tooltip="Select mirror line" shape_types="edge">
+ <validator id="GeomValidators_Edge" parameters="line"/>
+ </sketch_constraint_shape_selector>
+ <multi_selector id="ConstraintMirrorList"
+ label="List of objects"
+ tooltip="Select list of mirroring objects"
+ type_choice="Edges">
+ <validator id="SketchPlugin_MirrorAttr" />
+ </multi_selector>
</feature>
</group>
</workbench>