Draft Arc: Difference between revisions

From FreeCAD Documentation
No edit summary
(Shortcut problem was fixed. See https://github.com/FreeCAD/FreeCAD/pull/5072.)
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Page_in_progress}}
<languages/>
<languages/>
<translate>
<translate>
Line 7: Line 6:
|[[Draft_Fillet|Fillet]]
|[[Draft_Fillet|Fillet]]
|[[Draft_Arc_3Points|Arc 3Points]]
|[[Draft_Arc_3Points|Arc 3Points]]
|[[Draft_Module|Draft]]
|[[Draft_Workbench|Draft]]
|IconL=Draft_Fillet.svg
|IconL=Draft_Fillet.svg
|IconR=Draft_Arc_3Points.svg
|IconR=Draft_Arc_3Points.svg
Line 13: Line 12:
}}
}}


<!--Shortcut not in menu but does work: FreeCAD 0.19.24219-->
<!--T:1-->
<!--T:1-->
{{GuiCommand
{{GuiCommand
|Name=Draft Arc
|Name=Draft Arc
|MenuLocation=Drafting → Arc tools → Arc
|MenuLocation=Drafting → Arc tools → Arc
|Workbenches=[[Draft_Module|Draft]], [[Arch_Module|Arch]]
|Workbenches=[[Draft_Workbench|Draft]], [[Arch_Workbench|Arch]]
|Shortcut={{KEY|A}} {{KEY|R}}
|Shortcut={{KEY|A}} {{KEY|R}}
|Version=0.7
|Version=0.7
Line 27: Line 25:


<!--T:21-->
<!--T:21-->
The [[Image:Draft_Arc.svg|24px]] [[Draft_Arc|Draft Arc]] command creates a circular arc in the current [[Draft_SelectPlane|working plane]] from a center, a radius, a start angle and an aperture angle. The radius and the angles can be defined by picking points.
The [[Image:Draft_Arc.svg|24px]] '''Draft Arc''' command creates a circular arc in the current [[Draft_SelectPlane|working plane]] from a center, a radius, a start angle and an aperture angle. The radius and the angles can be defined by picking points.


<!--T:22-->
A Draft Arc is in fact a [[Draft_Circle|Draft Circle]] with a {{PropertyData|First Angle}} that is not the same as its {{PropertyData|Last Angle}}.
A Draft Arc is in fact a [[Draft_Circle|Draft Circle]] with a {{PropertyData|First Angle}} that is not the same as its {{PropertyData|Last Angle}}.


Line 37: Line 36:
{{Caption|Arc defined by four points, center, radius, initial point of arc and final point of arc}}
{{Caption|Arc defined by four points, center, radius, initial point of arc and final point of arc}}


==Usage==
==Usage== <!--T:23-->


<!--T:24-->
See also: [[Draft_Tray|Draft Tray]], [[Draft_Snap|Draft Snap]] and [[Draft_Constrain|Draft Constrain]].
See also: [[Draft_Tray|Draft Tray]], [[Draft_Snap|Draft Snap]] and [[Draft_Constrain|Draft Constrain]].


Line 45: Line 45:
#* Press the {{Button|[[Image:Draft_Arc.svg|16px]] [[Draft_Arc|Draft Arc]]}} button.
#* Press the {{Button|[[Image:Draft_Arc.svg|16px]] [[Draft_Arc|Draft Arc]]}} button.
#* Select the {{MenuCommand|Drafting → Arc tools → [[Image:Draft_Arc.svg|16px]] Arc}} option from the menu.
#* Select the {{MenuCommand|Drafting → Arc tools → [[Image:Draft_Arc.svg|16px]] Arc}} option from the menu.
#* Use the keyboard shortcut: {{KEY|A}} then {{KEY|R}}.
#* Use the keyboard shortcut: {{KEY|A}} then {{KEY|R}}. {{Version|0.20}}
# The {{MenuCommand|Arc}} task panel opens. See [[#Options|Options]] for more information.
# The {{MenuCommand|Arc}} task panel opens. See [[#Options|Options]] for more information.
# Pick the first point, the center of the arc, in the [[3D_view|3D view]], or type [[Draft_Coordinates|coordinates]] and press the {{Button|[[Image:Draft_AddPoint.svg|16px]] Enter point}} button.
# Pick the first point, the center of the arc, in the [[3D_view|3D view]], or type coordinates and press the {{Button|[[Image:Draft_AddPoint.svg|16px]] Enter point}} button.
# Pick the second point in the [[3D_view|3D view]], or enter a {{MenuCommand|Radius}}.
# Pick the second point in the [[3D_view|3D view]], or enter a {{MenuCommand|Radius}}.
# Pick the third point in the [[3D_view|3D view]], or enter a {{MenuCommand|Start angle}}.
# Pick the third point in the [[3D_view|3D view]], or enter a {{MenuCommand|Start angle}}.
# Pick the fourth point in the [[3D_view|3D view]], or enter an {{MenuCommand|Aperture angle}}.
# Pick the fourth point in the [[3D_view|3D view]], or enter an {{MenuCommand|Aperture angle}}.


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


<!--T:26-->
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.
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.


Line 60: Line 61:
* The {{MenuCommand|Relative}} checkbox has no purpose for this command.
* The {{MenuCommand|Relative}} checkbox has no purpose for this command.
* Press {{KEY|G}} or click the {{MenuCommand|Global}} checkbox to toggle global mode. If global mode is on, coordinates are relative to the global coordinate system, else they are relative to the [[Draft_SelectPlane|working plane]] coordinate system. {{Version|0.20}}
* Press {{KEY|G}} or click the {{MenuCommand|Global}} checkbox to toggle global mode. If global mode is on, coordinates are relative to the global coordinate system, else they are relative to the [[Draft_SelectPlane|working plane]] coordinate system. {{Version|0.20}}
* Press {{KEY|T}} or click the {{MenuCommand|Continue}} checkbox to toggle continue mode. If continue mode is on, the command will restart after finishing the arc, allowing you to continue drawing arcs.
* Press {{KEY|T}} or click the {{MenuCommand|Continue}} checkbox to toggle continue mode. If continue mode is on, the command will restart after finishing, allowing you to continue creating arcs.
* Press {{KEY|S}} to switch [[Draft_Snap|Draft snapping]] on or off.
* Press {{KEY|Esc}} or the {{Button|Close}} button to abort the command.
* Press {{KEY|Esc}} or the {{Button|Close}} button to abort the command.


==Notes==
==Notes== <!--T:27-->


<!--T:11-->
<!--T:11-->
* A Draft Arc can be edited with the [[Draft_Edit|Draft Edit]] command.
* A Draft Arc can be edited with the [[Draft_Edit|Draft Edit]] command.
* If the {{MenuCommand|Edit → Preferences... → Draft → General settings → Draft tools options → Use Part Primitives when available}} option is checked, the command will create a [[Part_Circle|Part Circle]] instead of a Draft Circle. See [[Draft_Preferences#General_settings|Draft Preferences]].


==Preferences== <!--T:30-->
==Properties==

<!--T:31-->
See also: [[Preferences_Editor|Preferences Editor]] and [[Draft_Preferences|Draft Preferences]].

<!--T:32-->
* To change the number of decimals used for the input of coordinates, radii and angles: {{MenuCommand|Edit → Preferences... → General → Units → Units settings → Number of decimals}}.
* If the {{MenuCommand|Edit → Preferences... → Draft → General settings → Draft tools options → Use Part Primitives when available}} option is checked, the command will create a [[Part_Circle|Part Circle]] instead of a Draft Circle.

==Properties== <!--T:28-->


<!--T:6-->
<!--T:6-->
See [[Draft_Circle#Properties|Draft Circle]].
See [[Draft_Circle#Properties|Draft Circle]].


==Scripting==
==Scripting== <!--T:29-->


<!--T:7-->
<!--T:7-->
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]].


<!--T:15-->
<!--T:15-->
Line 105: Line 115:
|[[Draft_Fillet|Fillet]]
|[[Draft_Fillet|Fillet]]
|[[Draft_Arc_3Points|Arc 3Points]]
|[[Draft_Arc_3Points|Arc 3Points]]
|[[Draft_Module|Draft]]
|[[Draft_Workbench|Draft]]
|IconL=Draft_Fillet.svg
|IconL=Draft_Fillet.svg
|IconR=Draft_Arc_3Points.svg
|IconR=Draft_Arc_3Points.svg

Revision as of 13:01, 5 October 2021

Draft Arc

Menu location
Drafting → Arc tools → Arc
Workbenches
Draft, Arch
Default shortcut
A R
Introduced in version
0.7
See also
Draft Arc 3Points, Draft Circle

Description

The Draft Arc command creates a circular arc in the current working plane from a center, a radius, a start angle and an aperture angle. The radius and the angles can be defined by picking points.

A Draft Arc is in fact a Draft Circle with a DataFirst Angle that is not the same as its DataLast Angle.

Arc defined by four points, center, radius, initial point of arc and final point of arc

Usage

See also: Draft Tray, Draft Snap and Draft Constrain.

  1. There are several ways to invoke the command:
  2. The Arc task panel opens. See Options for more information.
  3. Pick the first point, the center of the arc, in the 3D view, or type coordinates and press the Enter point button.
  4. Pick the second point in the 3D view, or enter a Radius.
  5. Pick the third point in the 3D view, or enter a Start angle.
  6. Pick the fourth point in the 3D view, or enter an Aperture angle.

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.

  • To manually enter the coordinates for the center enter the X, Y and Z component, and press Enter after each. Or you can press the Enter point button when you have the desired values. It is advisable to move the pointer out of the 3D view before entering coordinates.
  • The Relative checkbox has no purpose for this command.
  • Press G or click the Global checkbox to toggle global mode. If global mode is on, coordinates are relative to the global coordinate system, else they are relative to the working plane coordinate system. introduced in version 0.20
  • Press T or click the Continue checkbox to toggle continue mode. If continue mode is on, the command will restart after finishing, allowing you to continue creating arcs.
  • Press S to switch Draft snapping on or off.
  • Press Esc or the Close button to abort the command.

Notes

  • A Draft Arc can be edited with the Draft Edit command.

Preferences

See also: Preferences Editor and Draft Preferences.

  • To change the number of decimals used for the input of coordinates, radii and angles: Edit → Preferences... → General → Units → Units settings → Number of decimals.
  • If the Edit → Preferences... → Draft → General settings → Draft tools options → Use Part Primitives when available option is checked, the command will create a Part Circle instead of a Draft Circle.

Properties

See Draft Circle.

Scripting

See also: Autogenerated API documentation and FreeCAD Scripting Basics.

To create a Draft Arc use the make_circle method (introduced in version 0.19) of the Draft module. This method replaces the deprecated makeCircle method.

Example:

import FreeCAD as App
import Draft

doc = App.newDocument()

arc1 = Draft.make_circle(200, startangle=0, endangle=90)
arc2 = Draft.make_circle(500, startangle=20, endangle=160)
arc3 = Draft.make_circle(750, startangle=-30, endangle=-150)

doc.recompute()