Draft Rotate/it: Difference between revisions
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
Line 1: | Line 1: | ||
<languages/> |
<languages/> |
||
<div class="mw-translate-fuzzy"> |
|||
{{GuiCommand/it|Name=Draft Rotate|Name/it=Ruota|Workbenches=[[Draft Module/it|Draft]], [[Arch Module/it|Architettura]]|MenuLocation=Draft → Ruota|Shortcut=R O}} |
{{GuiCommand/it|Name=Draft Rotate|Name/it=Ruota|Workbenches=[[Draft Module/it|Draft]], [[Arch Module/it|Architettura]]|MenuLocation=Draft → Ruota|Shortcut=R O}} |
||
</div> |
|||
==Descrizione== |
==Descrizione== |
||
<div class="mw-translate-fuzzy"> |
|||
Questo strumento ruota o copia e ruota gli oggetti selezionati di un determinato angolo attorno a un punto del [[Draft SelectPlane/it|piano di lavoro]] corrente. |
Questo strumento ruota o copia e ruota gli oggetti selezionati di un determinato angolo attorno a un punto del [[Draft SelectPlane/it|piano di lavoro]] corrente. |
||
</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}} |
|||
== Utilizzo == |
== Utilizzo == |
||
<div class="mw-translate-fuzzy"> |
|||
# Selezionare gli oggetti che si desidera ruotare o copiare |
# Selezionare gli oggetti che si desidera ruotare o copiare |
||
# Premere il pulsante {{KEY/it|Ruota}}, o premere i tasti {{KEY/it|R}} e {{KEY/it|O}} |
# Premere il pulsante {{KEY/it|Ruota}}, o premere i tasti {{KEY/it|R}} e {{KEY/it|O}} |
||
Line 15: | Line 25: | ||
# Selezionare il secondo punto nella vista 3D, o fornire un angolo di riferimento |
# Selezionare il secondo punto nella vista 3D, o fornire un angolo di riferimento |
||
# Selezionare il terzo punto nella vista 3D, o fornire un angolo di rotazione |
# Selezionare il terzo punto nella vista 3D, o fornire un angolo di rotazione |
||
</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. |
|||
== Opzioni == |
== Opzioni == |
||
<div class="mw-translate-fuzzy"> |
|||
* Premere {{KEY/it|X}}, {{KEY/it|Y}} o {{KEY/it|Z}} dopo un punto per vincolare il punto successivo a un dato asse. |
* Premere {{KEY/it|X}}, {{KEY/it|Y}} o {{KEY/it|Z}} dopo un punto per vincolare il punto successivo a un dato asse. |
||
* Per inserire manualmente le coordinate, è sufficiente inserire il numero, quindi premere {{KEY/it|INVIO}} per ogni componente X, Y e Z. |
* Per inserire manualmente le coordinate, è sufficiente inserire il numero, quindi premere {{KEY/it|INVIO}} per ogni componente X, Y e Z. |
||
Line 25: | Line 40: | ||
* Premere {{KEY/it|SHIFT}} mentre si disegna per [[Draft_Constrain/it|vincolare]] il secondo punto orizzontalmente o verticalmente rispetto al centro di rotazione. |
* Premere {{KEY/it|SHIFT}} mentre si disegna per [[Draft_Constrain/it|vincolare]] il secondo punto orizzontalmente o verticalmente rispetto al centro di rotazione. |
||
* Premere {{KEY/it|ESC}} o premere il pulsante {{KEY/it|Cancella}} per uscire dal comando attivo. |
* Premere {{KEY/it|ESC}} o premere il pulsante {{KEY/it|Cancella}} per uscire dal comando attivo. |
||
</div> |
|||
<div class="mw-translate-fuzzy"> |
|||
== Script == |
== Script == |
||
</div> |
|||
<div class="mw-translate-fuzzy"> |
|||
Lo strumento Ruota può essere utilizzato nelle [[macros/it|macro]] e dalla [[FreeCAD_Scripting_Basics/it|console di Python]] utilizzando la seguente funzione: |
Lo strumento Ruota può essere utilizzato nelle [[macros/it|macro]] e dalla [[FreeCAD_Scripting_Basics/it|console di Python]] utilizzando la seguente funzione: |
||
</div> |
|||
{{Code|code= |
{{Code|code= |
||
rotatedlist = rotate(objectslist, angle, center=Vector(0,0,0), axis=Vector(0,0,1), copy=False) |
|||
}} |
}} |
||
<div class="mw-translate-fuzzy"> |
|||
* Ruota l'oggetto dato o gli oggetti contenuti nella lista fornita di un dato angolo attorno al centro dato, se disponibile, con axis come asse di rotazione. |
* Ruota l'oggetto dato o gli oggetti contenuti nella lista fornita di un dato angolo attorno al centro dato, se disponibile, con axis come asse di rotazione. |
||
* Se l'asse viene omesso, la rotazione avviene attorno all'asse verticale Z. |
* Se l'asse viene omesso, la rotazione avviene attorno all'asse verticale Z. |
||
* Se CopyMode è True, gli oggetti reali non vengono spostati, ma vengono invece create delle loro copie. |
* Se CopyMode è True, gli oggetti reali non vengono spostati, ma vengono invece create delle loro copie. |
||
* Restituisce gli oggetti (o delle loro copie se CopyMode è True). |
* Restituisce gli oggetti (o delle loro copie se CopyMode è True). |
||
</div> |
|||
Esempio: |
Esempio: |
||
{{Code|code= |
{{Code|code= |
||
import FreeCAD,Draft |
import FreeCAD, Draft |
||
Draft.rotate(FreeCAD.ActiveDocument.ActiveObject,45) |
|||
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) |
|||
}} |
}} |
||
{{Draft Tools navi}} |
|||
{{Userdocnavi}} |
|||
{{clear}} |
Revision as of 13:07, 8 January 2019
Ruota |
Posizione nel menu |
---|
Draft → Ruota |
Ambiente |
Draft, Architettura |
Avvio veloce |
R O |
Introdotto nella versione |
- |
Vedere anche |
Nessuno |
Descrizione
Questo strumento ruota o copia e ruota gli oggetti selezionati di un determinato angolo attorno a un punto del piano di lavoro corrente.
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
Utilizzo
- Selezionare gli oggetti che si desidera ruotare o copiare
- Premere il pulsante Template:KEY/it, o premere i tasti Template:KEY/it e Template:KEY/it
- Selezionare un primo punto, centro di rotazione, nella vista 3D, oppure digitare le sue coordinate
- Selezionare il secondo punto nella vista 3D, o fornire un angolo di riferimento
- Selezionare il terzo punto nella vista 3D, o fornire un angolo di rotazione
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.
Opzioni
- Premere Template:KEY/it, Template:KEY/it o Template:KEY/it dopo un punto per vincolare il punto successivo a un dato asse.
- Per inserire manualmente le coordinate, è sufficiente inserire il numero, quindi premere Template:KEY/it per ogni componente X, Y e Z.
- Premere Template:KEY/it oppure fare clic sulla casella di controllo per selezionare o deselezionare la modalità Template:KEY/it. Se la modalità Continua è attiva, lo strumento Ruota si riavvia dopo che è stato terminato o chiuso, permettendo di eseguire nuove rotazioni o spostamenti senza dover ripetere il comando.
- Premere Template:KEY/it o Template:KEY/it o attivare la funzione Template:KEY/it per creare una copia degli oggetti, invece di ruotarli. Mantenendo premuto Template:KEY/it dopo aver cliccato il secondo punto, si possono inserire più duplicati, finché non si rilascia il tasto Template:KEY/it.
- Premere Template:KEY/it mentre si disegna per agganciare forzatamente il proprio punto al punto di ancoraggio più vicino, indipendentemente dalla distanza.
- Premere Template:KEY/it mentre si disegna per vincolare il secondo punto orizzontalmente o verticalmente rispetto al centro di rotazione.
- Premere Template:KEY/it o premere il pulsante Template:KEY/it per uscire dal comando attivo.
Script
Lo strumento Ruota può essere utilizzato nelle macro e dalla console di Python utilizzando la seguente funzione:
rotatedlist = rotate(objectslist, angle, center=Vector(0,0,0), axis=Vector(0,0,1), copy=False)
- Ruota l'oggetto dato o gli oggetti contenuti nella lista fornita di un dato angolo attorno al centro dato, se disponibile, con axis come asse di rotazione.
- Se l'asse viene omesso, la rotazione avviene attorno all'asse verticale Z.
- Se CopyMode è True, gli oggetti reali non vengono spostati, ma vengono invece create delle loro copie.
- Restituisce gli oggetti (o delle loro copie se CopyMode è True).
Esempio:
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