shape_types="edge vertex">
<validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityB"/>
<validator id="PartSet_DifferentObjects"/>
- <validator id="GeomValidators_EdgeOrVertex"/>
+ <validator id="GeomValidators_ShapeType" parameters="vertex,line"/>
</sketch_shape_selector>/>
<sketch_shape_selector
id="ConstraintEntityB"
<validator id="PartSet_DifferentObjects"/>
<validator id="SketchPlugin_DistanceAttr" parameters="ConstraintEntityA"/>
<validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityA"/>
- <validator id="GeomValidators_EdgeOrVertex"/>
+ <validator id="GeomValidators_ShapeType" parameters="vertex,line"/>
</sketch_shape_selector>
<sketch-2dpoint_selector id="ConstraintFlyoutValuePnt" default="computed" internal="1" obligatory="0"/>
<!-- SketchConstraintLength -->
<feature id="SketchConstraintLength" title="Length" tooltip="Set fixed length of a line segment" icon=":icons/length.png">
<label title="Select a line on which to calculate length" tooltip="Select a line on which to calculate length"/>
- <shape_selector id="ConstraintEntityA" label="Line" tooltip="Select an line"
- shape_types="edge" >
- <validator id="GeomValidators_Edge" parameters="line"/>
- </shape_selector>
+ <shape_selector id="ConstraintEntityA" label="Line" tooltip="Select an line" shape_types="edge" >
+ <validator id="GeomValidators_ShapeType" parameters="line"/>
+ </shape_selector>
<sketch-2dpoint_selector id="ConstraintFlyoutValuePnt" default="computed" internal="1" obligatory="0"/>
<doublevalue_editor label="Value" tooltip="Length" id="ConstraintValue" default="computed">
<validator id="GeomValidators_Positive"/>
<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"/>
<shape_selector id="ConstraintEntityA" label="Circle or Arc" tooltip="Select a circle or an arc"
shape_types="edge">
- <validator id="GeomValidators_Edge" parameters="circle"/>
+ <validator id="GeomValidators_ShapeType" parameters="circle"/>
</shape_selector>
<sketch-2dpoint_selector id="ConstraintFlyoutValuePnt" default="computed" internal="1" obligatory="0"/>
<doublevalue_editor label="Value" tooltip="Radius" id="ConstraintValue" default="computed"/>
<feature id="SketchConstraintParallel" title="Parallel" tooltip="Create constraint defining two parallel lines" icon=":icons/parallel.png">
<sketch_shape_selector id="ConstraintEntityA"
label="First line" tooltip="Select a line" shape_types="edge">
- <validator id="GeomValidators_Edge" parameters="line"/>
+ <validator id="GeomValidators_ShapeType" parameters="line"/>
<validator id="PartSet_DifferentObjects"/>
<validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityB"/>
</sketch_shape_selector>
<sketch_shape_selector id="ConstraintEntityB" label="Second line" tooltip="Select a line"
shape_types="edge">
- <validator id="GeomValidators_Edge" parameters="line"/>
+ <validator id="GeomValidators_ShapeType" parameters="line"/>
<validator id="PartSet_DifferentObjects"/>
<validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityA"/>
</sketch_shape_selector>
shape_types="edge">
<validator id="PartSet_DifferentObjects"/>
<validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityB"/>
- <validator id="GeomValidators_Edge" parameters="line"/>
+ <validator id="GeomValidators_ShapeType" parameters="line"/>
</sketch_shape_selector>
<sketch_shape_selector id="ConstraintEntityB"
shape_types="edge">
<validator id="PartSet_DifferentObjects"/>
<validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityA"/>
- <validator id="GeomValidators_Edge" parameters="line"/>
+ <validator id="GeomValidators_ShapeType" parameters="line"/>
</sketch_shape_selector>
<validator id="PartSet_PerpendicularSelection"/>
</feature>
<sketch_shape_selector id="ConstraintEntityA" label="Object"
tooltip="Select point, line end point, line, center of circle or arc."
shape_types="edge vertex">
- <!--<validator id="PartSet_SketchEntityValidator" parameters="SketchPoint,SketchLine,SketchCircle,SketchArc"/>-->
- <validator id="GeomValidators_EdgeOrVertex"/>
+ <validator id="GeomValidators_ShapeType" parameters="vertex,line,circle"/>
<validator id="SketchPlugin_NotFixed"/>
</sketch_shape_selector>
<validator id="PartSet_RigidSelection"/>
<feature id="SketchConstraintHorizontal" title="Horizontal" tooltip="Create constraint defining horizontal line" icon=":icons/horisontal.png">
<sketch_shape_selector id="ConstraintEntityA"
label="Line" tooltip="Select a line" shape_types="edge" use_external="false">
- <validator id="GeomValidators_Edge" parameters="line"/>
+ <validator id="GeomValidators_ShapeType" parameters="line"/>
</sketch_shape_selector>
<validator id="PartSet_HVDirSelection"/>
</feature>
<feature id="SketchConstraintVertical" title="Vertical" tooltip="Create constraint defining vertical line" icon=":icons/vertical.png">
<sketch_shape_selector id="ConstraintEntityA"
label="Line" tooltip="Select a line" shape_types="edge" use_external="false">
- <validator id="GeomValidators_Edge" parameters="line"/>
+ <validator id="GeomValidators_ShapeType" parameters="line"/>
</sketch_shape_selector>
<validator id="PartSet_HVDirSelection"/>
</feature>
<validator id="PartSet_DifferentObjects"/>
</sketch_shape_selector>
- <doublevalue label="Value" tooltip="Fillet radius" id="ConstraintValue" min="0">
+ <doublevalue label="Value" tooltip="Fillet radius" id="ConstraintValue" min="0" default="1" use_reset="false">
<validator id="GeomValidators_Positive"/>
</doublevalue>
<validator id="PartSet_FilletSelection"/>
tooltip="Create constraint, mirroring group of objects">
<sketch_shape_selector id="ConstraintEntityA"
label="Mirror line" tooltip="Select mirror line" shape_types="edge">
- <validator id="GeomValidators_Edge" parameters="line"/>
+ <validator id="GeomValidators_ShapeType" parameters="line"/>
</sketch_shape_selector>
<sketch_multi_selector id="ConstraintMirrorList"
- label="List of objects"
+ label="segments"
tooltip="Select list of mirroring objects"
type_choice="Edges"
use_external="true">
<feature
id="SketchMultiTranslation"
title="Translation" icon=":icons/translate.png"
- tooltip="Make a number of shifted copies of a group of objects">
+ tooltip="Translation">
<sketch_multi_selector id="MultiTranslationList"
- label="List of objects"
+ label="segments"
tooltip="Select list of translating objects"
type_choice="Edges"
use_external="true">
<integervalue id="MultiTranslationCopies"
label="Number of copies"
tooltip="Number of copies"
- default="1" min="1">
+ default="1" min="1" use_reset="false">
<validator id="GeomValidators_Positive"/>
</integervalue>
</feature>
<feature
id="SketchMultiRotation"
title="Rotation" icon=":icons/rotate.png"
- tooltip="Make a number of rotated copies of a group of objects">
+ tooltip="Rotation">
<sketch_multi_selector id="MultiRotationList"
- label="List of objects"
+ label="segments"
tooltip="Select list of rotating objects"
type_choice="Edges"
use_external="true">
id="MultiRotationCenter"
title="Center of rotation"
tooltip="Center of rotation"/>
- <doublevalue id="MultiRotationAngle"
- label="Angle"
- tooltip="Rotation angle"/>
+ <point2dangle id="MultiRotationAngle"
+ first_point="MultiRotationCenter"
+ label="Angle"
+ icon=":icons/angle.png"
+ tooltip="Rotation angle"
+ default="90"/>
<integervalue id="MultiRotationCopies"
label="Number of copies"
tooltip="Number of copies"
- default="1" min="1">
+ default="1" min="1" use_reset="false">
<validator id="GeomValidators_Positive"/>
</integervalue>
</feature>