Draft Arc/sv: Difference between revisions

From FreeCAD Documentation
(page)
 
(Updating to match new version of source page)
Line 1: Line 1:
{{GuiCommand/sv|Name=Draft_Arc|Workbenches=[[Draft Module/sv|Skiss]]|MenuLocation=Draft -> Arc}}
{{GuiCommand|Name=Draft_Arc|Workbenches=[[Draft Module|Draft]], [[Arch Module|Arch]]|MenuLocation=Draft -> Arc|Shortcut=A R|SeeAlso=[[Draft Circle]]}}


====Beskrivning====
==Description==
The Arc tool creates an arc in the current [[Draft Workingplane|work plane]] by entering four points, the center, the radius, the first point and the last point, or by picking tangents, or any combination of those. It takes the [[Draft Linestyle|linewidth and color]] previously set on the Tasks tab. This tool works the same way as the [[Draft Circle]] tool, but adds start and end angles.


[[Image:Draft_Arc_example.jpg|400px]]
Detta verktyg ritar en cirkelbåge genom att välja fyra punkter: centrum, radien, startvinkel och slutvinkel.


==How to use==
[[Image:Draft_Arc_example.jpg]]
# Press the {{KEY|[[Image:Draft Arc.png|16px]] [[Draft Arc]]}} button, or press {{KEY|A}} then {{KEY|R}} keys
# Click a first point on the 3D view, or type a [[Draft_Coordinates|coordinate]]
# Click a second point on the 3D view, or enter a radius value
# Click a third point in the 3D view, or enter a start angle
# Click a fourth point in the 3D View, or enter an end ange


====Bruk====
==Options==
* The primary use of the arc tool is by picking four points: the centre, a point on the circumference, defining the radius, a third point defining the start of the arc, and a fourth one defining 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.
* 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.
* Press {{KEY|T}} or click the checkbox to check/uncheck the {{KEY|'''Continue'''}} button. If continue mode is on, the Arc tool will restart after you give the fourth point, allowing you to draw another arc without pressing the Arc button again.
* Press {{KEY|CTRL}} while drawing to force [[Draft_Snap|snapping]] your point to the nearest snap location, independently of the distance.
* Press {{KEY|SHIFT}} while drawing to [[Draft_Constrain|constrain]] your point horizontally or vertically in relation to the center.
* Press {{KEY|ESC}} or the {{KEY|'''Cancel'''}} button to abort the current Line command.
* The arc can be turned into a circle after creation, by setting a same value to its first angle and last angle properties.


==Properties==
* Markera punkter i ett tomt område i 3d vyn, eller på ett existernade objekt.
* {{PropertyData|Radius}}: The radius of the arc
* Cirkelbågsverktyget ärver [[Draft Circle/sv|Cirkelverktygets]] funktionalitet för de två första stegen, så du kan trycka på {{KEY|ALT}} för att välja en tangent istället för centrum eller radie.
* {{PropertyData|First Angle}}: The angle of the first point of the arc
* Nedtryckning av {{KEY|CTRL}} kommer att [[Draft_Snap/sv|snäppa]] din punkt till tillgängliga snäpp-punkter.
* {{PropertyData|Last Angle}}: The angle of the last point of the arc
* Nedtryckning av {{KEY|SKIFT}} kommer att [[Draft_Constrain/sv|begränsa]] din nya punkt i relation till föregående punkt.
* Skriv in siffror för att [[Draft_Coordinates/sv|manuellt mata in en koordinat]].
* Den skapade cirkelbågen kommer att ha nuvarande [[Draft_Linestyle/sv|linjestil]].
* Nedtryckning av {{KEY|ALT}} när du väljer slutvinkeln kommer att ändra riktningen till moturs.
* Om du trycker på {{KEY|ESC}} så avbryts funktionen.


==Scripting==
{{languages/sv | {{en|Draft Arc}} {{es|Draft Arc/es}} {{fr|Draft Arc/fr}} }}
The Circle tool can also be used to create arcs in [[macros]] and from the python console by using the following function, giving it additional arguments:
<syntaxhighlight>
'''makeCircle (radius, [placement], [facemode], [startangle], [endangle])'''
</syntaxhighlight>
* Creates a circle object with given radius.
* If a placement is given, it is used. If facemode is False, the circle is shown as a wireframe, otherwise as a face.
* If startangle AND endangle are given (in degrees), they are used and the object appears as an arc.
* Returns the newly created object.

Example:
<syntaxhighlight>
import Draft
myArc = Draft.makeCircle(2,startangle=0,endangle=90)

</syntaxhighlight>
{{clear}}
<languages/>

Revision as of 20:04, 9 January 2014

Draft_Arc

Menu location
Draft -> Arc
Workbenches
Draft, Arch
Default shortcut
A R
Introduced in version
-
See also
Draft Circle

Description

The Arc tool creates an arc in the current work plane by entering four points, the center, the radius, the first point and the last point, or by picking tangents, or any combination of those. It takes the linewidth and color previously set on the Tasks tab. This tool works the same way as the Draft Circle tool, but adds start and end angles.

How to use

  1. Press the Draft Arc button, or press A then R keys
  2. Click a first point on the 3D view, or type a coordinate
  3. Click a second point on the 3D view, or enter a radius value
  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 end ange

Options

  • The primary use of the arc tool is by picking four points: the centre, a point on the circumference, defining the radius, a third point defining the start of the arc, and a fourth one defining 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.
  • Press T or click the checkbox to check/uncheck the Continue button. If continue mode is on, the Arc tool will restart after you give the fourth point, allowing you to draw another arc without pressing the Arc button again.
  • Press CTRL while drawing to force snapping your point to the nearest snap location, independently of the distance.
  • Press SHIFT while drawing to constrain your point horizontally or vertically in relation to the center.
  • Press ESC or the Cancel button to abort the current Line command.
  • The arc can be turned into a circle after creation, by setting a same value to its first angle and last angle properties.

Properties

  • DataRadius: The radius of the arc
  • DataFirst Angle: The angle of the first point of the arc
  • DataLast Angle: The angle of the last point of the arc

Scripting

The Circle tool can also be used to create arcs in macros and from the python console by using the following function, giving it additional arguments:

 '''makeCircle (radius, [placement], [facemode], [startangle], [endangle])'''
  • Creates a circle object with given radius.
  • If a placement is given, it is used. If facemode is False, the circle is shown as a wireframe, otherwise as a face.
  • If startangle AND endangle are given (in degrees), they are used and the object appears as an arc.
  • Returns the newly created object.

Example:

 import Draft
 myArc = Draft.makeCircle(2,startangle=0,endangle=90)