Draft Circle/sv: Difference between revisions

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


====Beskrivning====
==Description==
The Circle tool creates a circle in the current [[Draft Workingplane|work plane]] by entering two points, the center and the radius, 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 Arc]] tool, except that it stops after entering the radius.


[[Image:Draft_Circle_example.jpg|400px]]
Detta verktyg ritar en cirkel genom att fråga efter två punkter, Centrum och radie, genom att välja tangenter, eller någon kombination av dessa.


==How to use==
[[Image:Draft_Circle_example.jpg]]
# Press the {{KEY|[[Image:Draft Circle.png|16px]] [[Draft Circle]]}} button, or press {{KEY|C}} then {{KEY|I}} 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.


====Bruk====
==Options==
* The primary use of the circle tool is by picking two points, the centre and a point on the circumference, defining the radius.
* By pressing {{KEY|ALT}}, you can select a tangent instead of picking a point. You can therefore construct several types of circles by selecting one, two or three tangents.
* 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 Circle tool will restart after you give the second point, allowing you to draw another circle without pressing the Circle 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 second point horizontally or vertically in relation to the first one.
* Press {{KEY|I}} or the {{KEY|'''Filled'''}} button to have the circle to appear as a face after it has been closed. This simply sets the View->Property of the Circle to "Flat lines" or "Wireframe", so it can easily be changed later.
* Press {{KEY|ESC}} or the {{KEY|'''Cancel'''}} button to abort the current Line command.
* The circle can be turned into an arc after creation, by setting its first angle and last angle properties to different values.


==Properties==
* Det primära bruket av cirkelverktyget är att markera två punkter, centrumet och en punkt på omkretsen, vilket definierar radien.
* {{PropertyData|Radius}}: The radius of the circle
* Om man trycker ned {{KEY|ALT}}, så kan du välja en tangent istället för att markera en punkt. Du kan därför konstruera flera cirkeltyper genom att välja en, två eller tre tangenter.
* Välj en punkt i ett tomt område i 3d vyn, eller på ett existerande objekt.
* Nedtryckning av {{KEY|CTRL}} kommer att [[Draft_Snap/sv|snäppa]] din punkt till tillgängliga snäpp-punkter.
* Nedtryckning av {{KEY|SKIFT}} [[Draft_Constrain/sv|begränsar]] din nya punkt i relation till föregående punkt.
* Skriv in siffror för att [[Draft_Coordinates/sv|manuellt mata in en koordinat]].
* Om du trycker på {{KEY|ESC}} så avbryts funktionen.
* Den skapade cirkeln kommer att ha nuvarande [[Draft_Linestyle/sv|linjestil]].


==Scripting==
The Circle tool can by used in [[macros]] and from the python console by using the following function:
<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:
====Skriptning====
<syntaxhighlight>
import Draft
myCircle = Draft.makeCircle(2)


</syntaxhighlight>
Den skapade cirkeln är ett [[Part Module/sv|Del]] föremå som innehåller en kant med endast ett hörn.
{{clear}}

<languages/>
{{languages/sv | {{en|Draft Circle}} {{es|Draft Circle/es}} {{fr|Draft Circle/fr}} }}

Revision as of 21:34, 8 January 2014

Draft_Circle

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

Description

The Circle tool creates a circle in the current work plane by entering two points, the center and the radius, 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 Arc tool, except that it stops after entering the radius.

How to use

  1. Press the Draft Circle button, or press C then I 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.

Options

  • The primary use of the circle tool is by picking two points, the centre and a point on the circumference, defining the radius.
  • By pressing ALT, you can select a tangent instead of picking a point. You can therefore construct several types of circles by selecting one, two or three tangents.
  • 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 Circle tool will restart after you give the second point, allowing you to draw another circle without pressing the Circle 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 second point horizontally or vertically in relation to the first one.
  • Press I or the Filled button to have the circle to appear as a face after it has been closed. This simply sets the View->Property of the Circle to "Flat lines" or "Wireframe", so it can easily be changed later.
  • Press ESC or the Cancel button to abort the current Line command.
  • The circle can be turned into an arc after creation, by setting its first angle and last angle properties to different values.

Properties

  • DataRadius: The radius of the circle

Scripting

The Circle tool can by used in macros and from the python console by using the following function:

 '''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
 myCircle = Draft.makeCircle(2)