Draft ShapeString/ro: Difference between revisions
No edit summary |
(Updating to match new version of source page) |
||
(37 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
<languages/> |
<languages/> |
||
{{Docnav |
|||
{{GuiCommand/ro|Name=Draft ShapeString|Name/ro=Draft ShapeString|Workbenches=[[Draft Module/ro|Draft]], [[Arch Module/ro|Arch]]|MenuLocation=Draft → Shape from text ...|Shortcut=S S}} |
|||
|[[Draft_Point|Point]] |
|||
|[[Draft_Facebinder|Facebinder]] |
|||
|[[Draft_Module|Draft]] |
|||
|IconL=Draft_Point.svg |
|||
|IconR=Draft_Facebinder.svg |
|||
|IconC=Workbench_Draft.svg |
|||
}} |
|||
<div class="mw-translate-fuzzy"> |
|||
{{GuiCommand/ro|Name=Draft ShapeString|Name/ro=Draft ShapeString|Workbenches=[[Draft Module/ro|Draft]], [[Arch Module/ro|Arch]]|MenuLocation=Draft → Shape from text ...|Shortcut=S S|SeeAlso=[[Draft Text/ro|Draft Text]], [[Part Extrude/ro|Part Extrude]]}} |
|||
</div> |
|||
==Descriere== |
==Descriere== |
||
<div class="mw-translate-fuzzy"> |
|||
Instrumentul ShapeString introduce o formă compusă reprezentând un șir de caractere(text) într-un punct dat în documentul curent. Pot fi definite atribute ca: Înălțimea textului, tipul fontul, etc. |
|||
Instrumentul ShapeString introduce o formă compusă care reprezintă un șir de caractere(text) într-un punct dat în documentul curent. Pot fi definite atribute ca: Înălțimea textului, tipul fontul, etc. |
|||
The resulting shape can be used with the [[Part Extrude/ro|Part Extrude]] tool to create 3D letters. |
|||
</div> |
|||
<div class="mw-translate-fuzzy"> |
|||
Cele [[Draft Text/ro|Draft Text]] instrumentul este o alternativă mai simplă, care nu produce o formă închisă. |
|||
</div> |
|||
[[Image:Draft_ShapeString_Example400.png]] |
|||
<div class="mw-translate-fuzzy"> |
|||
[[Image:Draft_ShapeString_Example400.png]] |
[[Image:Draft_ShapeString_Example400.png]] |
||
</div> |
|||
<div class="mw-translate-fuzzy"> |
|||
== Cum se folosește == |
== Cum se folosește == |
||
</div> |
|||
<div class="mw-translate-fuzzy"> |
|||
# Tpăsați butonul {{KEY|[[Image:Draft_ShapeString16.png]] [[Draft_ShapeString|Draft Shape from text ...]]}}, sau apăsați tastele {{KEY|S}} then {{KEY|S}} |
|||
# Apăsați butonul pulsatoriu {{KEY|[[Image:Draft_ShapeString16.png]] [[Draft_ShapeString|Draft Shape from text ...]]}}, sau apăsați tastele {{KEY|S}} then {{KEY|S}} |
|||
# Click un punct în vizualizarea 3D, sau tastați coordonatele [[Draft_Coordinates|coordinate]] |
|||
# Click pe un punct din vizualizarea 3D, sau tastați coordonatele [[Draft_Coordinates/ro|coordinate]] |
|||
# Introduceți textul dorit, apăsați {{KEY|ENTER}} |
|||
# Introduceți |
# Introduceți textul dorit, apoi apăsați {{KEY|ENTER}} |
||
# Introduceți |
# Introduceți înălțimea fontului, apoi apăsați {{KEY|ENTER}} |
||
# Introduceți spațierea fontului, apoi apăsați {{KEY|ENTER}} |
|||
# Apăsați {{KEY|ENTER}} pentru a accepta fișierul fontului afișat, sau, |
|||
# Apăsați {{KEY| |
# Apăsați {{KEY|ENTER}} pentru a accepta fișierul(tipul) fontului afișat, sau, |
||
# Apăsați butonul pulsatoriu cu trei puncte {{KEY|...}} pentru a selecta un nou/diferit tip de font. |
|||
</div> |
|||
[[Image:SSFontSelect.png]] |
|||
If your Draft interface mode is set to TaskView: |
|||
# Press the {{Button|[[Image:Draft_ShapeString.svg|16px]] [[Draft_ShapeString|Draft ShapeString]]}} button, or press {{KEY|S}} then {{KEY|S}} keys. |
|||
# A dialog will appear where you can specify your parameters. |
|||
# Press {{KEY|OK}} to create the ShapeString. |
|||
*The text, size, tracking, and font can be changed after creation, by modifying the values in the Property Editor. |
|||
*You will want to set the default font file in [[Draft Preferences|Draft Preferences]], in the {{Button|Texts and dimensions}} tab. This will prefill the font file box in the dialog. |
|||
*Supported fonts include TrueType (.ttf), OpenType (.otf), and Type 1 (.pfb). |
|||
<div class="mw-translate-fuzzy"> |
|||
==Limitations== |
|||
* Acest instrumente nu este disponibil pentru versiunile anterioarea lui FreeCAD 0.14 |
|||
* Sunt suportatea următoareal tipuri de fișiere pentru fonturi: TrueType(*.ttf), OpenType(*.otf) și Type1(*.pfb). |
|||
* Înălțimile foarte mici ale textului pot cauza distorsionarea glifelor de caractere din cauza pierderii detaliilor la scalare. |
|||
* Versiunea actuală este limitată la scrierile de la stânga la dreapta pe o linie de bază orizontală. |
|||
* Pentru a crea texte de formă curbă puteți utiliza macrocomanda [[File:FCCircularTextButtom.png|24px]][[Macro_Circular Text|Circular Text]] |
|||
</div> |
|||
== Opţiuni == |
== Opţiuni == |
||
<div class="mw-translate-fuzzy"> |
|||
* To enter coordinates manually, simply enter the numbers, then press {{KEY|ENTER}} between each X, Y and Z component. |
|||
* Pentru a introduce coordonatele manual, pur și simplu introduceți numerele, apoi apăsați {{KEY|ENTER}} între fiecare componenetă pe X, Y și Z. |
|||
* Pressing {{KEY|ESC}} will cancel the operation. |
|||
* Apăsați tasta {{KEY|ESC}}pentru a abandona operațiunea. |
|||
* You can set a default font file in Draft/Prefences. |
|||
* Puteți defini un fișier de font implicit în Draft/Prefences. |
|||
</div> |
|||
==Proprietăți== |
==Proprietăți== |
||
<div class="mw-translate-fuzzy"> |
|||
* {{PropertyData|Position}}: The base point of the compound shape |
|||
* {{PropertyData| |
* {{PropertyData/ro|Position}}: Punctul de bază a formei compuse |
||
* {{PropertyData| |
* {{PropertyData/ro|String}}: Conținutul șirului tip text |
||
* {{PropertyData| |
* {{PropertyData/ro|Size}}: Înălțimea literelor exprimată în unități FC |
||
* {{PropertyData| |
* {{PropertyData/ro|Tracking}}: Spațierea dintre caractere exprimată în unități FC |
||
* {{PropertyData/ro|Font File}}: Definirea fișierului fontului utilizat pentru a desena șirul de caractere |
|||
</div> |
|||
<div class="mw-translate-fuzzy"> |
|||
== Scripturi == |
== Scripturi == |
||
</div> |
|||
<div class="mw-translate-fuzzy"> |
|||
The ShapeString tool can by used in [[macros]] and from the python console by using the following function: |
|||
Instrumentul ShapeString poate fi utilizat în [[macros/ro|macros]] și de la consola Python folosind următoarele funcții: |
|||
</div> |
|||
{{Code|code= |
{{Code|code= |
||
makeShapeString(String,FontFile, |
ShapeString = makeShapeString(String, FontFile, Size=100, Tracking=0) |
||
}} |
}} |
||
* Turns a text string into a Compound Shape using a specified font. |
|||
<div class="mw-translate-fuzzy"> |
|||
Exempluː |
|||
* Transformați un șir tip text într-o Compound Shape utilizând fontul specificat. |
|||
* Creează o formă compusă <code> ShapeString </code> utilizând codul <code> String </code> specificat |
|||
+ |
|||
* <code> FontFile </code> este obligatorie și trebuie să fie calea completă a unui fișier de fonturi acceptat |
|||
+ |
|||
* <code> Size </code> este înălțimea textului rezultat în milimetri |
|||
+ |
|||
* <code> Tracking </code> este distanța inter-caracter suplimentară în milimetri |
|||
</div> |
|||
The placement of the ShapeString can be changed by overwriting its {{incode|Placement}} attribute, or by individually overwriting its {{incode|Placement.Base}} and {{incode|Placement.Rotation}} attributes. |
|||
Exempluː |
|||
{{Code|code= |
{{Code|code= |
||
import FreeCAD |
import FreeCAD as App |
||
import Draft |
|||
Draft.makeShapeString("This is a sample text", |
|||
"/usr/share/fonts/truetype/msttcorefonts/Arial.ttf", |
|||
200.0,10) |
|||
}} |
|||
==Selecting A Font== |
|||
[[Image:SSFontSelect.png]] |
|||
doc = App.newDocument() |
|||
ShapeString uses the internal geometry of a font to make FreeCAD shapes. To do this it must read the actual font file (*.tff, etc). If the Font Selection box is empty, you must type the full path to the font file or use {{KEY|...}} to select a font file. |
|||
==Limitations== |
|||
* This tool is not available in FreeCAD versions anterior to 0.14 |
|||
* TrueType(*.ttf), OpenType(*.otf) and Type1(*.pfb) font files are supported. |
|||
* Very small text heights may result in deformed character glyphs due to loss of detail in scaling. |
|||
* The current version is limited to left-to-right layouts on a horizontal baseline. |
|||
* For creating curved text you can use the macro [[File:FCCircularTextButtom.png|24px]][[Macro_Circular Text|Circular Text]] |
|||
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 = App.Vector(0, 0, 1) |
|||
p2 = App.Vector(-1000, 500, 0) |
|||
place2 = App.Placement(p2, App.Rotation(ZAxis, 45)) |
|||
S2.Placement = place2 |
|||
S3 = Draft.makeShapeString("Upside-down text", font3, 200, 10) |
|||
S3.Placement.Base = App.Vector(0, -1000, 0) |
|||
S3.Placement.Rotation = App.Rotation(ZAxis, 180) |
|||
doc.recompute() |
|||
}} |
|||
<div class="mw-translate-fuzzy"> |
|||
==Tutorials== |
==Tutorials== |
||
* [[Draft_ShapeString_tutorial|Draft ShapeString tutorial]] |
* [[Draft_ShapeString_tutorial/ro|Draft ShapeString tutorial]] |
||
</div> |
|||
* [[Draft_ShapeString_tutorial|Draft ShapeString tutorial]]: extrude a ShapeString, position it in 3D space, and create an engraving in another body. |
|||
* [https://forum.freecadweb.org/viewtopic.php?f=3&t=36623 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. |
|||
{{Docnav |
|||
|[[Draft_Point|Point]] |
|||
|[[Draft_Facebinder|Facebinder]] |
|||
|[[Draft_Module|Draft]] |
|||
|IconL=Draft_Point.svg |
|||
|IconR=Draft_Facebinder.svg |
|||
|IconC=Workbench_Draft.svg |
|||
}} |
|||
{{Draft Tools navi{{#translation:}}}} |
|||
{{Userdocnavi{{#translation:}}}} |
|||
{{clear}} |
Revision as of 14:47, 1 December 2020
Draft ShapeString |
poziția meniului |
---|
Draft → Shape from text ... |
Ateliere |
Draft, Arch |
scurtătură |
S S |
Prezentat în versiune |
- |
A se vedea, de asemenea, |
Draft Text, Part Extrude |
Descriere
Instrumentul ShapeString introduce o formă compusă care reprezintă un șir de caractere(text) într-un punct dat în documentul curent. Pot fi definite atribute ca: Înălțimea textului, tipul fontul, etc. The resulting shape can be used with the Part Extrude tool to create 3D letters.
Cele Draft Text instrumentul este o alternativă mai simplă, care nu produce o formă închisă.
Cum se folosește
- Apăsați butonul pulsatoriu Draft Shape from text ..., sau apăsați tastele S then S
- Click pe un punct din vizualizarea 3D, sau tastați coordonatele coordinate
- Introduceți textul dorit, apoi apăsați ENTER
- Introduceți înălțimea fontului, apoi apăsați ENTER
- Introduceți spațierea fontului, apoi apăsați ENTER
- Apăsați ENTER pentru a accepta fișierul(tipul) fontului afișat, sau,
- Apăsați butonul pulsatoriu cu trei puncte ... pentru a selecta un nou/diferit tip de font.
If your Draft interface mode is set to TaskView:
- Press the Draft ShapeString button, or press S then S keys.
- A dialog will appear where you can specify your parameters.
- Press OK to create the ShapeString.
- The text, size, tracking, and font can be changed after creation, by modifying the values in the Property Editor.
- You will want to set the default font file in Draft Preferences, in the Texts and dimensions tab. This will prefill the font file box in the dialog.
- Supported fonts include TrueType (.ttf), OpenType (.otf), and Type 1 (.pfb).
Limitations
- Acest instrumente nu este disponibil pentru versiunile anterioarea lui FreeCAD 0.14
- Sunt suportatea următoareal tipuri de fișiere pentru fonturi: TrueType(*.ttf), OpenType(*.otf) și Type1(*.pfb).
- Înălțimile foarte mici ale textului pot cauza distorsionarea glifelor de caractere din cauza pierderii detaliilor la scalare.
- Versiunea actuală este limitată la scrierile de la stânga la dreapta pe o linie de bază orizontală.
- Pentru a crea texte de formă curbă puteți utiliza macrocomanda Circular Text
Opţiuni
- Pentru a introduce coordonatele manual, pur și simplu introduceți numerele, apoi apăsați ENTER între fiecare componenetă pe X, Y și Z.
- Apăsați tasta ESCpentru a abandona operațiunea.
- Puteți defini un fișier de font implicit în Draft/Prefences.
Proprietăți
- DATEPosition: Punctul de bază a formei compuse
- DATEString: Conținutul șirului tip text
- DATESize: Înălțimea literelor exprimată în unități FC
- DATETracking: Spațierea dintre caractere exprimată în unități FC
- DATEFont File: Definirea fișierului fontului utilizat pentru a desena șirul de caractere
Scripturi
Instrumentul ShapeString poate fi utilizat în macros și de la consola Python folosind următoarele funcții:
ShapeString = makeShapeString(String, FontFile, Size=100, Tracking=0)
- Transformați un șir tip text într-o Compound Shape utilizând fontul specificat.
- Creează o formă compusă
ShapeString
utilizând codulString
specificat
+
FontFile
este obligatorie și trebuie să fie calea completă a unui fișier de fonturi acceptat
+
Size
este înălțimea textului rezultat în milimetri
+
Tracking
este distanța inter-caracter suplimentară în milimetri
The placement of the ShapeString can be changed by overwriting its Placement
attribute, or by individually overwriting its Placement.Base
and Placement.Rotation
attributes.
Exempluː
import FreeCAD as App
import Draft
doc = App.newDocument()
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 = App.Vector(0, 0, 1)
p2 = App.Vector(-1000, 500, 0)
place2 = App.Placement(p2, App.Rotation(ZAxis, 45))
S2.Placement = place2
S3 = Draft.makeShapeString("Upside-down text", font3, 200, 10)
S3.Placement.Base = App.Vector(0, -1000, 0)
S3.Placement.Rotation = App.Rotation(ZAxis, 180)
doc.recompute()
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.
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