Draft Arc: Difference between revisions

From FreeCAD Documentation
No edit summary
No edit summary
Line 21: Line 21:
|Shortcut={{KEY|A}} {{KEY|R}}
|Shortcut={{KEY|A}} {{KEY|R}}
|Version=0.7
|Version=0.7
|SeeAlso=[[Draft_Circle|Draft Circle]], [[Draft_Ellipse|Draft Ellipse]], [[Draft_Arc_3Points|Draft Arc 3Points]]
|SeeAlso=[[Draft_Arc_3Points|Draft Arc 3Points]], [[Draft_Circle|Draft Circle]]
}}
}}


Line 58: Line 58:
* Hold {{KEY|Shift}} while drawing to [[Draft_Constrain|constrain]] your point horizontally or vertically in relation to the center.
* Hold {{KEY|Shift}} while drawing to [[Draft_Constrain|constrain]] your point horizontally or vertically in relation to the center.
* Press {{KEY|Esc}} or the {{Button|Close}} button to abort the current command.
* Press {{KEY|Esc}} or the {{Button|Close}} button to abort the current command.

==Notes==

* Draft Arcs can be edited with the [[Image:Draft_Edit.svg|16px]] [[Draft_Edit|Draft Edit]] command.


==Properties==
==Properties==


<!--T:6-->
<!--T:6-->
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}}. Draft Arcs therefore have the same [[Draft_Circle#Properties|properties]] as [[Draft_Circle|Draft Circles]].
An Arc object shares all properties from a [[Draft_Circle|Draft Circle]], but some properties only make sense for the circle.

===Data===

<!--T:13-->
* {{PropertyData|First Angle}}: specifies the angle of the first point of the arc.
* {{PropertyData|Last Angle}}: specifies the angle of the last point of the arc.
* {{PropertyData|Radius}}: specifies the radius of the arc.
* {{PropertyData|Make Face}}: specifies if the arc makes a face or not. This property only works if the shape is a full circle.
:To make an arc a full circle set the {{PropertyData|First Angle}} and {{PropertyData|Last Angle}} to the same value. The values 0&#176; and 360&#176; aren't considered the same, so if these two values are used, the circle will not form a face.

===View===

<!--T:14-->
* {{PropertyView|Pattern}}: specifies a [[Draft_Pattern|Draft Pattern]] with which to fill the face of the arc. This property only works if the arc is a full circle, and if {{PropertyData|Make Face}} is {{TRUE}}, and if {{PropertyView|Display Mode}} is "Flat Lines".
* {{PropertyView|Pattern Size}}: specifies the size of the [[Draft_Pattern|Draft Pattern]].


==Scripting==
==Scripting==
Line 85: Line 74:


<!--T:15-->
<!--T:15-->
To create a Draft Arc use the {{incode|make_circle}} method of the Draft module:
The Arc tool can be used in [[Macros|macros]] and from the [[Python|Python]] console by using the same function to create circles, with additional arguments.
See the information in [[Draft_Circle|Draft Circle]].


<!--T:16-->
<!--T:16-->
Line 95: Line 83:
import Draft
import Draft


Arc1 = Draft.makeCircle(200, startangle=0, endangle=90)
Arc1 = Draft.make_circle(200, startangle=0, endangle=90)
Arc2 = Draft.makeCircle(500, startangle=20, endangle=160)
Arc2 = Draft.make_circle(500, startangle=20, endangle=160)
Arc3 = Draft.makeCircle(750, startangle=-30, endangle=-150)
Arc3 = Draft.make_circle(750, startangle=-30, endangle=-150)
}}
}}
<translate>
<translate>

Revision as of 17:03, 16 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 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 by entering four points, the center, a point that defines the radius, the first end point and the second end point, or by picking tangents, or any combination of those. It uses the Draft Linestyle set on the Draft Tray.

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

Usage

  1. There are several ways to invoke the command:
    • Press the Draft Arc button.
    • Select the Drafting → Arc tools → Arc option from the menu.
    • Use the keyboard shortcut: A then R.
  2. Click a first point on the 3D view, or type coordinates and press the Enter point button.
  3. Click a second point on the 3D view, or enter a Radius.
  4. Click a third point in the 3D view, or enter a Start angle.
  5. Click a fourth point in the 3D view, or enter an Aperture angle.

Options

  • The primary use of the arc command is by picking four points: the centre, a point on the circumference, the start of the arc, and its end.
    • By pressing Alt, you can select a tangent instead of picking point, to define the base circle of the arc. You can therefore construct several types of circles by selecting one, two or three tangents.
  • The direction of the arc depends on the movement you are doing with your mouse. If you start to move clockwise after the third point is entered, your arc will go clockwise. To go counter-clockwise, simply move your mouse back over the third point, until the arc starts drawing in the other direction.
  • To enter coordinates manually, simply enter the numbers, then press Enter between each X, Y and Z component. You can press the Enter point button when you have the desired values to insert the point.
  • Press T or click the checkbox to toggle continue mode. If continue mode is on, the Arc command will restart after you finish the arc, allowing you to draw another one without pressing the command button again.
  • 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 point horizontally or vertically in relation to the center.
  • Press Esc or the Close button to abort the current command.

Notes

  • Draft Arcs can be edited with the Draft Edit command.

Properties

A Draft Arc is in fact a Draft Circle with a DataFirst Angle that is not the same as its DataLast Angle. Draft Arcs therefore have the same properties as Draft Circles.

Scripting

See also: Autogenerated API documentation and FreeCAD Scripting Basics.

To create a Draft Arc use the make_circle method of the Draft module:

Example:

import Draft

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)