Draft Arc 3Points: Difference between revisions

From FreeCAD Documentation
(Undo revision 1080767 by David69 (talk)This change does not follow GuiCommand_model.)
Tag: Undo
mNo edit summary
 
(6 intermediate revisions by the same user not shown)
Line 25: Line 25:


<!--T:4-->
<!--T:4-->
The [[Image:Draft_Arc_3Points.svg|24px]] '''Draft Arc 3Points''' command creates a circular arc in the current [[Draft_SelectPlane|working plane]] from three points that define its circumference. The center and radius are calculated from these points.
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:24-->
<!--T:24-->
Line 43: Line 43:
<!--T:7-->
<!--T:7-->
# There are several ways to invoke the command:
# There are several ways to invoke the command:
#* Press the {{Button|[[Image:Draft_Arc_3Points.svg|16px]] [[Draft_Arc_3Points|Draft Arc 3Points]]}} 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.
#* Select the {{MenuCommand|Drafting → Arc tools → [[Image:Draft_Arc_3Points.svg|16px]] Arc by 3 points}} option from the menu.
#* Use the keyboard shortcut: {{KEY|A}} then {{KEY|T}}. {{Version|0.20}}
#* Use the keyboard shortcut: {{KEY|A}} then {{KEY|T}}. {{Version|0.20}}
# The {{MenuCommand|Arc by 3 points}} task panel opens. See [[#Options|Options]] for more information.<!--Wrong task panel name in the GUI-->
# The {{MenuCommand|Arc by 3 points}} task panel opens. See [[#Options|Options]] for more information.
# 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 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 second point in the [[3D_view|3D view]], or type coordinates and press the {{Button|[[Image:Draft_AddPoint.svg|16px]] Enter point}} button.
Line 54: Line 54:


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


<!--T:18-->
<!--T:18-->
Line 60: Line 60:
* 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.
* 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.
* 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|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.
* 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.
Line 74: Line 75:


<!--T:31-->
<!--T:31-->
* To change the number of decimals used for the input of coordinates: {{MenuCommand|Edit → Preferences... → GeneralUnitsUnits settings Number of decimals}}.
* If the {{MenuCommand|Edit → Preferences... → DraftGeneralCreate Part primitives if possible}} option is checked, the command will create a non-editable [[Part_Feature|Part Feature]] instead of a Draft Circle.
* If the {{MenuCommand|Edit → Preferences... → Draft → General settings → Draft tools options → Use Part Primitives when available}} 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-->

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()