SketchCircle SketchMacroCircle SketchArc SketchMacroArc
SketchEllipse SketchMacroEllipse SketchEllipticArc SketchMacroEllipticArc
SketchBSpline SketchMacroBSpline SketchMacroBSplinePeriodic SketchBSplinePeriodic
- SketchRectangle SketchMacroRectangle
+ SketchRectangle
SketchProjection
SketchCurveFitting
SketchConstraintLength SketchConstraintRadius SketchConstraintDistance SketchConstraintDistanceHorizontal SketchConstraintDistanceVertical
<boolvalue id="Auxiliary" label="Auxiliary" default="false" tooltip="Construction element" obligatory="0" change_visual_attributes="true"/>
<validator id="GeomValidators_Different" parameters="StartPoint,EndPoint"/>
</feature>
- <!-- SketchRectangle is a hidden feature. It is created inside SketchMacroRectangle. -->
- <feature
- id="SketchRectangle"
- title="Rectangle"
- tooltip="Create rectangle"
- icon="icons/Addons/rectangle.png"
- helpfile="rectangleFeature.html"
- internal="1">
- <sketch-2dpoint_selector id="rectangle_start_point"
- accept_expressions="0"
- title="Rectangle start point"
- tooltip="Start point coordinates"
- enable_value="enable_by_preferences"/>
- <sketch-2dpoint_selector id="rectangle_end_point"
- accept_expressions="0"
- title="Rectangle end point"
- tooltip="End point coordinates"
- enable_value="enable_by_preferences"/>
- <validator id="GeomValidators_Different" parameters="rectangle_start_point,rectangle_end_point"/>
- <boolvalue id="Auxiliary"
- label="Auxiliary"
- default="false"
- tooltip="Construction element"
- obligatory="0"
- change_visual_attributes="true"/>
- </feature>
- <!-- SketchMacroRectangle -->
- <feature
- id="SketchMacroRectangle"
- title="Rectangle"
- tooltip="Create rectangle"
- icon="icons/Addons/rectangle.png"
- helpfile="rectangleFeature.html">
- <toolbox id="rectangle_type" modified_in_edit="edit_rectangle_type">
- <box id="rectangle_type_by_start_and_end_points"
- icon="icons/Sketch/rectangle_pt_rad_32x32.png"
- title="Start and end points">
- <sketch-2dpoint_selector id="rectangle_start_point1"
- accept_expressions="0"
- title="Rectangle start point"
- tooltip="Start point coordinates"
- enable_value="enable_by_preferences"/>
- <sketch-2dpoint_selector id="rectangle_end_point1"
- accept_expressions="0"
- title="Rectangle end point"
- tooltip="End point coordinates"
- enable_value="enable_by_preferences"/>
- <validator id="GeomValidators_Different" parameters="rectangle_start_point1,rectangle_end_point1"/>
- </box>
- <box id="rectangle_type_by_center_and_end_points"
- icon="icons/Sketch/rectangle_pt_rad_32x32.png"
- title="Center and end points">
- <sketch-2dpoint_selector id="rectangle_center_point"
- accept_expressions="0"
- title="Rectangle center point"
- tooltip="Center point coordinates"
- enable_value="enable_by_preferences"/>
- <sketch-2dpoint_selector id="rectangle_end_point2"
- accept_expressions="0"
- title="Rectangle end point"
- tooltip="End point coordinates"
- enable_value="enable_by_preferences"/>
- <validator id="GeomValidators_Different" parameters="rectangle_end_point2,rectangle_center_point"/>
- </box>
- </toolbox>
- <boolvalue id="Auxiliary"
- label="Auxiliary"
- default="false"
- tooltip="Construction element"
- obligatory="0"
- change_visual_attributes="true"/>
- </feature>
</group>
<group id="Conical geometry">
<!-- SketchCircle is a hidden feature. It is created inside SketchMacroCircle. -->
tooltip="Center coordinates"
accept_expressions="0"
enable_value="enable_by_preferences"/>
+ <sketch-2dpoint_selector id="circle_rotate"
+ title="Rotate"
+ tooltip="Rotate coordinates"
+ accept_expressions="0"
+ enable_value="enable_by_preferences"/>
<labelvalue id="circle_radius"
icon="icons/Sketch/radius.png"
label="Radius"
enable_value="enable_by_preferences">
<validator id="SketchPlugin_CirclePassedPointValidator"/>
</sketch-2dpoint_selector>
+ <sketch-2dpoint_selector id="rotate_point"
+ reference_attribute="rotate_point_ref"
+ title="Rotate point"
+ tooltip="Rotate point coordinates"
+ accept_expressions="0"
+ enable_value="enable_by_preferences"/>
<validator id="GeomValidators_Different" parameters="center_point_ref,passed_point_ref"/>
+ <validator id="GeomValidators_Different" parameters="center_point_ref,rotate_point_ref"/>
</box>
<box id="circle_type_by_three_points"
icon="icons/Sketch/circle_3pt_32x32.png"
<validator id="SketchPlugin_DifferentReference" parameters="first_point_ref,second_point_ref,third_point_ref"/>
<validator id="SketchPlugin_ThirdPointValidator" parameters="third_point_ref"/>
</sketch-2dpoint_selector>
+ <sketch-2dpoint_selector id="rotate_point"
+ reference_attribute="rotate_point_ref"
+ title="Rotate point"
+ tooltip="Rotate point coordinates"
+ accept_expressions="0"
+ enable_value="enable_by_preferences"/>
<validator id="GeomValidators_Different" parameters="first_point_ref,second_point_ref,third_point_ref"/>
</box>
</toolbox>
tooltip="Offset a curve to a distance"
icon="icons/Sketch/offset.png"
helpfile="offsetFeature.html">
+ <toolbox id="offset_joint">
+ <box id="KeepDistance"
+ icon="icons/Sketch/offset_keep_distance_32x32.png"
+ title="Keep distance"/>
+ <box id="Arcs"
+ icon="icons/Sketch/offset_arcs_32x32.png"
+ title="Arcs"/>
+ <box id="Lines"
+ icon="icons/Sketch/offset_lines_32x32.png"
+ title="Lines"/>
+ </toolbox>
<sketch_multi_selector id="segments"
label="Edges"
tooltip="Select edges to offset"
tooltip="Reverse the offset"
default="false"
obligatory="0"/>
+ <boolvalue id="approx"
+ label="Approx by segments and arcs"
+ tooltip="Approx by segments and arcs"
+ default="false"
+ obligatory="0"/>
<action id="add_wire"
label="Select wire"
tooltip="Add the list of segments composing a wire with the selected items through the coincidence by boundary points"/>
<feature id="SketchConstraintMiddle" title="Middle point" tooltip="Create constraint for setting middle point on a line"
icon="icons/Sketch/middlepoint.png"
helpfile="middleFeature.html">
- <sketch_shape_selector id="ConstraintEntityA" label="First object" tooltip="Select a first object" shape_types="vertex edge">
- <validator id="PartSet_DifferentObjects"/>
- <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityB"/>
- <validator id="SketchPlugin_MiddlePointAttr" parameters="ConstraintEntityB"/>
- </sketch_shape_selector>
- <sketch_shape_selector id="ConstraintEntityB" label="Second object" tooltip="Select a second object" shape_types="vertex edge">
- <validator id="PartSet_DifferentObjects"/>
- <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityA"/>
- <validator id="SketchPlugin_MiddlePointAttr" parameters="ConstraintEntityA"/>
- </sketch_shape_selector>
+ <toolbox id="middle_type">
+ <box id="middle_type_by_line_and_point"
+ icon="icons/Sketch/middlepoint.png"
+ title="Line and point">
+ <sketch_shape_selector id="ConstraintEntityA"
+ label="First object"
+ tooltip="Select a first object"
+ shape_types="vertex edge"
+ use_external="true">
+ <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityB"/>
+ <validator id="SketchPlugin_MiddlePointAttr" parameters="ConstraintEntityB"/>
+ </sketch_shape_selector>
+ <sketch_shape_selector id="ConstraintEntityB"
+ label="Second object"
+ tooltip="Select a second object"
+ shape_types="vertex edge"
+ use_external="true">
+ <validator id="SketchPlugin_ExternalValidator" parameters="ConstraintEntityA"/>
+ <validator id="SketchPlugin_MiddlePointAttr" parameters="ConstraintEntityA"/>
+ </sketch_shape_selector>
+ </box>
+ <box id="middle_type_by_line"
+ icon="icons/Sketch/middlepoint_obj.png"
+ title="Line">
+ <sketch_shape_selector id="ConstraintEntityA"
+ label="Object"
+ tooltip="Select a first object"
+ shape_types="edge"
+ use_external="true">
+ </sketch_shape_selector>
+ </box>
+ </toolbox>
<validator id="PartSet_MiddlePointSelection"/>
</feature>