Draft ShapeString/de: Difference between revisions
(Created page with "* Um Koordinaten von Hand einzugeben, gib einfach die Zahlen ein und drücke dann {{KEY|Enter}} zwischen jeder X-, Y- und Z-Komponente. Du kannst den {{Button|Image:Draft_A...") |
(Created page with "==Eigenschaften==") |
||
Line 65: | Line 65: | ||
</div> |
</div> |
||
== |
==Eigenschaften== |
||
* {{PropertyData|Position}}: specifies the position of the base point of the compound shape. |
* {{PropertyData|Position}}: specifies the position of the base point of the compound shape. |
Revision as of 12:51, 28 December 2019
Draft ShapeString |
Menüeintrag |
---|
Draft -> ShapeString |
Arbeitsbereich |
Draft, Arch |
Standardtastenkürzel |
S S |
Eingeführt in Version |
- |
Siehe auch |
Draft Text, Part Extrude |
Beschreibung
Das Werkzeug Formkette fügt eine Verbundform ein, die eine Zeichenkette darstellt. Die Texthöhe, die Nachführung und die Schriftart können angegeben werden. Die resultierende Form kann mit dem Werkzeug Teil Extrusion verwendet werden, um 3D Buchstaben zu erzeugen.
Um ein einfacheres Textelement ohne geschlossene Form einzufügen, verwende Entwurf Text. Um eine Textbeschriftung mit einem Anfang und einem Pfeil zu erstellen, verwende Entwurf Beschriftung
Einfacher Punkt zur Positionierung des Formfolge erforderlich
Anwendung
Wenn der Entwurf Benutzeroberflächenmodus auf Werkzeugleiste eingestellt ist:
- Drücke den Entwurf Formfolge oder drücke die Tasten S und dann S.
- Klicke auf einen Punkt in der 3D Ansicht, oder gib Koordinate] ein und drücke die Taste [Draft_AddPoint/de.
- Gib den gewünschten Text ein und drücke Enter.
- Gib die gewünschte Größe ein und drücke Enter.
- Gib die gewünschte Nachverfolgung ein und drücke Enter.
- Drücke Enter, um die angezeigte Schriftartdatei zu übernehmen, oder drücke ..., um eine Schriftartdatei auszuwählen.
Wenn der Entwurf Benutzeroberflächenmodus auf Aufgabenansicht eingestellt ist:
- Drücke den Entwurf Formfolge oder drücke die Tasten S und dann S.
- Ein Dialogfeld erscheint, in dem Du deine Parameter angeben kannst.
- Drücke die Taste OK, um die Formfolge zu erstellen.
- Der Text, die Größe, die Verfolgung und die Schriftart können nach der Erstellung geändert werden, indem die Werte im Eigenschaften Editor modifiziert werden.
- Du wirst die Standardschriftartdatei in /de|Entwurf Einstellungen, im Register Template:Button/de einstellen wollen. Dadurch wird das Schriftartendateifeld im Dialogfeld ausgefüllt.
- Zu den unterstützten Schriftarten gehören TrueType (.ttf), OpenType (.otf) und Type 1 (.pfb).
Begrenzungen=
- Sehr kleine Texthöhen können durch Detailverlust bei der Skalierung zu verzerrten Zeichenformen führen.
- Die aktuelle Version ist auf die von Links nach Rechts Schreiben begrenzt.
- Um kreisförmig angeordneten Text zu erstellen, verwende den Rundtext.
Optionen
- Um Koordinaten von Hand einzugeben, gib einfach die Zahlen ein und drücke dann Enter zwischen jeder X-, Y- und Z-Komponente. Du kannst den Punkt hinzufügent drücken, wenn Du die gewünschten Werte zum Einfügen des Punktes hast.
- Drücke die Taste Esc oder die Taste {Close, um den aktuellen Befehl abzubrechen.
Eigenschaften
- DatenPosition: specifies the position of the base point of the compound shape.
- DatenAngle: specifies the rotation of the baseline of the shape.
- DatenAxis: specifies the axis to use for the rotation.
- DatenString: specifies the text string to display; unlike the Draft Text tool, the Draft ShapeString can only display a single line.
- DatenSize: specifies the general height of the letters.
- DatenTracking: specifies the additional inter-character spacing in the string.
- DatenFont File: specifies the full path of the font file used to draw the string.
Scripting
See also: Draft API and FreeCAD Scripting Basics.
The ShapeString tool can be used in macros and from the Python console by using the following function:
ShapeString = makeShapeString(String, FontFile, Size=100, Tracking=0)
- Creates a
ShapeString
compound shape using the specifiedString
and the full path of a supportedFontFile
. Size
is the height of the resulting text in millimeters.Tracking
is the additional inter-character spacing in millimeters.
The placement of the ShapeString can be changed by overwriting its Placement
attribute, or by individually overwriting its Placement.Base
and Placement.Rotation
attributes.
Example:
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)
Tutorials
- Draft ShapeString tutorial: extrude a ShapeString, position it in 3D space, and create an engraving in another body.
- How to use ShapeStrings in PartDesign
Notes
- Many fonts will generate problematic geometric. This is because font contours are allowed to overlap, have small gaps and have varying directions within a glyph. These conditions are considered errors in the Wires used to define Faces. Options are to correct the font definition with a tool like FontForge or to use another font.
- 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, Surface, TechDraw, Test Framework
- Hubs: User hub, Power users hub, Developer hub