Draftː Offset
Offset |
Posizione nel menu |
---|
Draft → Offset |
Ambiente |
Draft, Architettura |
Avvio veloce |
O S |
Introdotto nella versione |
- |
Vedere anche |
Scala, Part Offset 2D |
Descrizione
Lo strumento Offset sposta l'oggetto selezionato di una determinata distanza (offset) perpendicolare a se stesso.
Offset di un contorno a una certa distanza da uno dei suoi bordi
Utilizzo
See also: Draft Snap and Draft Constrain.
- Selezionare l'oggetto che si desidera scostare.
- Premere il pulsante Offset, o premere i tasti Template:KEY/it e Template:KEY/it. Se nessun oggetto è selezionato, si viene invitati a selezionarne uno.
- Selezionare un punto nella vista 3D, o fornire una distanza
Opzioni
The single character keyboard shortcuts and the modifier keys mentioned here can be changed. See Draft Preferences.
- Premere il tasto P o fare clic sulla casella di controllo per attivare la modalità copia. Se la modalità copia è attiva, lo strumento Offset mantiene la forma originale al suo posto e crea una copia ridimensionata nel punto selezionato.
- Tenere premuto Alt mentre si seleziona il punto per attivare o disattivare la modalità di copia. Tenendo premuto Alt si può continuare a posizionare delle copie offset; rilasciare Alt per terminare l'operazione e vedere tutte le forme di offset.
- Fare clic sulla casella di controllo "OCC-style" per attivare la modalità "OCC". Ciò crea un offset da entrambi i lati di un segmento di linea, che produce una speciale forma chiusa con i bordi arrotondati alle estremità dei segmenti.
- Nota: con questo stile i segmenti originali vengono rimossi, quindi utilizzare la modalità copia per conservare i bordi originali.
- Tenere premuto Ctrl mentre si si crea l'offset per agganciare in modo forzato il punto di snap più vicino, indipendentemente dalla distanza.
- Tenere premuto Maiusc per mantenere la distanza di offset riferita al segmento corrente ed evitare di selezionare un altro riferimento.
- Premere il tasto Esc o il pulsante Chiudi per interrompere il comando corrente; le copie offset già posizionate rimangono.
Notes
- To create an offset version of a Draft BSpline its points are offset individually, and from the new points a new spline is calculated. This new spline is not parallel to the original spline. For an exact parallel offset of a Draft BSpline the Part Offset2D command should be used.
- The Draft Offset command cannot handle Draft BezCurves. Use the Part Offset2D command instead.
Preferences
See also: Preferences Editor and Draft Preferences.
- To change the number of decimals used for the input of the distance: Edit → Preferences... → General → Units → Units settings → Number of decimals.
Scripting
Script
Vedere anche: Draft API e Nozioni di base sugli script di FreeCAD.
Lo strumento Offset può essere utilizzato nelle macro e dalla console Python utilizzando la seguente funzione:
offset_obj = offset(obj, delta, copy=False, bind=False, sym=False, occ=False)
- Crea un offset del dato contorno
obj
applicando ildelta
dato, definito come un vettore, al suo primo vertice. - Se
copy
èTrue
viene creato un altro oggetto invece di ridimensionare l'oggetto originale. - Se
bind
èTrue
, e a condizione che l'oggetto contorno sia aperto, l'originale e l'offset sono uniti nei loro punti finali, formando una faccia.- Se
sym
èTrue
, e anchebind
èTrue
, e l'offset è fatto su entrambi i lati del contorno, la larghezza totale è la larghezza del vettore dato.
- Se
- Se
occ
èTrue
, utilizzerà lo sfalsamento in stile OCC: crea un offset su entrambi i lati, quindi unisce i nuovi contorni e arrotonda gli angoli. - Restituisce un
Offsetobj
con l'oggetto offset originale o con la nuova copia.
Esempio:
import FreeCAD as App
import Draft
doc = App.newDocument()
p1 = App.Vector(0, 0, 0)
p2 = App.Vector(1500, 2000, 0)
p3 = App.Vector(4000, 0, 0)
wire = Draft.make_wire([p1, p2, p3])
doc.recompute()
vector = App.Vector(-200, 150, 0)
offset1 = Draft.offset(wire, vector, copy=True, bind=True, sym=True)
offset2 = Draft.offset(wire, 3*vector, copy=True)
offset3 = Draft.offset(wire, 6*vector, copy=True)
offset4 = Draft.offset(wire, 9*vector, copy=True)
offset5 = Draft.offset(wire, 1.5*vector, copy=True, occ=True)
doc.recompute()
Draft
- 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
User documentation
- 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