Draft Edit: Difference between revisions

From FreeCAD Documentation
No edit summary
No edit summary
Line 55: Line 55:


<!--T:13-->
<!--T:13-->
The tool {{ColoredText||DarkRed|mostly}} works on Draft objects: [[Image:Draft_Wire.svg|24px]][[Draft_Wire|Draft Wires]], [[Image:Draft_Line.svg|24px]][[Draft_Line|Draft Lines]], [[Image:Draft_Rectangle.svg|24px]][[Draft_Rectangle|Draft Rectangles]], [[Image:Draft_Circle.svg|24px]][[Draft_Circle|Draft Circles]], [[Image:Draft_Arc.svg|24px]][[Draft_Arc|Draft Arcs]], [[Image:Draft_Polygon.svg|24px]][[Draft_Polygon|Draft Polygons]], and [[Image:Draft_BSpline.svg|24px]][[Draft_BSpline|Draft BSplines]]. Other object types must first be converted to these objects.
The tool {{ColoredText||DarkRed|mostly ??}} works on Draft objects: [[Image:Draft_Wire.svg|24px]][[Draft_Wire|Draft Wires]], [[Image:Draft_Line.svg|24px]][[Draft_Line|Draft Lines]], [[Image:Draft_Rectangle.svg|24px]][[Draft_Rectangle|Draft Rectangles]], [[Image:Draft_Circle.svg|24px]][[Draft_Circle|Draft Circles]], [[Image:Draft_Arc.svg|24px]][[Draft_Arc|Draft Arcs]], [[Image:Draft_Polygon.svg|24px]][[Draft_Polygon|Draft Polygons]], and [[Image:Draft_BSpline.svg|24px]][[Draft_BSpline|Draft BSplines]]. Other object types must first be converted to these objects.


==Options== <!--T:6-->
==Options== <!--T:6-->

Revision as of 15:58, 31 March 2021

This documentation is a work in progress. Please don't mark it as translatable since it will change in the next hours and days.

Draft Edit

Menu location
Modification → Edit
Workbenches
Draft, Arch
Default shortcut
D E
Introduced in version
-
See also
Std Edit, Draft AddPoint, Draft DelPoint

Description

The Draft Edit tool allows you to graphically edit certain properties of the selected object, such as:

It does nothing more than enter the object's edit mode. Another way to edit the object is by double clicking on the element in the tree view.

File:Draft edit example.jpg

Editing a wire, an arc and a cubic bezier curve (contradiction!, see below paragraph: probably this should be a Bspline). Context menu is displayed for a knot of the curve The appearance of context is actually different.

Usage

  1. Select the object you want to change in the tree view. The selected object becomes green in drawing window. introduced in version 0.19
  2. Press the Draft Edit button, or double-click the object in the tree view, or Select the Edit → Toggle Edit mode option from the menu. The selected object becomes black with white vertices and in the task panel an edit window is opened.
  3. Then press Ctrl + alt or Shift + alt buttons (for Linux OS) respectively alt button (for Windows OS) and move mouse cursor
      • over a line, then Left click and the appearing white field shows add point. If you click on that field a new vertex is added to the line. If you release buttons and push esc the command will be canceled.
      • over a vertex, then Left click and the appearing white field shows delete point. If you click on that field the vertex is removed from the line. If you release buttons and push esc the command will be canceled.
  4. Press Esc or the Close (O) button in the task panel to complete the current command.

Version 0.19 added new functionalities to Draft Edit such as multiple object editing and custom context menu. To display the context menu, user can press E key or Alt+Left click while overing an edit node or an edited object. Beware not every object contains custom options, so the context menu will be only displayed for supported objects.

The tool mostly ?? works on Draft objects: Draft Wires, Draft Lines, Draft Rectangles, Draft Circles, Draft Arcs, Draft Polygons, and Draft BSplines. Other object types must first be converted to these objects.

Options

  • Press X, Y or Z after a point to constrain the next point on the given axis.
  • To enter coordinates manually, simply enter the numbers, then press Enter between each X, Y and Z component. You can press the add point button when you have the desired values to insert the point.
  • Hold Ctrl while drawing to force snapping your point to the nearest snap location, independently of the distance.
  • Hold Shift while drawing to constrain your next point horizontally or vertically in relation to the last one.
  • Press Esc or the Close button or the Draft Edit button again to finish editing.

Some objects allow you to insert or delete points:

  • Press the add point button, and then click on the wire or spline to add a new point.
  • Press the remove point button, and then click on a point along the wire or spline to remove it.

Scripting

See also: Autogenerated API documentation and FreeCAD Scripting Basics.

There is no programming interface available for the Edit tool. Each object is modified by changing its attributes directly.