Draft Arc/cs: Difference between revisions

From FreeCAD Documentation
No edit summary
(Updating to match new version of source page)
(27 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<languages/>
{{GuiCommand|Name=Draft_Arc|Workbenches=[[Draft Module|Kreslení]], [[Arch Module|Architektura]]|MenuLocation=Draft -> Arc|Shortcut=A R|SeeAlso=[[Draft Circle|Kreslení kružnice]]}}
{{Docnav
|[[Draft_Circle|Circle]]
|[[Draft_Arc_3Points|Arc 3Points]]
|[[Draft_Module|Draft]]
|IconL=Draft_Circle.svg
|IconC=Workbench_Draft.svg
|IconR=Draft_Arc_3Points.svg
}}

<div class="mw-translate-fuzzy">
{{GuiCommand/cs|Name=Draft_Arc|Name/cs=Kreslení oblouk|Workbenches=[[Draft Module/cs|Kreslení]], [[Arch Module/cs|Architektura]]|MenuLocation=Kreslení → Oblouk|Shortcut=A R|SeeAlso=[[Draft Circle/cs|Kreslení kružnice]]}}
</div>


<div class="mw-translate-fuzzy">
==Popis==
==Popis==
Nástroj Oblouk vytváří oblouk v aktuální [[Draft Workingplane|pracovní rovině]] zadáním čtyř bodů: střed, poloměr, počáteční a koncový bod nebo zadáním směrnic nebo kombinací obou způsobů. Použije se [[Draft Linestyle|tloušťka čáry a barva]] predem zadaná v záložce Nástrojů. Tento nástroj pracuje stejně jako nástroj [[Draft Circle|Kreslení kružnice]], ale přidává počáteční a koncový úhel.
Nástroj Oblouk vytváří oblouk v aktuální [[Draft SelectPlane/cs|pracovní rovině]] zadáním čtyř bodů: střed, poloměr, počáteční a koncový bod nebo zadáním tečen nebo kombinací obou způsobů. Použije se [[Draft Linestyle/cs|tloušťka čáry a barva]] předem zadaná v záložce Nástrojů. Tento nástroj pracuje stejně jako nástroj [[Draft Circle/cs|Kružnice]], ale přidává počáteční a koncový úhel.
</div>


The Arc tool creates a circular arc in the current [[Draft SelectPlane|work 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]].
[[Image:Draft_Arc_example.jpg|400px]]


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.

[[Image:Draft_Arc_example.jpg|400px]]
{{Caption|Arc defined by four points, center, radius, initial point of arc and final point of arc.}}

<div class="mw-translate-fuzzy">
==Použití==
==Použití==
# Stiskněte tlačítko {{KEY|[[Image:Draft Arc.png|16px]] [[Draft Arc|Kreslení oblouku]]}} nebo stiskněte klávesy {{KEY|A}} a potom {{KEY|R}}
# Stiskněte tlačítko {{KEY|[[Image:Draft Arc.png|16px]] [[Draft Arc|Oblouk]]}} nebo stiskněte klávesy {{KEY|A}} a potom {{KEY|R}}
# Klikněte na první bod ve 3D pohledu nebo zadejte [[Draft_Coordinates|koordináty]]
# Klikněte na první bod ve 3D pohledu nebo zadejte [[Draft_Coordinates|souřadnice]]
# Klikněte na druhý bod ve 3D pohledu nebo zadejte poloměr
# Klikněte na druhý bod ve 3D pohledu nebo zadejte poloměr
# Klikněte na třetí bod ve 3D pohledu nebo zadejte počáteční úhel
# Klikněte na třetí bod ve 3D pohledu nebo zadejte počáteční úhel
# Klikněte na čtvrtý bod ve 3D pohledu nebo zadejte koncový úhel
# Klikněte na čtvrtý bod ve 3D pohledu nebo zadejte koncový úhel
</div>


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.
==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.


The arc can be turned into a circle after creation, by setting its first angle and last angle properties to the same value.
==Properties==
* {{PropertyData|Radius}}: The radius of the arc
* {{PropertyData|First Angle}}: The angle of the first point of the arc
* {{PropertyData|Last Angle}}: The angle of the last point of the arc


<div class="mw-translate-fuzzy">
==Scripting==
==Volby==
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:
* Základní použití nástroje Oblouk je zadání čtyř bodů: střed, bod na obvodu, který definuje poloměr, třetí bod definující začátek oblouku a čtvrtý bod definující jeho konec.
<syntaxhighlight>
* Stisknutím {{KEY|ALT}} můžete vybrat tečnu místo zadávání bodu čímž definujete základní kružnici oblouku. Tím můžete zkonstruovat několik typů kružnic výběrem jedné, dvou nebo tří tečen.
'''makeCircle (radius, [placement], [facemode], [startangle], [endangle])'''
* Směr oblouku závisí na pohybu myši. Jestli s ní po zadání třetího bodu začnete pohybovat ve směru hodinových ručiček, Váš oblouk bude vytvořen ve stejném směru. Chcete-li oblouk v opačném směru, jednoduše se myší vracejte přes třetí bod proti směru hodinových ručiček tak dlouho až se oblouk začne kreslit v opačném směru.
</syntaxhighlight>
* Chcete-li zadat souřadnice ručně jednoduše zadejte číslo a potom stiskněte {{KEY|ENTER}} mezi každou z komponent X, Y a Z.
* Creates a circle object with given radius.
* Stiskněte klávesu {{KEY|T}} nebo klikněte na zaklikávací políčko pro zatrhnutí nebo odtrhnutí tlačítka {{KEY|'''Pokračovat'''}}. Je-li nastaven pokračovací mód, bude nástroj Oblouk hned po zadání čtvrtého bodu připraven ke kreslení dalšího oblouku bez nutnosti stisknout znovu tlačítko Oblouk..
* If a placement is given, it is used. If facemode is False, the circle is shown as a wireframe, otherwise as a face.
* Stisknutím klávesy {{KEY|CTRL}} během kreslení vynutíte [[Draft_Snap|přichycení]] vašeho bodu k nejbližšímu uchopovacímu místu nezávisle na vzálenosti od něho.
* If startangle AND endangle are given (in degrees), they are used and the object appears as an arc.
* Stisknutím klávesy {{KEY|SHIFT}} během kreslení [[Draft_Constrain|nastavíte vazbu]] vašeho bodu svisle nebo vodorovně v relaci ke středu.
* Returns the newly created object.
* Stisknutím tlačítka {{KEY|ESC}} nebo {{KEY|'''Cancel'''}} zrušíte právě probíhající příkaz.
* Oblouk může být po vytvoření změněn na kružnici nastavením stejné hodnoty pro počáteční i koncový úhel ve vlastnostech.
</div>

<div class="mw-translate-fuzzy">
==Vlastnosti==
* {{PropertyData|Poloměr}}: Poloměr oblouku
* {{PropertyData|Počáteční úhel}}: Úhel počátečního bodu oblouku
* {{PropertyData|Koncový úhel}}: Úhel koncového bodu oblouku
</div>

===Data===
* {{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&#176; and 360&#176; aren't considered the same, so if these two values are used, the circle will not form a face.

===View===
* {{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]].

<div class="mw-translate-fuzzy">
==Skriptování==
Nástroj Kružnice může být použít i pro vytváření oblouků v [[macros|makrech]] a z konzoly Pythonu použitím následující funkce, přidáním dodatečných argumentů:
</div>

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]].


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


Arc1 = Draft.makeCircle(200, startangle=0, endangle=90)
</syntaxhighlight>
Arc2 = Draft.makeCircle(500, startangle=20, endangle=160)
Arc3 = Draft.makeCircle(750, startangle=-30, endangle=-150)
}}

{{Docnav
|[[Draft_Circle|Circle]]
|[[Draft_Arc_3Points|Arc 3Points]]
|[[Draft_Module|Draft]]
|IconL=Draft_Circle.svg
|IconC=Workbench_Draft.svg
|IconR=Draft_Arc_3Points.svg
}}

{{Draft Tools navi}}

{{Userdocnavi}}
{{clear}}
{{clear}}
<languages/>

Revision as of 10:43, 4 November 2019

Kreslení oblouk

Umístění Menu
Kreslení → Oblouk
Pracovní stoly
Kreslení, Architektura
Výchozí zástupce
A R
Představen ve verzi
-
Viz také
Kreslení kružnice

Popis

Nástroj Oblouk vytváří oblouk v aktuální pracovní rovině zadáním čtyř bodů: střed, poloměr, počáteční a koncový bod nebo zadáním tečen nebo kombinací obou způsobů. Použije se tloušťka čáry a barva předem zadaná v záložce Nástrojů. Tento nástroj pracuje stejně jako nástroj Kružnice, ale přidává počáteční a koncový úhel.

The Arc tool creates a circular arc in the current work 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.

This tool works the same way as the Draft Circle tool, but adds start and end angles. To draw an elliptical arc use Draft Ellipse. You can also approximate a circular arc by using the Draft BSpline, Draft BezCurve, and Draft CubicBezCurve tools.

Arc defined by four points, center, radius, initial point of arc and final point of arc.

Použití

  1. Stiskněte tlačítko Oblouk nebo stiskněte klávesy A a potom R
  2. Klikněte na první bod ve 3D pohledu nebo zadejte souřadnice
  3. Klikněte na druhý bod ve 3D pohledu nebo zadejte poloměr
  4. Klikněte na třetí bod ve 3D pohledu nebo zadejte počáteční úhel
  5. Klikněte na čtvrtý bod ve 3D pohledu nebo zadejte koncový úhel

The arc can be edited by double clicking on the element in the tree view, or by pressing the Draft Edit button. Then you can move the center point to a new position.

The arc can be turned into a circle after creation, by setting its first angle and last angle properties to the same value.

Volby

  • Základní použití nástroje Oblouk je zadání čtyř bodů: střed, bod na obvodu, který definuje poloměr, třetí bod definující začátek oblouku a čtvrtý bod definující jeho konec.
  • Stisknutím ALT můžete vybrat tečnu místo zadávání bodu čímž definujete základní kružnici oblouku. Tím můžete zkonstruovat několik typů kružnic výběrem jedné, dvou nebo tří tečen.
  • Směr oblouku závisí na pohybu myši. Jestli s ní po zadání třetího bodu začnete pohybovat ve směru hodinových ručiček, Váš oblouk bude vytvořen ve stejném směru. Chcete-li oblouk v opačném směru, jednoduše se myší vracejte přes třetí bod proti směru hodinových ručiček tak dlouho až se oblouk začne kreslit v opačném směru.
  • Chcete-li zadat souřadnice ručně jednoduše zadejte číslo a potom stiskněte ENTER mezi každou z komponent X, Y a Z.
  • Stiskněte klávesu T nebo klikněte na zaklikávací políčko pro zatrhnutí nebo odtrhnutí tlačítka Pokračovat. Je-li nastaven pokračovací mód, bude nástroj Oblouk hned po zadání čtvrtého bodu připraven ke kreslení dalšího oblouku bez nutnosti stisknout znovu tlačítko Oblouk..
  • Stisknutím klávesy CTRL během kreslení vynutíte přichycení vašeho bodu k nejbližšímu uchopovacímu místu nezávisle na vzálenosti od něho.
  • Stisknutím klávesy SHIFT během kreslení nastavíte vazbu vašeho bodu svisle nebo vodorovně v relaci ke středu.
  • Stisknutím tlačítka ESC nebo Cancel zrušíte právě probíhající příkaz.
  • Oblouk může být po vytvoření změněn na kružnici nastavením stejné hodnoty pro počáteční i koncový úhel ve vlastnostech.

Vlastnosti

  • ÚdajePoloměr: Poloměr oblouku
  • ÚdajePočáteční úhel: Úhel počátečního bodu oblouku
  • ÚdajeKoncový úhel: Úhel koncového bodu oblouku

Data

  • ÚdajeFirst Angle: specifies the angle of the first point of the arc.
  • ÚdajeLast Angle: specifies the angle of the last point of the arc.
  • ÚdajeRadius: specifies the radius of the arc.
  • ÚdajeMake 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 ÚdajeFirst Angle and ÚdajeLast 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

  • PohledPattern: specifies a Draft Pattern with which to fill the face of the arc. This property only works if the arc is a full circle, and if ÚdajeMake Face is true, and if PohledDisplay Mode is "Flat Lines".
  • PohledPattern Size: specifies the size of the Draft Pattern.

Skriptování

Nástroj Kružnice může být použít i pro vytváření oblouků v makrech a z konzoly Pythonu použitím následující funkce, přidáním dodatečných argumentů:

The Arc tool can be used in macros and from the Python console by using the same function to create circles, with additional arguments. See the information in Draft Circle.

Example:

import Draft

Arc1 = Draft.makeCircle(200, startangle=0, endangle=90)
Arc2 = Draft.makeCircle(500, startangle=20, endangle=160)
Arc3 = Draft.makeCircle(750, startangle=-30, endangle=-150)