Draft Arc 3Points: Difference between revisions

From FreeCAD Documentation
m (Updated {{GuiCommand}})
mNo edit summary
 
(63 intermediate revisions by 6 users not shown)
Line 5: Line 5:
{{Docnav
{{Docnav
|[[Draft_Arc|Arc]]
|[[Draft_Arc|Arc]]
|[[Draft_Ellipse|Ellipse]]
|[[Draft_Circle|Circle]]
|[[Draft_Module|Draft]]
|[[Draft_Workbench|Draft]]
|IconL=Draft_Circle.svg
|IconL=Draft_Arc.svg
|IconR=Draft_Circle.svg
|IconC=Workbench_Draft.svg
|IconC=Workbench_Draft.svg
|IconR=Draft_Ellipse.svg
}}
}}


Line 15: Line 15:
{{GuiCommand
{{GuiCommand
|Name=Draft Arc 3Points
|Name=Draft Arc 3Points
|MenuLocation=Draft → Arc 3 points
|MenuLocation=Drafting → Arc tools → Arc by 3 points
|Workbenches=[[Draft Module|Draft]], [[Arch Module|Arch]]
|Workbenches=[[Draft_Workbench|Draft]], [[Arch_Workbench|Arch]]
|Shortcut={{KEY|A}} {{KEY|T}}
|Shortcut={{KEY|A}} {{KEY|T}}
|SeeAlso=[[Draft Arch|Draft Arc]], [[Draft Circle|Draft Circle]], [[Draft Ellipse|Draft Ellipse]]
|Version=0.19
|Version=0.19
|SeeAlso=[[Draft_Arc|Draft Arc]], [[Draft_Circle|Draft Circle]]
}}
}}


Line 25: Line 25:


<!--T:4-->
<!--T:4-->
The {{Button|[[Image:Draft_Arc_3Points.svg|16px]] [[Draft Arc 3Points|Arc 3Points]]}} tool creates a circular arc in the current [[Draft SelectPlane|work plane]] by entering three points that lie on the circumference; the center and radius are determined from these three points. It uses the [[Draft Linestyle|Draft Linestyle]] set on the [[Draft Tray|Draft Tray]].
The [[Image:Draft_Arc_3Points.svg|24px]] '''Draft Arc 3Points''' command creates a circular arc on the current [[Draft_SelectPlane|working plane]] from three points that define its circumference. The center and radius are calculated from these points.


<!--T:17-->
<!--T:24-->
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}}.
Use the [[Draft Arc|Draft Arc]] tool to create a circular arc by specifying the center, the radius, and the 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>
[[Image:Draft_Arc_3Points_example.png|400px]]
[[Image:Draft_Arc_3Points_example.png|400px]]
<translate>
<translate>

<!--T:5-->
<!--T:5-->
{{Caption|Arc defined by three points lying on a circumference}}
{{Caption|Arc defined by three points on its circumference}}


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

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


<!--T:7-->
<!--T:7-->
# There are several ways to invoke the command:
# Press the {{Button|[[Image:Draft Arc 3Points.svg|16px]] [[Draft Arc 3Points|Draft Arc 3Points]]}} button, or press {{KEY|A}} then {{KEY|T}} keys.
# Click a first point on the 3D view, or type a [[Draft_Coordinates|coordinate]] and press the {{Button|[[Image:Draft_AddPoint.svg|16px]] [[Draft_AddPoint|add point]]}} button.
#* Press the {{Button|[[Image:Draft_Arc_3Points.svg|16px]] [[Draft_Arc_3Points|Arc by 3 points]]}} button.
#* Select the {{MenuCommand|Drafting → Arc tools → [[Image:Draft_Arc_3Points.svg|16px]] Arc by 3 points}} option from the menu.
# Click a second point on the 3D view, or type a [[Draft_Coordinates|coordinate]] and press the {{Button|[[Image:Draft_AddPoint.svg|16px]] [[Draft_AddPoint|add point]]}} button.
#* Use the keyboard shortcut: {{KEY|A}} then {{KEY|T}}. {{Version|0.20}}
# Click a third point in the 3D view, or type a [[Draft_Coordinates|coordinate]] and press the {{Button|[[Image:Draft_AddPoint.svg|16px]] [[Draft_AddPoint|add point]]}} button.
# The {{MenuCommand|Arc by 3 points}} task panel opens. See [[#Options|Options]] for more information.
# The arc will be created after the third point is given.
# Pick the first point 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 type coordinates and press the {{Button|[[Image:Draft_AddPoint.svg|16px]] Enter point}} button.
# Pick the third point in the [[3D_view|3D view]], or type coordinates and press the {{Button|[[Image:Draft_AddPoint.svg|16px]] Enter point}} button.


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

<!--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 (for version 0.22).


<!--T:18-->
<!--T:18-->
* To manually enter coordinates enter the X, Y and Z component, and press {{KEY|Enter}} after each. Or you can press the {{Button|[[Image:Draft_AddPoint.svg|16px]] Enter point}} button when you have the desired values. It is advisable to move the pointer out of the [[3D_view|3D view]] before entering coordinates.
* Press {{KEY|X}}, {{KEY|Y}} or {{KEY|Z}} after one point to constrain the following point on the given axis.
* Press {{KEY|R}} or click the {{MenuCommand|Relative}} checkbox to toggle relative mode. If relative mode is on, coordinates are relative to the last point, if available, else they are relative to the coordinate system origin.
* To enter coordinates manually, simply enter the numbers, then press {{KEY|Enter}} between each X, Y and Z component.
* 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}}
** You can press the {{Button|[[Image:Draft_AddPoint.svg|16px]] [[Draft_AddPoint|add point]]}} button when you have entered the desired values to insert the point.
* Press {{KEY|R}} or click the checkbox to toggle ''relative'' mode. If relative mode is on, the coordinates of the following point are relative to the previous one; if not, they are absolute, taken from the origin {{incode|(0, 0, 0)}}.
* Press {{KEY|N}} 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. {{Version|0.20}}
* Press {{KEY|S}} to switch [[Draft_Snap|Draft snapping]] on or off.
* Hold {{KEY|Shift}} while drawing to [[Draft_Constrain|constrain]] your next point horizontally or vertically in relation to the previous one.
* Press {{KEY|Esc}} or the {{Button|Close}} button to abort the current command.
* Press {{KEY|Esc}} or the {{Button|Close}} button to abort the command.

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

<!--T:28-->
* A Draft Arc can be edited with the [[Draft_Edit|Draft Edit]] command.

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

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

<!--T:31-->
* If the {{MenuCommand|Edit → Preferences... → Draft → General → Create Part primitives if possible}} option is checked, the command will create a non-editable [[Part_Feature|Part Feature]] instead of a Draft Circle.


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


<!--T:10-->
<!--T:10-->
See [[Draft_Circle#Properties|Draft Circle]].
An Arc object shares all properties from a [[Draft Circle|Draft Circle]], but some properties only make sense for the circle. See [[Draft Arc|Draft Arc]] for more information.


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


<!--T:19-->
<!--T:19-->
{{Emphasis|See also:}} [[Draft API|Draft API]] 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:20-->
<!--T:20-->
To create a Draft Arc by 3 points use the {{incode|make_arc_3points}} method of the Draft module:
There is no specific function to create an arc by three points.

</translate>
{{Code|code=
arc = make_arc_3points(points, placement=None, face=False, support=None, map_mode="Deactivated", primitive=False)
}}
<translate>


<!--T:21-->
<!--T:21-->
* Creates an {{incode|arc}} object from the given {{incode|points}} list.
To create an arc use the same function to create circles, with additional arguments. See the information in [[Draft Arc|Draft Arc]] and [[Draft Circle|Draft Circle]].
* If a {{incode|placement}} is given, the center of the circular arc will be moved to this place. See [[Placement|Placement]] for more information.
* If {{incode|face}} is {{incode|True}}, the arc will make a face, that is, it will appear filled.
* If {{incode|support}} is given, it is a {{incode|LinkSubList}}, that is, a list indicating an object and a subelement of that object. This is used so that the object appears referenced to this support.
: For example: <code>support=[(obj, ("Face1"))]</code>.
* If {{incode|map_mode}} is given, it is a string defining a type of mapping, for example: <code>map_mode='FlatFace'</code>, <code>map_mode='ThreePointsPlane'</code>, etc. See [[Part_EditAttachment|Part EditAttachment]] for more information.
* If {{incode|primitive}} is {{incode|True}}, the arc created will be a simple [[Part_Feature|Part Feature]], not a complex Draft object.

<!--T:22-->
Example:

</translate>
{{Code|code=
import FreeCAD as App
import Draft

doc = App.newDocument()

points = [App.Vector(0, 0, 0),
App.Vector(5, 10, 0),
App.Vector(10, 0, 0)]

arc = Draft.make_arc_3points(points)

doc.recompute()
}}
<translate>



<!--T:14-->
<!--T:14-->
{{Docnav
{{Docnav
|[[Draft_Arc|Arc]]
|[[Draft_Arc|Arc]]
|[[Draft_Ellipse|Ellipse]]
|[[Draft_Circle|Circle]]
|[[Draft_Module|Draft]]
|[[Draft_Workbench|Draft]]
|IconL=Draft_Circle.svg
|IconL=Draft_Arc.svg
|IconR=Draft_Circle.svg
|IconC=Workbench_Draft.svg
|IconC=Workbench_Draft.svg
|IconR=Draft_Ellipse.svg
}}
}}

<!--T:15-->
{{Draft Tools navi}}

<!--T:16-->
{{Userdocnavi}}


</translate>
</translate>
{{Draft Tools navi{{#translation:}}}}
{{clear}}
{{Userdocnavi{{#translation:}}}}

Latest revision as of 10:04, 30 January 2024

Draft Arc 3Points

Menu location
Drafting → Arc tools → Arc by 3 points
Workbenches
Draft, Arch
Default shortcut
A T
Introduced in version
0.19
See also
Draft Arc, Draft Circle

Description

The Draft Arc 3Points command creates a circular arc on the current working plane from three points that define its circumference. The center and radius are calculated from these 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 three points on its circumference

Usage

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

  1. There are several ways to invoke the command:
  2. The Arc by 3 points task panel opens. See Options for more information.
  3. Pick the first point in the 3D view, or type coordinates and press the Enter point button.
  4. Pick the second point in the 3D view, or type coordinates and press the Enter point button.
  5. Pick the third point in the 3D view, or type coordinates and press the Enter point button.

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 (for version 0.22).

  • To manually enter coordinates 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.
  • Press R or click the Relative checkbox to toggle relative mode. If relative mode is on, coordinates are relative to the last point, if available, else they are relative to the coordinate system origin.
  • 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 N 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. introduced in version 0.20
  • 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.

  • If the Edit → Preferences... → Draft → General → Create Part primitives if possible option is checked, the command will create a non-editable Part Feature instead of a Draft Circle.

Properties

See Draft Circle.

Scripting

See also: Autogenerated API documentation and FreeCAD Scripting Basics.

To create a Draft Arc by 3 points use the make_arc_3points method of the Draft module:

arc = make_arc_3points(points, placement=None, face=False, support=None, map_mode="Deactivated", primitive=False)
  • Creates an arc object from the given points list.
  • If a placement is given, the center of the circular arc will be moved to this place. See Placement for more information.
  • If face is True, the arc will make a face, that is, it will appear filled.
  • If support is given, it is a LinkSubList, that is, a list indicating an object and a subelement of that object. This is used so that the object appears referenced to this support.
For example: support=[(obj, ("Face1"))].
  • If map_mode is given, it is a string defining a type of mapping, for example: map_mode='FlatFace', map_mode='ThreePointsPlane', etc. See Part EditAttachment for more information.
  • If primitive is True, the arc created will be a simple Part Feature, not a complex Draft object.

Example:

import FreeCAD as App
import Draft

doc = App.newDocument()

points = [App.Vector(0, 0, 0),
          App.Vector(5, 10, 0),
          App.Vector(10, 0, 0)]

arc = Draft.make_arc_3points(points)

doc.recompute()