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)
(16 intermediate revisions by 2 users not shown)
Line 4: Line 4:
|[[Draft_PointLinkArray|PointLinkArray]]
|[[Draft_PointLinkArray|PointLinkArray]]
|[[Draft_SubelementHighlight|SubelementHighlight]]
|[[Draft_SubelementHighlight|SubelementHighlight]]
|[[Draft_Module|Draft]]
|[[Draft_Workbench|Draft]]
|IconL=Draft_PointLinkArray.svg
|IconL=Draft_PointLinkArray.svg
|IconR=Draft_SubelementHighlight.svg
|IconR=Draft_SubelementHighlight.svg
Line 11: Line 11:


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
{{GuiCommand/sv|Name=Draft_Edit|Workbenches=[[Draft Module/sv|Skiss]]|MenuLocation=Draft → Edit}}
{{GuiCommand/sv|Name=Draft_Edit|Workbenches=[[Draft_Workbench/sv|Skiss]]|MenuLocation=Draft → Edit}}
</div>
</div>


<span id="Description"></span>
==Beskrivning==
==Beskrivning==


Line 29: Line 30:
# 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.
# 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.
# There are several ways to invoke the command:
# There are several ways to invoke the command:
#* 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.
#* If you have not yet selected an object: double-click an object in the [[Tree_view|Tree view]]. This only works for supported Draft objects.
#* Press the {{Button|[[Image:Draft_Edit.svg|16px]] [[Draft_Edit|Draft Edit]]}} button.
#* Press the {{Button|[[Image:Draft_Edit.svg|16px]] [[Draft_Edit|Edit]]}} button.
#* Select the {{MenuCommand|Modification → [[Image:Draft_Edit.svg|16px]] Edit}} option from the menu.
#* 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}}.
#* Use the keyboard shortcut: {{KEY|D}} then {{KEY|E}}.
#* For a single object: select the {{MenuCommand|Edit}} option from the [[Tree_view|Tree view]] context menu. This only works for supported Draft objects. {{Version|0.21}}
# If you have not yet selected an object: select an object in the [[3D_view|3D view]].
# 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.
# The selected objects are marked with temporary nodes, and the [[#Main_task_panel|Main task panel]] opens. See [[#Options|Options]] for more information.
Line 40: Line 41:
#** 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 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 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 Linux: hold down {{KEY|Shift}}+{{KEY|Alt}}, {{KEY|Ctrl}}+{{KEY|Alt}} or {{KEY|Alt}}, and click the node or edge.
#** On macOS: hold down {{KEY|Option}} 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.
#* Select an option from the context menu.
#* If the selected option requires point input:
#** The [[#Edit_node_task_panel|Edit node task panel]] opens. See [[#Options|Options]] for more information.
#** Pick a point in the [[3D_view|3D view]], or type coordinates and press the {{Button|[[Image:Draft_AddPoint.svg|16px]] Enter point}} button.
# Optionally move a node:
# Optionally move a node:
#* Click the node in the [[3D_view|3D view]].
#* 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.
#* The [[#Edit_node_task_panel|Edit 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.
#* Pick a point in the [[3D_view|3D view]], or type 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.
#* The result depends on the object and the selected node.
# Press {{KEY|Esc}} or the {{Button|Close}} button to finish the command.
# Press {{KEY|Esc}} or the {{Button|Close}} button (the button at the top of the task panel, without the image) to finish the command.


==Options==
==Options==


The single character keyboard shortcuts mentioned here can be changed. See [[Draft_Preferences|Draft Preferences]].
The single character keyboard shortcuts available in the task panel can be changed. See [[Draft_Preferences|Draft Preferences]]. The shortcuts mentioned here are the default shortcuts.


===Main task panel===
===Main task panel===


* 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.
* Press {{KEY|Esc}} or the {{Button|Close}} button to finish the command.
* Press {{KEY|Esc}} or the {{Button|Close}} button to finish the command.


===Move node task panel===
===Edit node task panel===


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
Line 69: Line 72:
* Om du trycker på {{KEY|ESC}} så avbryts funktionen.
* Om du trycker på {{KEY|ESC}} så avbryts funktionen.
* Om du klickar på redigeringskanppen igen så avslutas redigeringsläget
* Om du klickar på redigeringskanppen igen så avslutas redigeringsläget
* Skriv in siffror för att [[Draft_Coordinates/sv|manuellt mata in en koordinat]].
* Skriv in siffror för att manuellt mata in en koordinat.
</div>
</div>


Line 77: Line 80:


* If the start or end node of an open wire is moved so that they coincide, the wire is closed.
* 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.
* Node context menu: {{Value|Delete point}}. At least two points must remain.
* Edge context menu: {{Value|add point}}, {{Value|reverse wire}} ({{Version|0.20}}).
* Edge context menu: {{Value|Add point}}, {{Value|Open wire}}/{{Value|Close wire}} ({{Version|0.21}}) and {{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]]===
===[[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}}.
* Center node context menu: {{Value|Move arc}}.
* Start node context menu: {{Value|set first angle}}.
* Start node context menu: {{Value|Set first angle}}.
* End node context menu: {{Value|set last angle}}.
* End node context menu: {{Value|Set last angle}}.
* Mid node context menu: {{Value|set radius}}.
* Mid node context menu: {{Value|Set radius}}.
* Edge context menu: {{Value|invert arc}}. Currently this does not work.
* Edge context menu: {{Value|Invert arc}}.


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


* If the start or end node of an open spline is moved so that they coincide, the spline is closed.
* 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.
* 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}}.
* Edge context menu: {{Value|Add point}}, {{Value|Open wire}}/{{Value|Close wire}} ({{Version|0.21}}) and {{Value|Reverse spline}} ({{Version|0.21}}).


===[[Image:Draft_CubicBezCurve.svg|24px]] [[Draft_CubicBezCurve|Draft CubicBezCurve]] and [[Image:Draft_BezCurve.svg|24px]] [[Draft_BezCurve|Draft BezCurve]]===
===[[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.
* 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}}.
* Node context menu: {{Value|Delete point}}, {{Value|Make sharp}}, {{Value|Make tangent}} and {{Value|Make symmetric}}.
* Edge context menu: {{Value|add point}}.
* Edge context menu: {{Value|Add point}}, {{Value|Open wire}}/{{Value|Close wire}} ({{Version|0.21}}) and {{Value|Reverse curve}} ({{Version|0.21}}).


===[[Image:Draft_Dimension.svg|24px]] [[Draft_Dimension|Draft Dimension]]===
===[[Image:Draft_Dimension.svg|24px]] [[Draft_Dimension|Draft Dimension]]===
Line 169: Line 172:
===[[Image:Sketcher_NewSketch.svg|24px]] [[Sketcher_NewSketch|Sketcher Sketch]]===
===[[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.
* Only sketches that contain a single unconstrained line can be edited.
* No context menus for this object.
* No context menus for this object.


==Preferences==
==Preferences==


See also: [[Preferences_Editor|Preferences Editor]] and [[Draft_Preferences|Draft 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 settingsVisual 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.

* 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 → Grid and snappingSnap symbol color}}. 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.
* The size of the nodes depends on: {{MenuCommand|Edit → Preferences... → Display → 3D View → Marker size}}. {{Version|0.22}}


==Scripting==
==Scripting==
Line 186: Line 192:
|[[Draft_PointLinkArray|PointLinkArray]]
|[[Draft_PointLinkArray|PointLinkArray]]
|[[Draft_SubelementHighlight|SubelementHighlight]]
|[[Draft_SubelementHighlight|SubelementHighlight]]
|[[Draft_Module|Draft]]
|[[Draft_Workbench|Draft]]
|IconL=Draft_PointLinkArray.svg
|IconL=Draft_PointLinkArray.svg
|IconR=Draft_SubelementHighlight.svg
|IconR=Draft_SubelementHighlight.svg

Revision as of 10:55, 10 January 2024

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 works for supported Draft objects.
    • Press the Edit button.
    • Select the Modification → Edit option from the menu.
    • Use the keyboard shortcut: D then E.
    • For a single object: select the Edit option from the Tree view context menu. This only works for supported Draft objects. introduced in version 0.21
  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, Ctrl+Alt or 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.
    • If the selected option requires point input:
  6. Optionally move a node:
    • Click the node in the 3D view.
    • The Edit node task panel opens. See Options for more information.
    • Pick a point in the 3D view, or type coordinates and press the Enter point button.
    • The result depends on the object and the selected node.
  7. Press Esc or the Close button (the button at the top of the task panel, without the image) to finish the command.

Options

The single character keyboard shortcuts available in the task panel can be changed. See Draft Preferences. The shortcuts mentioned here are the default shortcuts.

Main task panel

  • Press Esc or the Close button to finish the command.

Edit 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, Open wire/Close wire (introduced in version 0.21) and 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.

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, Open wire/Close wire (introduced in version 0.21) and Reverse spline (introduced in version 0.21).

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: Delete point, Make sharp, Make tangent and Make symmetric.
  • Edge context menu: Add point, Open wire/Close wire (introduced in version 0.21) and Reverse curve (introduced in version 0.21).

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.
  • No context menus for this object.

Preferences

See also: Preferences Editor and Draft 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 → Grid and snapping → Snap symbol color. 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.
  • The size of the nodes depends on: Edit → Preferences... → Display → 3D View → Marker size. introduced in version 0.22

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.