Draft Edit/sv: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(Updating to match new version of source page)
Line 1: Line 1:
{{Page_in_progress}}
<languages/>
<languages/>


Line 21: Line 20:
</div>
</div>


[[Image:Draft_Edit_example.png]]
{{Caption|4 objects in Draft Edit mode: a Draft Wire (red), a Draft Arc (black), a Draft BSpline (green) and a Draft BezCurve (magenta)}}


==Usage==
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.


See also: [[Draft_Snap|Draft Snap]] and [[Draft_Constrain|Draft Constrain]].
[[Image:Draft_edit_ex_01.jpg|400px]]
{{Caption|Example presentation of a wire, an arc and a cubic bezier curve.}}


# Optionally select one or more objects. Note that although multiple objects can be in Draft Edit mode, objects can only be edited one at a time.
[[Image:Draft_edit_ex_02.jpg|400px]]
# There are several ways to invoke the command:
{{Caption|Here wire selected}}
#* If you have not yet selected an object: double-click an object in the [[Tree_view|Tree view]]. This only work for supported Draft objects.
#* Press the {{Button|[[Image:Draft_Edit.svg|16px]] [[Draft_Edit|Draft Edit]]}} button.
#* Select the {{MenuCommand|Modification → [[Image:Draft_Edit.svg|16px]] Edit}} option from the menu.
#* Select the {{MenuCommand|Utilities → [[Image:Draft_Edit.svg|16px]] Edit}} option from the menu.
#* Use the keyboard shortcut: {{KEY|D}} then {{KEY|E}}.
# If you have not yet selected an object: select an object in the [[3D_view|3D view]].
# The selected objects are marked with temporary nodes, and the [[#Main_task_panel|Main task panel]] opens. See [[#Options|Options]] for more information.
# Optionally use a node or edge context menu. These context menus are only available for some Draft objects. See [[#Supported_objects|Supported objects]] for more information.
#* Do one of the following:
#** On all operating systems: hold down {{KEY|E}} and click the node or edge. To use {{KEY|E}} you may have to click in the [[3D_view|3D view]] once to ensure that it has the focus.
#** On Windows: hold down {{KEY|Alt}} and click the node or edge.
#** On Linux: hold down {{KEY|Shift}}+{{KEY|Alt}}, or {{KEY|Ctrl}}+{{KEY|Alt}}, and click the node or edge.
#** On macOS: hold down {{KEY|Option}} and click the node or edge.
#* Select an option from the context menu.
# Optionally move a node:
#* Click the node in the [[3D_view|3D view]].
#* The [[#Move_node_task_panel|Move node task panel]] opens. See [[#Options|Options]] for more information.
#* Pick a new point in the [[3D_view|3D view]], or type [[Draft_Coordinates|coordinates]] and press the {{Button|[[Image:Draft_AddPoint.svg|16px]] Enter point}} button.
#* The result depends on the object and the selected node, and in some case on the option selected in the node context menu.
# Press {{KEY|Esc}} or the {{Button|Close}} button to finish the command.


==Options==
[[Image:Draft_edit_ex_03.jpg|400px]]
{{Caption|Here selected wire marked for editing}}


The single character keyboard shortcuts mentioned here can be changed. See [[Draft_Preferences|Draft Preferences]].
==Bruk==


===Main task panel===
# Select the object you want to change in the [[tree_view|tree view]]. The selected object becomes {{ColoredText|rgb(102, 255, 102)|rgb(8, 8, 8)| green}} in drawing window. {{Version|0.19}}
# Press the {{Button|[[Image:Draft_Edit.svg|16px]] [[Draft_Edit|Draft Edit]]}} button, or double-click the object in the [[Tree_view|tree view]], or Select the {{MenuCommand|Edit → [[Image:Std_Edit.svg|16px]] Toggle Edit mode}} option from the menu. The selected object becomes {{ColoredText|rgb(8, 8, 8)|rgb(255, 255, 255)| black}} with {{Value|white}} vertices and in the [[combo_view|Combo View]] panel an edit window is opened.


* Press {{KEY|O}} or the {{Button|[[Image:Draft_CloseLine.svg|16px]] Close}} button to finish the command. If a single [[Draft_Wire|Draft Wire]] has been selected the wire is closed.
[[Image:Draft_edit_Combo_View_start.jpg|300px]]
* Press {{KEY|Esc}} or the {{Button|Close}} button to finish the command.
{{Caption|Draft Edit Combo View start}}


===Move node task panel===
[[Image:Draft_edit_Combo_View_editmode.jpg|300px]]
{{Caption|Draft Edit Combo View change after selecting specific vertex}}

# Then press {{Button|Ctrl}} + {{Button|alt}} or {{Button|Shift}} + {{Button|alt}} buttons (for Linux OS) respectively {{Button|alt}} button (for Windows OS) and move mouse cursor
##* '''over a line''', then {{Button|Left click}} and the appearing white field shows {{Value|add point}}. If you click on that field a new vertex is added to the line. If you release buttons and push {{Button|esc}} the command will be canceled.
[[Image:Draft_edit_add_point.jpg|500px]]
{{Caption|Draft Edit 3D View add point}}
##* '''over a vertex''', then {{Button|Left click}} and the appearing white field shows {{Value|delete point}}. If you click on that field the vertex is removed from the line. If you release buttons and push {{Button|esc}} the command will be canceled.
[[Image:Draft_edit_delete_point.jpg|500px]]
{{Caption|Draft Edit 3D View delete point}}

# Press {{Button|Esc}} or the {{Button|Close (O)}} button in the task panel to complete the current command.

<strike>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 {{KEY|E}} key or {{KEY|Alt}}+{{KEY|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.
</strike>

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==


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
Line 72: Line 72:
</div>
</div>


==Supported objects==
Some objects allow you to insert or delete points:

* Press the {{Button|[[Image:Draft AddPoint.svg|16px]] [[Draft_AddPoint|add point]]}} button, and then click on the wire or spline to add a new point.
===[[Image:Draft_Line.svg|24px]] [[Draft_Line|Draft Line]] and [[Image:Draft_Wire.svg|24px]] [[Draft_Wire|Draft Wire]]===
* Press the {{Button|[[Image:Draft DelPoint.svg|16px]] [[Draft_DelPoint|remove point]]}} button, and then click on a point along the wire or spline to remove it.

* If the start or end node of an open wire is moved so that they coincide, the wire is closed.
* Node context menu: {{Value|delete point}}. At least two points must remain.
* Edge context menu: {{Value|add point}}, {{Value|reverse wire}} ({{Version|0.20}}).

===[[Image:Draft_Arc.svg|24px]] [[Draft_Arc|Draft Arc]] and [[Image:Draft_Arc_3Points.svg|24px]] [[Draft_Arc_3Points|Draft Arc 3Points]]===

* Center node context menu: {{Value|move arc}}.
* Start node context menu: {{Value|set first angle}}.
* End node context menu: {{Value|set last angle}}.
* Mid node context menu: {{Value|set radius}}.
* Edge context menu: {{Value|invert arc}}. Currently this does not work.

===[[Image:Draft_Circle.svg|24px]] [[Draft_Circle|Draft Circle]]===

* No context menus for this object.

===[[Image:Draft_Ellipse.svg|24px]] [[Draft_Ellipse|Draft Ellipse]]===

* No context menus for this object.

===[[Image:Draft_Rectangle.svg|24px]] [[Draft_Rectangle|Draft Rectangle]]===

* No context menus for this object.

===[[Image:Draft_Polygon.svg|24px]] [[Draft_Polygon|Draft Polygon]]===

* No context menus for this object.

===[[Image:Draft_BSpline.svg|24px]] [[Draft_BSpline|Draft BSpline]]===

* If the start or end node of an open spline is moved so that they coincide, the spline is closed.
* Node context menu: {{Value|delete point}}. At least two points must remain for an open spline. For a closed spline the minimum number of points is three.
* Edge context menu: {{Value|add point}}.

===[[Image:Draft_CubicBezCurve.svg|24px]] [[Draft_CubicBezCurve|Draft CubicBezCurve]] and [[Image:Draft_BezCurve.svg|24px]] [[Draft_BezCurve|Draft BezCurve]]===

* If the start or end node of an open curve is moved so that they coincide, the curve is closed.
* Node context menu: {{Value|make sharp}}, {{Value|make tangent}}, {{Value|make symmetric}} and {{Value|delete point}}.
* Edge context menu: {{Value|add point}}.

===[[Image:Draft_Dimension.svg|24px]] [[Draft_Dimension|Draft Dimension]]===

* Angular dimensions cannot be edited.
* The start and end nodes of parametric dimensions cannot be moved.
* No context menus for this object.

===[[Image:Arch_Wall.svg|24px]] [[Arch_Wall|Arch Wall]]===

* A single node to control the height of the wall is displayed above the {{PropertyData|Placement}} of the wall.
* No context menus for this object.

===[[Image:Arch_Structure.svg|24px]] [[Arch_Structure|Arch Structure]]===

* No context menus for this object.

===[[Image:Arch_Window.svg|24px]] [[Arch_Window|Arch Window]]===

* No context menus for this object.

===[[Image:Arch_Space.svg|24px]] [[Arch_Space|Arch Space]]===

* No context menus for this object.

===[[Image:Arch_Panel_Cut.svg|24px]] [[Arch_Panel_Cut|Arch Panel Cut]]===

* No context menus for this object.

===[[Image:Arch_Panel_Sheet.svg|24px]] [[Arch_Panel_Sheet|Arch Panel Sheet]]===

* No context menus for this object.

===[[Image:Part_Box.svg|24px]] [[Part_Box|Part Box]]===

* No context menus for this object.

===[[Image:Part_Cylinder.svg|24px]] [[Part_Cylinder|Part Cylinder]]===

* No context menus for this object.

===[[Image:Part_Sphere.svg|24px]] [[Part_Sphere|Part Sphere]]===

* No context menus for this object.

===[[Image:Part_Cone.svg|24px]] [[Part_Cone|Part Cone]]===

* No context menus for this object.

===[[Image:Part_Line.svg|24px]] [[Part_Line|Part Line]]===

* No context menus for this object.

===[[Image:Sketcher_NewSketch.svg|24px]] [[Sketcher_NewSketch|Sketcher Sketch]]===

* Only sketches that contain a single unconstrained line can be edited. Currently this does not work properly.
* No context menus for this object.

==Preferences==

* The color of the temporary nodes is the same as the color of the snap symbols. This color can be changed in the preferences: {{MenuCommand|Edit → Preferences... → Draft → Visual settings → Visual Settings → Color}}. See [[Draft_Preferences|Draft Preferences]]. Note that this color is not used for the temporary nodes displayed for [[Draft_BezCurve|Draft BezCurves]]. These nodes use the {{PropertyView|Line Color}} of the curve instead.


==Scripting==
==Scripting==


See also: [https://www.freecadweb.org/api Autogenerated API documentation] and [[FreeCAD Scripting Basics|FreeCAD Scripting Basics]].
See also: [https://freecad.github.io/SourceDoc/ Autogenerated API documentation] and [[FreeCAD Scripting Basics|FreeCAD Scripting Basics]].


There is no Python method to Draft Edit objects. To emulate the results of the command geometric properties of objects have to be modified.
There is no programming interface available for the Edit tool. Each object is modified by changing its attributes directly.





Revision as of 09:19, 16 June 2021

Draft_Edit

Menyplacering
Draft → Edit
Arbetsbänkar
Skiss
Standard genväg
Ingen
Introducerad i version
-
Se även
Ingen

Beskrivning

Detta verktyg tillåter dig att grafiskt redigera vissa egenskaper av det markerade objektet, som hörnen i en tråd, eller längden och bredden på en Rektangel, eller radien på en Cirkel.

4 objects in Draft Edit mode: a Draft Wire (red), a Draft Arc (black), a Draft BSpline (green) and a Draft BezCurve (magenta)

Usage

See also: Draft Snap and Draft Constrain.

  1. Optionally select one or more objects. Note that although multiple objects can be in Draft Edit mode, objects can only be edited one at a time.
  2. There are several ways to invoke the command:
    • If you have not yet selected an object: double-click an object in the Tree view. This only work for supported Draft objects.
    • Press the Draft Edit button.
    • Select the Modification → Edit option from the menu.
    • Select the Utilities → Edit option from the menu.
    • Use the keyboard shortcut: D then E.
  3. If you have not yet selected an object: select an object in the 3D view.
  4. The selected objects are marked with temporary nodes, and the Main task panel opens. See Options for more information.
  5. Optionally use a node or edge context menu. These context menus are only available for some Draft objects. See Supported objects for more information.
    • Do one of the following:
      • On all operating systems: hold down E and click the node or edge. To use E you may have to click in the 3D view once to ensure that it has the focus.
      • On Windows: hold down Alt and click the node or edge.
      • On Linux: hold down Shift+Alt, or Ctrl+Alt, and click the node or edge.
      • On macOS: hold down Option and click the node or edge.
    • Select an option from the context menu.
  6. Optionally move a node:
    • Click the node in the 3D view.
    • The Move node task panel opens. See Options for more information.
    • Pick a new point in the 3D view, or type coordinates and press the Enter point button.
    • The result depends on the object and the selected node, and in some case on the option selected in the node context menu.
  7. Press Esc or the Close button to finish the command.

Options

The single character keyboard shortcuts mentioned here can be changed. See Draft Preferences.

Main task panel

  • Press O or the Close button to finish the command. If a single Draft Wire has been selected the wire is closed.
  • Press Esc or the Close button to finish the command.

Move node task panel

  • Redigeringsverktyget fungerar endast på ett markerat objekt åt gången.
  • Redigeringsläget fungerar endast på Skiss Trådar, Rektanglar, Cirklar och Cirkelbågar. Andra objekttyper måste först konverteras till Skissobjekt.
  • Klicka på ett redigeringshörn för att flytta det, klicka igen för att släppa det.
  • Nedtryckning av CTRL kommer att snäppa din punkt till tillgängliga snäpp-punkter.
  • Nedtryckning av SKIFT kommer att koppla ihop x och y värdena , så att formen behålls
  • Om du trycker på ESC så avbryts funktionen.
  • Om du klickar på redigeringskanppen igen så avslutas redigeringsläget
  • Skriv in siffror för att manuellt mata in en koordinat.

Supported objects

Draft Line and Draft Wire

  • If the start or end node of an open wire is moved so that they coincide, the wire is closed.
  • Node context menu: delete point. At least two points must remain.
  • Edge context menu: add point, reverse wire (introduced in version 0.20).

Draft Arc and Draft Arc 3Points

  • Center node context menu: move arc.
  • Start node context menu: set first angle.
  • End node context menu: set last angle.
  • Mid node context menu: set radius.
  • Edge context menu: invert arc. Currently this does not work.

Draft Circle

  • No context menus for this object.

Draft Ellipse

  • No context menus for this object.

Draft Rectangle

  • No context menus for this object.

Draft Polygon

  • No context menus for this object.

Draft BSpline

  • If the start or end node of an open spline is moved so that they coincide, the spline is closed.
  • Node context menu: delete point. At least two points must remain for an open spline. For a closed spline the minimum number of points is three.
  • Edge context menu: add point.

Draft CubicBezCurve and Draft BezCurve

  • If the start or end node of an open curve is moved so that they coincide, the curve is closed.
  • Node context menu: make sharp, make tangent, make symmetric and delete point.
  • Edge context menu: add point.

Draft Dimension

  • Angular dimensions cannot be edited.
  • The start and end nodes of parametric dimensions cannot be moved.
  • No context menus for this object.

Arch Wall

  • A single node to control the height of the wall is displayed above the DataPlacement of the wall.
  • No context menus for this object.

Arch Structure

  • No context menus for this object.

Arch Window

  • No context menus for this object.

Arch Space

  • No context menus for this object.

Arch Panel Cut

  • No context menus for this object.

Arch Panel Sheet

  • No context menus for this object.

Part Box

  • No context menus for this object.

Part Cylinder

  • No context menus for this object.

Part Sphere

  • No context menus for this object.

Part Cone

  • No context menus for this object.

Part Line

  • No context menus for this object.

Sketcher Sketch

  • Only sketches that contain a single unconstrained line can be edited. Currently this does not work properly.
  • No context menus for this object.

Preferences

  • The color of the temporary nodes is the same as the color of the snap symbols. This color can be changed in the preferences: Edit → Preferences... → Draft → Visual settings → Visual Settings → Color. See Draft Preferences. Note that this color is not used for the temporary nodes displayed for Draft BezCurves. These nodes use the VyLine Color of the curve instead.

Scripting

See also: Autogenerated API documentation and FreeCAD Scripting Basics.

There is no Python method to Draft Edit objects. To emulate the results of the command geometric properties of objects have to be modified.