Draft Rotate/cs: Difference between revisions
(Created page with "{{GuiCommand/cs|Name=Draft Rotate|Name/cs=Kreslení Otočit|Workbenches=Kreslení, Architektura|MenuLocation=Kreslení -> Otočit|Shortc...") |
(Updating to match new version of source page) |
||
(19 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
<languages/> |
|||
{{GuiCommand/cs|Name=Draft Rotate|Name/cs=Kreslení Otočit|Workbenches=[[Draft Module/cs|Kreslení]], [[Arch Module/cs|Architektura]]|MenuLocation=Kreslení -> Otočit|Shortcut=R O}} |
|||
{{Docnav|[[Draft_Move|Move]]|[[Draft_Offset|Offset]]|[[Draft_Module|Draft]]|IconL=Draft_Move.svg|IconC=Workbench_Draft.svg|IconR=Draft_Offset.svg}} |
|||
<div class="mw-translate-fuzzy"> |
|||
==Description== |
|||
{{GuiCommand/cs|Name=Draft Rotate|Name/cs=Kreslení Otočit|Workbenches=[[Draft Module/cs|Kreslení]], [[Arch Module/cs|Architektura]]|MenuLocation=Kreslení → Otočit|Shortcut=R O}} |
|||
</div> |
|||
==Popis== |
|||
This tool rotates or copies the selected objects by a given angle around a point on the current [[Draft Workingplane|work plane]]. If no object is selected, you will be invited to select one. |
|||
<div class="mw-translate-fuzzy"> |
|||
Nástroj Otočit otáčí nebo kopíruje vybrané objekty o zadaný úhel kolem bodu v aktuální [[Draft SelectPlane/cs|pracovní rovině]]. Není-li vybrán žádný objekt, budete vyzváni k výběru objektu. |
|||
</div> |
|||
The Rotate tool can be used on 2D shapes created with the [[Draft Workbench]] or [[Sketcher Workbench]], but can also be used on many types of 3D objects such as those created with the [[Part Workbench]] or [[Arch Workbench]]. |
|||
To move without rotation, use [[Draft Move]]. To produce various copies in different arrangements use [[Draft Array]], [[Draft PathArray]] and [[Draft PointArray]]. |
|||
[[Image:Draft_Rotate_example.jpg|400px]] |
[[Image:Draft_Rotate_example.jpg|400px]] |
||
{{Caption|Rotating one object using a center reference point, from one reference angle to another angle}} |
|||
== |
==Použití== |
||
<div class="mw-translate-fuzzy"> |
|||
# Select objects you wish to rotate or copy |
|||
# Vyberte objekt, který chcete otočit nebo zkopírovat |
|||
# Press the {{KEY|[[Image:Draft Rotate.png|16px]] [[Draft Rotate]]}} button, or press {{KEY|R}} then {{KEY|O}} keys |
|||
# Stiskněte tlačítko {{KEY|[[Image:Draft Rotate.png|16px]] [[Draft Rotate/cs|Kreslení Otočit]]}} nebo klávesy {{KEY|R}} potom {{KEY|O}} |
|||
# Click a center point on the 3D view, or type a [[Draft_Coordinates|coordinate]] |
|||
# Klikněte na střed ve 3D pohledu nebo zadejte [[Draft_Coordinates/cs|souřadnice]] |
|||
# Click a second point on the 3D view, or give a reference angle |
|||
# Klikněte na druhý bod ve 3D pohledu nebo zadejte referenční úhel |
|||
# Click a third point on the 3D view, or give a rotation angle |
|||
# Klikněte na třetí bod ve 3D pohledu nebo zadejte úhel otočení |
|||
</div> |
|||
== |
===Limitations=== |
||
When rotating an object that is based on a [[Sketcher Sketch]], for example, a feature created with the [[PartDesign Workbench]] ([[PartDesign Pad|Pad]], [[PartDesign Revolution|Revolution]], etc.) you must move the original sketch. If you move the derived object, it will just go back to the position defined by the sketch. |
|||
==Volby== |
|||
* Press {{KEY|X}}, {{KEY|Y}} or {{KEY|Z}} after a point to constrain the next point on the given axis. |
|||
* 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 Rotate tool will restart after you finish or close it, allowing you to rotate or copy the objects another time without pressing the Rotate button again. |
|||
* Pressing {{KEY|ALT}} or {{KEY|C}} or clicking the {{KEY|'''Copy'''}} button will make a copy of the objects, instead of rotating them. If you keep {{KEY|ALT}} pressed after clicking the third point, you will be able to place more copies, until you release the {{KEY|ALT}} key. |
|||
* 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 next point horizontally or vertically in relation to the rotation center. |
|||
* Press {{KEY|ESC}} or the {{KEY|'''Cancel'''}} button to abort the current command. |
|||
<div class="mw-translate-fuzzy"> |
|||
==Scripting== |
|||
* Stiskněte klávesu {{KEY|X}}, {{KEY|Y}} nebo {{KEY|Z}} po prvním bodu pokud chcete uplatnit vazbu dalšího bodu v příslušné ose. |
|||
* 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. |
|||
* Stiskněte klávesu {{KEY|T}} nebo zaklikněte/odklikněte políčko {{KEY|'''Pokračovat'''}}. Je-li nastaven pokračovací mód, bude nástroj Otočit hned po ukončení připraven k otočení nebo kopírování bez nutnosti stisknout znovu tlačítko Otočit. |
|||
* Stisknutí klávesy {{KEY|ALT}} nebo {{KEY|C}} nebo kliknutí na tlačítko {{KEY|'''Kopie'''}} vytvoří kopii objektu místo jeho otočení. Podržíte-li stisknutou klávesu {{KEY|ALT}} po kliknutí na druhý bod, budete moci umístit několik kopií, až dokud neuvolníte klávesu {{KEY|ALT}}. |
|||
* Stisknutím klávesy {{KEY|CTRL}} během kreslení vynutíte [[Draft_Snap/cs|přichycení]] vašeho bodu k nejbližšímu uchopovacímu místu nezávisle na vzálenosti od něho. |
|||
*Stisknutím klávesy {{KEY|SHIFT}} během kreslení [[Draft_Constrain/cs|nastavíte vazbu]] vašeho bodu svisle nebo vodorovně v relaci předchozímu bodu. |
|||
* Stisknutím tlačítka {{KEY|ESC}} nebo {{KEY|'''Zrušit'''}} zrušíte právě probíhající příkaz. |
|||
</div> |
|||
<div class="mw-translate-fuzzy"> |
|||
The Rotate tool can by used in [[macros]] and from the python console by using the following function: |
|||
==Skriptování== |
|||
</div> |
|||
<div class="mw-translate-fuzzy"> |
|||
<syntaxhighlight> |
|||
Nástroj Otočit může být využit v [[macros/cs|makrech]] a z konzoly Pythonu použitím následující funkce: |
|||
rotate (FreeCAD.Object or list, angle, [center], [axis] ,[copymode]) |
|||
</div> |
|||
</syntaxhighlight> |
|||
* Rotates the given object or the objects contained in the given list with the given angle around the given center if provided, using axis as a rotation axis. |
|||
* If axis is omitted, the rotation will be around the vertical Z axis. |
|||
* If copymode is True, the actual objects are not moved, but copies are created instead. |
|||
* Returns the objects (or their copies is copymode was True). |
|||
{{Code|code= |
|||
Example: |
|||
rotatedlist = rotate(objectslist, angle, center=Vector(0,0,0), axis=Vector(0,0,1), copy=False) |
|||
}} |
|||
<div class="mw-translate-fuzzy"> |
|||
<syntaxhighlight> |
|||
* Otočí zadaný objekt nebo objekty obsažené v zadaném seznamum (list) o daný úhel (angle) kolem středu (je-li zadán) s použitím osy jako osy rotace. |
|||
import FreeCAD,Draft |
|||
* Chybí-li osa (axis), bude otočení provedeno podle svislé osy Z. |
|||
Draft.rotate(FreeCAD.ActiveDocument.ActiveObject,45) |
|||
* Je-li copymode True, aktuální objekty se nepohnou, ale místo toho jsou vytvořeny jejich kopie. |
|||
</syntaxhighlight> |
|||
* Vrací objekty (nebo jejich kopie, pokud bylo copymode True). |
|||
</div> |
|||
Příklad: |
|||
<languages/> |
|||
{{Code|code= |
|||
import FreeCAD, Draft |
|||
Polygon1 = Draft.makePolygon(3, radius=500) |
|||
Draft.move(Polygon1, FreeCAD.Vector(1500, 0, 0)) |
|||
Draft.rotate(Polygon1, 45) |
|||
# Rotation around the origin |
|||
angle1 = 63 |
|||
rot2 = Draft.rotate(Polygon1, angle1, copy=True) |
|||
rot3 = Draft.rotate(Polygon1, 2*angle1, copy=True) |
|||
rot4 = Draft.rotate(Polygon1, 4*angle1, copy=True) |
|||
Polygon2 = Draft.makePolygon(3, radius=1000) |
|||
Polygon3 = Draft.makePolygon(5, radius=500) |
|||
Draft.move(Polygon2, FreeCAD.Vector(2000, 0, 0)) |
|||
Draft.move(Polygon3, FreeCAD.Vector(2000, 0, 0)) |
|||
# Rotation around another point |
|||
angle2 = 60 |
|||
c = FreeCAD.Vector(3100, 0, 0) |
|||
List2 = [Polygon2, Polygon3] |
|||
rot_list2 = Draft.rotate(List2, angle2, center=c, copy=True) |
|||
rot_list3 = Draft.rotate(List2, 2*angle2, center=c, copy=True) |
|||
rot_list4 = Draft.rotate(List2, 4*angle2, center=c, copy=True) |
|||
}} |
|||
{{Docnav|[[Draft_Move|Move]]|[[Draft_Offset|Offset]]|[[Draft_Module|Draft]]|IconL=Draft_Move.svg|IconC=Workbench_Draft.svg|IconR=Draft_Offset.svg}} |
|||
{{Draft Tools navi}} |
|||
{{Userdocnavi}} |
|||
{{clear}} |
Revision as of 20:12, 11 February 2019
Kreslení Otočit |
Umístění Menu |
---|
Kreslení → Otočit |
Pracovní stoly |
Kreslení, Architektura |
Výchozí zástupce |
R O |
Představen ve verzi |
- |
Viz také |
Nikdo |
Popis
Nástroj Otočit otáčí nebo kopíruje vybrané objekty o zadaný úhel kolem bodu v aktuální pracovní rovině. Není-li vybrán žádný objekt, budete vyzváni k výběru objektu.
The Rotate tool can be used on 2D shapes created with the Draft Workbench or Sketcher Workbench, but can also be used on many types of 3D objects such as those created with the Part Workbench or Arch Workbench.
To move without rotation, use Draft Move. To produce various copies in different arrangements use Draft Array, Draft PathArray and Draft PointArray.
Rotating one object using a center reference point, from one reference angle to another angle
Použití
- Vyberte objekt, který chcete otočit nebo zkopírovat
- Stiskněte tlačítko Kreslení Otočit nebo klávesy R potom O
- Klikněte na střed ve 3D pohledu nebo zadejte souřadnice
- Klikněte na druhý bod ve 3D pohledu nebo zadejte referenční úhel
- Klikněte na třetí bod ve 3D pohledu nebo zadejte úhel otočení
Limitations
When rotating an object that is based on a Sketcher Sketch, for example, a feature created with the PartDesign Workbench (Pad, Revolution, etc.) you must move the original sketch. If you move the derived object, it will just go back to the position defined by the sketch.
Volby
- Stiskněte klávesu X, Y nebo Z po prvním bodu pokud chcete uplatnit vazbu dalšího bodu v příslušné ose.
- 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 zaklikněte/odklikněte políčko Pokračovat. Je-li nastaven pokračovací mód, bude nástroj Otočit hned po ukončení připraven k otočení nebo kopírování bez nutnosti stisknout znovu tlačítko Otočit.
- Stisknutí klávesy ALT nebo C nebo kliknutí na tlačítko Kopie vytvoří kopii objektu místo jeho otočení. Podržíte-li stisknutou klávesu ALT po kliknutí na druhý bod, budete moci umístit několik kopií, až dokud neuvolníte klávesu ALT.
- 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 předchozímu bodu.
- Stisknutím tlačítka ESC nebo Zrušit zrušíte právě probíhající příkaz.
Skriptování
Nástroj Otočit může být využit v makrech a z konzoly Pythonu použitím následující funkce:
rotatedlist = rotate(objectslist, angle, center=Vector(0,0,0), axis=Vector(0,0,1), copy=False)
- Otočí zadaný objekt nebo objekty obsažené v zadaném seznamum (list) o daný úhel (angle) kolem středu (je-li zadán) s použitím osy jako osy rotace.
- Chybí-li osa (axis), bude otočení provedeno podle svislé osy Z.
- Je-li copymode True, aktuální objekty se nepohnou, ale místo toho jsou vytvořeny jejich kopie.
- Vrací objekty (nebo jejich kopie, pokud bylo copymode True).
Příklad:
import FreeCAD, Draft
Polygon1 = Draft.makePolygon(3, radius=500)
Draft.move(Polygon1, FreeCAD.Vector(1500, 0, 0))
Draft.rotate(Polygon1, 45)
# Rotation around the origin
angle1 = 63
rot2 = Draft.rotate(Polygon1, angle1, copy=True)
rot3 = Draft.rotate(Polygon1, 2*angle1, copy=True)
rot4 = Draft.rotate(Polygon1, 4*angle1, copy=True)
Polygon2 = Draft.makePolygon(3, radius=1000)
Polygon3 = Draft.makePolygon(5, radius=500)
Draft.move(Polygon2, FreeCAD.Vector(2000, 0, 0))
Draft.move(Polygon3, FreeCAD.Vector(2000, 0, 0))
# Rotation around another point
angle2 = 60
c = FreeCAD.Vector(3100, 0, 0)
List2 = [Polygon2, Polygon3]
rot_list2 = Draft.rotate(List2, angle2, center=c, copy=True)
rot_list3 = Draft.rotate(List2, 2*angle2, center=c, copy=True)
rot_list4 = Draft.rotate(List2, 4*angle2, center=c, copy=True)
- Drafting: Line, Polyline, Fillet, Arc, Arc by 3 points, Circle, Ellipse, Rectangle, Polygon, B-spline, Cubic Bézier curve, Bézier curve, Point, Facebinder, ShapeString, Hatch
- Annotation: Text, Dimension, Label, Annotation styles, Annotation scale
- Modification: Move, Rotate, Scale, Mirror, Offset, Trimex, Stretch, Clone, Array, Polar array, Circular array, Path array, Path link array, Point array, Point link array, Edit, Subelement highlight, Join, Split, Upgrade, Downgrade, Wire to B-spline, Draft to sketch, Set slope, Flip dimension, Shape 2D view
- Draft Tray: Select plane, Set style, Toggle construction mode, AutoGroup
- Snapping: Snap lock, Snap endpoint, Snap midpoint, Snap center, Snap angle, Snap intersection, Snap perpendicular, Snap extension, Snap parallel, Snap special, Snap near, Snap ortho, Snap grid, Snap working plane, Snap dimensions, Toggle grid
- Miscellaneous: Apply current style, Layer, Manage layers, Add a new named group, Move to group, Select group, Add to construction group, Toggle normal/wireframe display, Create working plane proxy, Heal, Show snap toolbar
- Additional: Constraining, Pattern, Preferences, Import Export Preferences, DXF/DWG, SVG, OCA, DAT
- Context menu:
- Layer container: Merge layer duplicates, Add new layer
- Layer: Activate this layer, Select layer contents
- Text: Open hyperlinks
- Wire: Flatten
- Working plane proxy: Write camera position, Write objects state
- Getting started
- Installation: Download, Windows, Linux, Mac, Additional components, Docker, AppImage, Ubuntu Snap
- Basics: About FreeCAD, Interface, Mouse navigation, Selection methods, Object name, Preferences, Workbenches, Document structure, Properties, Help FreeCAD, Donate
- Help: Tutorials, Video tutorials
- Workbenches: Std Base, Arch, Assembly, CAM, Draft, FEM, Inspection, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Start, Surface, TechDraw, Test Framework, Web
- Hubs: User hub, Power users hub, Developer hub