Draft Arc: Difference between revisions
No edit summary |
|||
(23 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{Page_in_progress}} |
|||
<languages/> |
<languages/> |
||
<translate> |
<translate> |
||
<!--T:18--> |
<!--T:18--> |
||
{{Docnav |
{{Docnav |
||
|[[ |
|[[Draft_Fillet|Fillet]] |
||
|[[Draft_Arc_3Points|Arc 3Points]] |
|[[Draft_Arc_3Points|Arc 3Points]] |
||
|[[Draft_Module|Draft]] |
|[[Draft_Module|Draft]] |
||
|IconL= |
|IconL=Draft_Fillet.svg |
||
|IconR=Draft_Arc_3Points.svg |
|IconR=Draft_Arc_3Points.svg |
||
|IconC=Workbench_Draft.svg |
|IconC=Workbench_Draft.svg |
||
}} |
}} |
||
<!--Shortcut not in menu but does work: FreeCAD 0.19.24219--> |
|||
<!--T:1--> |
<!--T:1--> |
||
{{GuiCommand |
{{GuiCommand |
||
|Name=Draft Arc |
|Name=Draft Arc |
||
|MenuLocation= |
|MenuLocation=Drafting → Arc tools → Arc |
||
|Workbenches=[[Draft_Module|Draft]], [[Arch_Module|Arch]] |
|Workbenches=[[Draft_Module|Draft]], [[Arch_Module|Arch]] |
||
|Shortcut={{KEY|A}} {{KEY|R}} |
|Shortcut={{KEY|A}} {{KEY|R}} |
||
|Version=0.7 |
|Version=0.7 |
||
|SeeAlso=[[ |
|SeeAlso=[[Draft_Arc_3Points|Draft Arc 3Points]], [[Draft_Circle|Draft Circle]] |
||
}} |
}} |
||
Line 24: | Line 27: | ||
<!--T:21--> |
<!--T:21--> |
||
The Arc |
The [[Image:Draft_Arc.svg|24px]] [[Draft_Arc|Draft Arc]] command creates a circular arc in the current [[Draft_SelectPlane|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|Draft Linestyle]] set on the [[Draft_Tray|Draft Tray]]. |
||
⚫ | |||
This tool works the same way as the [[Draft_Circle|Draft Circle]] tool, but adds start and end angles. To draw an elliptical arc use [[Draft_Ellipse|Draft Ellipse]]. You can also approximate a circular arc by using the [[Draft_BSpline|Draft BSpline]], [[Draft_BezCurve|Draft BezCurve]], and [[Draft_CubicBezCurve|Draft CubicBezCurve]] tools. |
|||
</translate> |
</translate> |
||
Line 33: | Line 33: | ||
<translate> |
<translate> |
||
<!--T:3--> |
<!--T:3--> |
||
{{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: |
<!--T:4--> |
||
# There are several ways to invoke the command: |
|||
The arc can be edited by double clicking on the element in the tree view, or by pressing the {{Button|[[Image:Draft Edit.svg|16px]] [[Draft Edit|Draft Edit]]}} button. Then you can move the center point to a new position. |
|||
⚫ | |||
#* 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}}. |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
==Options== |
|||
<!--T:12--> |
|||
The arc can be turned into a circle after creation, by setting its first angle and last angle properties to the same value. |
|||
<!--T:5--> |
|||
* The primary use of the arc |
* The primary use of the arc command is by picking four points: the center, a point on the circumference, the start of the arc and its end. |
||
** By pressing {{KEY|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. |
** By pressing {{KEY|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. |
* 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 {{KEY|Enter}} between each X, Y and Z component. You can press the {{Button|[[Image:Draft_AddPoint.svg|16px]] |
* To enter coordinates manually, simply enter the numbers, then press {{KEY|Enter}} between each X, Y and Z component. You can press the {{Button|[[Image:Draft_AddPoint.svg|16px]] Enter point}} button when you have the desired values to insert the point. |
||
* Press {{KEY|T}} or click the checkbox to toggle ''continue'' mode. If continue mode is on, the Arc |
* Press {{KEY|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 {{KEY|Ctrl}} while drawing to force [[Draft_Snap|snapping]] your point to the nearest snap location, independently of the distance. |
* Hold {{KEY|Ctrl}} while drawing to force [[Draft_Snap|snapping]] your point to the nearest snap location, independently of the distance. |
||
* 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== |
|||
⚫ | |||
An Arc object shares all properties from a [[Draft Circle|Draft Circle]], but some properties only make sense for the circle. |
|||
<!--T:11--> |
|||
* A Draft Arc can be edited with the [[Draft_Edit|Draft Edit]] command. |
|||
* {{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° and 360° 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]]. |
|||
<!--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}} and has the same [[Draft_Circle#Properties|properties]]. |
|||
⚫ | |||
==Scripting== |
|||
⚫ | |||
⚫ | |||
<!--T:15--> |
<!--T:15--> |
||
To create a Draft Arc use the {{incode|make_circle}} method ({{Version|0.19}}) of the Draft module. This method replaces the deprecated {{incode|makeCircle}} method. |
|||
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--> |
||
Example: |
Example: |
||
</translate> |
</translate> |
||
{{Code|code= |
{{Code|code= |
||
import FreeCAD as App |
|||
import Draft |
import Draft |
||
doc = App.newDocument() |
|||
⚫ | |||
⚫ | |||
arc1 = Draft.make_circle(200, startangle=0, endangle=90) |
|||
⚫ | |||
⚫ | |||
doc.recompute() |
|||
}} |
}} |
||
<translate> |
<translate> |
||
<!--T:17--> |
<!--T:17--> |
||
{{Docnav |
{{Docnav |
||
|[[ |
|[[Draft_Fillet|Fillet]] |
||
|[[Draft_Arc_3Points|Arc 3Points]] |
|[[Draft_Arc_3Points|Arc 3Points]] |
||
|[[Draft_Module|Draft]] |
|[[Draft_Module|Draft]] |
||
|IconL= |
|IconL=Draft_Fillet.svg |
||
|IconR=Draft_Arc_3Points.svg |
|IconR=Draft_Arc_3Points.svg |
||
|IconC=Workbench_Draft.svg |
|IconC=Workbench_Draft.svg |
||
Line 104: | Line 109: | ||
{{Draft Tools navi{{#translation:}}}} |
{{Draft Tools navi{{#translation:}}}} |
||
{{Userdocnavi{{#translation:}}}} |
{{Userdocnavi{{#translation:}}}} |
||
{{clear}} |
Revision as of 09:16, 30 March 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 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
- 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.
- Click the first point in the 3D view, or type coordinates and press the Enter point button in the related Line task panel.
- Click the second point in the 3D view, or enter a Radius.
- Click the third point in the 3D view, or enter a Start angle.
- Click the 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 center, 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
- A Draft Arc 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 and has the same properties.
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()
- Drafting: Line, Polyline, Fillet, Arc, Arc by 3 points, Circle, Ellipse, Rectangle, Polygon, B-spline, Cubic Bézier curve, Bézier curve, Point, Facebinder, ShapeString, Hatch
- Annotation: Text, Dimension, Label, Annotation styles, Annotation scale
- Modification: Move, Rotate, Scale, Mirror, Offset, Trimex, Stretch, Clone, Array, Polar array, Circular array, Path array, Path link array, Point array, Point link array, Edit, Subelement highlight, Join, Split, Upgrade, Downgrade, Wire to B-spline, Draft to sketch, Set slope, Flip dimension, Shape 2D view
- Draft Tray: Select plane, Set style, Toggle construction mode, AutoGroup
- Snapping: Snap lock, Snap endpoint, Snap midpoint, Snap center, Snap angle, Snap intersection, Snap perpendicular, Snap extension, Snap parallel, Snap special, Snap near, Snap ortho, Snap grid, Snap working plane, Snap dimensions, Toggle grid
- Miscellaneous: Apply current style, Layer, Manage layers, Add a new named group, Move to group, Select group, Add to construction group, Toggle normal/wireframe display, Create working plane proxy, Heal, Show snap toolbar
- Additional: Constraining, Pattern, Preferences, Import Export Preferences, DXF/DWG, SVG, OCA, DAT
- Context menu:
- Layer container: Merge layer duplicates, Add new layer
- Layer: Activate this layer, Select layer contents
- Text: Open hyperlinks
- Wire: Flatten
- Working plane proxy: Write camera position, Write objects state
- Getting started
- Installation: Download, Windows, Linux, Mac, Additional components, Docker, AppImage, Ubuntu Snap
- Basics: About FreeCAD, Interface, Mouse navigation, Selection methods, Object name, Preferences, Workbenches, Document structure, Properties, Help FreeCAD, Donate
- Help: Tutorials, Video tutorials
- Workbenches: Std Base, Arch, Assembly, CAM, Draft, FEM, Inspection, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Start, Surface, TechDraw, Test Framework, Web
- Hubs: User hub, Power users hub, Developer hub