Difference between revisions of "Draft ShapeString/it"
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
Line 1: | Line 1: | ||
<languages/> | <languages/> | ||
− | {{ | + | {{Docnav|[[Draft_Point|Point]]|[[Draft_Facebinder|Facebinder]]|[[Draft_Module|Draft]]|IconL=Draft_Point.svg |IconC=Workbench_Draft.svg|IconR=Draft_Facebinder.svg }} |
<div class="mw-translate-fuzzy"> | <div class="mw-translate-fuzzy"> | ||
Line 126: | Line 126: | ||
</div> | </div> | ||
− | {{ | + | {{Docnav|[[Draft_Point|Point]]|[[Draft_Facebinder|Facebinder]]|[[Draft_Module|Draft]]|IconL=Draft_Point.svg |IconC=Workbench_Draft.svg|IconR=Draft_Facebinder.svg }} |
{{Draft Tools navi}} | {{Draft Tools navi}} |
Revision as of 20:55, 11 February 2019
Posizione nel menu |
---|
Draft → Forma da testo... |
Ambiente |
Draft, Arch |
Avvio veloce |
S S |
Introdotto nella versione |
- |
Vedere anche |
Testo Draft, Part Estrusione |
Descrizione
Lo strumento ShapeString inserisce una forma composta che riproduce una stringa di testo in un dato punto del documento corrente. Si possono definire gli attributi del testo quali altezza, tipo di carattere, ecc.. La forma risultante può essere utilizzata con lo strumento Estrusione di Part per creare lettere 3D.
Lo strumento Testo di Draft è un'alternativa più semplice che non produce una forma chiusa.
Utilizzo
- Premere il pulsante
Forma da testo..., oppure il tasto S poi S
- Cliccare in un punto della vista in 3D, oppure inserire le sue coordinate
- Inserire il testo poi premere ENTER
- Inserire l'altezza voluta poi premere ENTER
- Inserire la spaziatura desiderata poi premere ENTER
- Premere ENTER per accettare il tipo di carattere visualizzato, oppure,
- Premere il pulsante con tre puntini ... per selezionare un tipo di carattere diverso.
The text, size, tracking, and font can be changed after creation, by modifying the shape properties.
Set the default font file in Draft Preferences, in the Texts and dimensions tab. Supported fonts include TrueType (.ttf), OpenType (.otf), and Type 1 (.pfb).
Limitazioni
- Questo strumento non è disponibile nelle versioni precedenti alla 0.14
- Sono supportati i caratteri di tipo TrueType(*.ttf), OpenType(*.otf) e Type1(*.pfb).
- Altezze di testo molto piccole possono comportare la deformazione dei glifi dei caratteri a causa della perdita dei dettagli nella scalatura.
- La versione corrente mostra solo un testo scritto in orizzontale da sinistra a destra.
- Per creare un testo curvo è possibile utilizzare la macro
Testo circolare
Opzioni
- Per inserire le coordinate manualmente, basta inserire i numeri, quindi premere ENTER tra ognuno dei componenti X, Y e Z.
- Premere ESC per annullare l'operazione.
- Nelle Preferenze di Draft è possibile impostare un file di caratteri predefinito.
Proprietà
Vista
Sono disponibili le Proprietà standard di visualizzazione.
Dati
2D Base
Draft
|
Script
Lo strumento ShapeString può essere utilizzato nelle macro e dalla console Python tramite la seguente funzione:
ShapeString = makeShapeString(String, FontFile, Size=100, Tracking=0)
- Trasforma una
Stringa
di testo in unaShapeString
utilizzando un font specificato. -
FontFile
è obbligatorio e deve essere il percorso completo di un file di font supportato -
Size
è l'altezza del testo risultante in millimetri -
Tracking
è la spaziatura aggiuntiva tra i caratteri in millimetri
The placement of the ShapeString can be changed by overwriting its Placement
attribute, or by individually overwriting its Placement.Base
and Placement.Rotation
attributes.
Esempio:
import FreeCAD, Draft font1 = "/usr/share/fonts/truetype/msttcorefonts/Arial.ttf" font2 = "/usr/share/fonts/truetype/dejavu/DejaVuSerif.ttf" font3 = "/usr/share/fonts/truetype/freefont/FreeSerifItalic.ttf" S1 = Draft.makeShapeString("This is a sample text", font1, 200) S2 = Draft.makeShapeString("Inclined text", font2, 200, 10) ZAxis = FreeCAD.Vector(0, 0, 1) p2 = FreeCAD.Vector(-1000, 500, 0) place2 = FreeCAD.Placement(p2, FreeCAD.Rotation(ZAxis, 45)) S2.Placement = place2 S3 = Draft.makeShapeString("Upside-down text", font3, 200, 10) S3.Placement.Base = FreeCAD.Vector(0, -1000, 0) S3.Placement.Rotation = FreeCAD.Rotation(ZAxis, 180)
- Basics: Coordinates, Constraining, Snapping (Near, Extension, Parallel, Grid, Endpoint, Midpoint, Perpendicular, Angle, Center, Ortho, Intersection, Special, Dimensions, Working plane)
- Drawing: Line, Wire, Circle, Arc, Ellipse, Polygon, Rectangle, Text, Dimension, BSpline, Point, ShapeString, Facebinder, Bezier Curve, Cubic Bezier Curve, Label
- Modifying: Move, Rotate, Offset, Trimex, Join, Split, Upgrade, Downgrade, Scale, Edit, SubelementHighlight, Wire to BSpline, Add point, Delete point, Shape 2D View, Draft to Sketch, Array, Path Array, Point Array, Clone, Drawing, Mirror, Stretch
- Utilities: Set working plane, Finish line, Close line, Undo line, Toggle construction mode, Toggle continue mode, Apply style, Toggle display mode, Add to group, Select group contents, Toggle snap, Toggle grid, Show snap bar, Heal, Flip Dimension, VisGroup, Slope, AutoGroup, Set Working Plane Proxy, Add to Construction group
- Additional: Preferences, Import-Export Preferences (DXF/DWG, SVG, OCA, DAT); Draft API

- Installation: Linux/Unix, Windows, Mac; Getting started
- Basics: About FreeCAD, Workbenches, Preferences, Document structure, Interface Customization, Properties, Mouse Model; Tutorials
- Workbenches: Std Base; Arch, Draft, FEM, Image, Inspection, Mesh, OpenSCAD, Part, PartDesign, Path, Plot, Points, Raytracing, Reverse Engineering, Robot, Ship, Sketcher, Spreadsheet, Start, Surface workbench, TechDraw, Test Framework, Web
- Scripting: Introduction to Python, FreeCAD scripting tutorial, FreeCAD Scripting Basics, How to install macros, Gui Command, Units Modules: Builtin modules, Workbench creation, Installing more workbenches Meshes: Mesh Scripting, Mesh Module Parts: The Part Module, Topological data scripting, PythonOCC, Mesh to Part Coin scenegraph: The Coin/Inventor scenegraph, Pivy Qt interface: PySide, Using the FreeCAD GUI, Dialog creation Parametric objects: Scripted objects Other: Code snippets, Line drawing function, Embedding FreeCAD, FreeCAD vector math library, Power users hub, Python, Macros, FreeCAD Scripting Basics, Topological data scripting