Draft ShapeString/tr: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(Updating to match new version of source page)
Line 1: Line 1:
<languages/>
<languages/>

{{Docnav
{{Docnav
|[[Draft_Point|Point]]
|[[Draft_Facebinder|Facebinder]]
|[[Draft_Facebinder|Facebinder]]
|[[Draft_Text|Text]]
|[[Draft_Module|Draft]]
|[[Draft_Module|Draft]]
|IconL=Draft_Point.svg
|IconL=Draft_Facebinder.svg
|IconR=Draft_Facebinder.svg
|IconR=Draft_Text.svg
|IconC=Workbench_Draft.svg
|IconC=Workbench_Draft.svg
}}
}}
Line 33: Line 34:


[[Image:Draft_ShapeString_Example400.png]]
[[Image:Draft_ShapeString_Example400.png]]
<div class="mw-translate-fuzzy">


{{Caption | Şekil dizesini konumlandırmak için tek nokta gerekli}}
{{Caption | Şekil dizesini konumlandırmak için tek nokta gerekli}}
</div>


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
== Nasıl Kullanılır ==
== Nasıl Kullanılır ==
</div>
</div>

# There are several ways to invoke the command:
#* Press the {{Button|[[Image:Draft_ShapeString.svg|16px]] [[Draft_ShapeString|Draft ShapeString]]}} button.
#* Select the {{MenuCommand|Drafting → [[Image:Draft_ShapeString.svg|16px]] Shape from text}} option from the menu.
#* Use the keyboard shortcut: {{KEY|S}} then {{KEY|S}}.
# The {{MenuCommand|ShapeString}} task panel opens.
# Click a point in the [[3D_view|3D view]], or type [[Draft_Coordinates|coordinates]].
# Optionally press the {{Button|Reset Point}} button to reset the point to the origin.
# Enter a {{MenuCommand|String}}.
# Specify the {{MenuCommand|Height}}.
# To select a font do one of the following:
#* Enter a file path in the {{MenuCommand|Font file}} input box.
#* Press the {{Button|...}} button and select a file.
# Press the {{Button|OK}} button to finish the command.

== Seçenekler ==


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
* Koordinatları manuel olarak girmek için sayıları girin, ardından her bir X, Y ve Z bileşeni arasında {{KEY | Enter}} tuşuna basın. Noktayı eklemek istediğiniz değerlere sahipseniz {{Button | [[Image: Draft_AddPoint.svg | 16px]] [[Draft_AddPoint/tr | Nokta ekle]]}} düğmesine basabilirsiniz.
# {{Button | [[Image: Draft_ShapeString16.png]] [[Draft_ShapeString/tr |Taslak Şekil dizesi]]}} düğmesine basın veya {{KEY | S}} ardından {{KEY | S}} tuşlarına basın.
* Geçerli komutu iptal etmek için {{KEY | Esc}} veya {{Button | Close}} düğmesine basınız.
# 3D görünümünde bir noktaya tıklayın veya bir [[Draft_Coordinates/tr | koordinat]] yazın ve {{Button | [[Image: Draft_AddPoint.svg | 16px]] [[Draft_AddPoint/tr | Nokta ekle]]}} düğmesine basın.
# İstediğiniz metni giriniz ve {{KEY | Enter}} tuşuna basınız.
# İstediğiniz bedeni giriniz ve {{KEY | Enter}} tuşuna basınız.
# İstediğiniz izlemeyi giriniz ve {{KEY | Enter}} tuşuna basınız.
# Görüntülenen yazı tipi dosyasını kabul etmek için {{KEY | Enter}} tuşuna veya bir yazı tipi dosyası seçmek için {{Button | ...}} tuşuna basın.
</div>
</div>
[[Image:SSFontSelect.png]]


==Preferences==
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 default font file can be changed in the preferences: {{MenuCommand|Edit → Preferences... → Draft → Texts and dimensions → Default ShapeString font file}}. See [[Draft_Preferences|Draft Preferences]].


==Notes==
<div class="mw-translate-fuzzy">
Metin, boyut, izleme ve yazı tipi, oluşturulduktan sonra, şekil özellikleri değiştirilebilir.
</div>


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
Line 67: Line 77:
</div>
</div>


<div class="mw-translate-fuzzy">
== Seçenekler ==
== Kılavuzlar ==
* [[Draft_ShapeString_tutorial/tr|Taslak Şekil dizesi kılavuzu]]: Bir Şekil dizesi'i çıkarın, 3D alanda yerleştirin ve başka bir gövdede bir gravür oluşturun.
</div>


* [[Draft_ShapeString_tutorial|Draft ShapeString tutorial]]: extrude a ShapeString, position it in 3D space, and create an engraving in another body.
* Koordinatları manuel olarak girmek için sayıları girin, ardından her bir X, Y ve Z bileşeni arasında {{KEY | Enter}} tuşuna basın. Noktayı eklemek istediğiniz değerlere sahipseniz {{Button | [[Image: Draft_AddPoint.svg | 16px]] [[Draft_AddPoint/tr | Nokta ekle]]}} düğmesine basabilirsiniz.
* [https://forum.freecadweb.org/viewtopic.php?f=3&t=36623 How to use ShapeStrings in PartDesign]
* Geçerli komutu iptal etmek için {{KEY | Esc}} veya {{Button | Close}} düğmesine basınız.


== Özellikler ==
== Özellikler ==

See also: [[property_editor|Property editor]].

A Draft ShapeString object is derived from a [[Part_Part2DObject|Part Part2DObject]] and inherits all its properties. It also has the following additional properties:

===Data===

{{TitleProperty|Draft}}


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
Line 83: Line 104:
* {{PropertyData | Font File}}: dizeyi çizmek için kullanılan font dosyasının tam yolunu belirtir.
* {{PropertyData | Font File}}: dizeyi çizmek için kullanılan font dosyasının tam yolunu belirtir.
</div>
</div>

===View===

{{TitleProperty|Draft}}

* {{PropertyView|Pattern|Enumeration}}: specifies the [[Draft_Pattern|Draft Pattern]] with which to fill the faces of the text. This property only works if {{PropertyView|Display Mode}} is {{value|Flat Lines}}.
* {{PropertyView|Pattern Size|Float}}: specifies the size of the [[Draft_Pattern|Draft Pattern]].

==Scripting==


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
Line 92: Line 122:
Şekil dizesi aracı, aşağıdaki işlevi kullanarak [[macros/tr|makrolar]] ve [[Python/tr|Python]] konsolundan kullanılabilir:
Şekil dizesi aracı, aşağıdaki işlevi kullanarak [[macros/tr|makrolar]] ve [[Python/tr|Python]] konsolundan kullanılabilir:
</div>
</div>

{{Code|code=
{{Code|code=
ShapeString = makeShapeString(String, FontFile, Size=100, Tracking=0)
shapestring = make_shapestring(String, FontFile, Size=100, Tracking=0)
}}
}}


<div class="mw-translate-fuzzy">
* Belirtilen {{incode | String}} ve desteklenen bir {{incode | FontFile}} tam yolunu kullanarak bir {{incode | ShapeString}} bileşik şekli oluşturur.
* Belirtilen {{incode | String}} ve desteklenen bir {{incode | FontFile}} tam yolunu kullanarak bir {{incode | ShapeString}} bileşik şekli oluşturur.
* {{incode | Size}} sonuçta elde edilen metnin milimetre cinsinden yüksekliğidir.
* {{incode | Size}} sonuçta elde edilen metnin milimetre cinsinden yüksekliğidir.
* {{incode | Tracking}} milimetre cinsinden karakterler arası ek boşluktır.
* {{incode | Tracking}} milimetre cinsinden karakterler arası ek boşluktır.
</div>


Şekil dizesi'in yerleşimi, {{incode | Placement}} özniteliğinin üzerine yazarak veya {{incode | Placement.Base}} ve {{incode | Placement.Rotation}} özniteliklerinin üzerine yazılarak değiştirilebilir.
Şekil dizesi'in yerleşimi, {{incode | Placement}} özniteliğinin üzerine yazarak veya {{incode | Placement.Base}} ve {{incode | Placement.Rotation}} özniteliklerinin üzerine yazılarak değiştirilebilir.


Örnek:
Örnek:

{{Code|code=
{{Code|code=
import FreeCAD as App
import FreeCAD as App
Line 113: Line 147:
font3 = "/usr/share/fonts/truetype/freefont/FreeSerifItalic.ttf"
font3 = "/usr/share/fonts/truetype/freefont/FreeSerifItalic.ttf"


S1 = Draft.makeShapeString("This is a sample text", font1, 200)
S1 = Draft.make_shapestring("This is a sample text", font1, 200)


S2 = Draft.makeShapeString("Inclined text", font2, 200, 10)
S2 = Draft.make_shapestring("Inclined text", font2, 200, 10)


ZAxis = App.Vector(0, 0, 1)
zaxis = App.Vector(0, 0, 1)
p2 = App.Vector(-1000, 500, 0)
p2 = App.Vector(-1000, 500, 0)
place2 = App.Placement(p2, App.Rotation(ZAxis, 45))
place2 = App.Placement(p2, App.Rotation(zaxis, 45))
S2.Placement = place2
S2.Placement = place2


S3 = Draft.makeShapeString("Upside-down text", font3, 200, 10)
S3 = Draft.make_shapestring("Upside-down text", font3, 200, 10)
S3.Placement.Base = App.Vector(0, -1000, 0)
S3.Placement.Base = App.Vector(0, -1000, 0)
S3.Placement.Rotation = App.Rotation(ZAxis, 180)
S3.Placement.Rotation = App.Rotation(zaxis, 180)


doc.recompute()
doc.recompute()
}}
}}


<div class="mw-translate-fuzzy">
== Kılavuzlar ==
* [[Draft_ShapeString_tutorial/tr|Taslak Şekil dizesi kılavuzu]]: Bir Şekil dizesi'i çıkarın, 3D alanda yerleştirin ve başka bir gövdede bir gravür oluşturun.
</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.


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
Line 148: Line 171:
{{Draft Tools navi{{#translation:}}}}
{{Draft Tools navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{clear}}

Revision as of 11:22, 4 May 2021

Şekil dizesi

Menü konumu
Taslak → Şekil dizesi
Tezgahlar
Taslak, Yapı
Varsayılan kısayol
S S
Versiyonda tanıtıldı
0.14
Ayrıca bkz
Metin, Parça çıkarma,
Macro Fonts Win10 PYMP

Tanım

Şekil dizesi aracı, bir metin dizesini temsil eden bir bileşik şekil ekler. Metin yüksekliği, ara boşluk ve yazı tipi belirtilebilir. Ortaya çıkan şekil, 3D harfler oluşturmak için Parça çıkarma aracıyla kullanılabilir.

Kapalı bir şekil olmadan daha basit bir metin elemanı eklemek için Taslak Metin kullanın. Bir yönlendirici ve bir ok içeren bir metin etiketi oluşturmak için Taslak Etiket kullanın.

Şekil dizesini konumlandırmak için tek nokta gerekli

Nasıl Kullanılır

  1. There are several ways to invoke the command:
    • Press the Draft ShapeString button.
    • Select the Drafting → Shape from text option from the menu.
    • Use the keyboard shortcut: S then S.
  2. The ShapeString task panel opens.
  3. Click a point in the 3D view, or type coordinates.
  4. Optionally press the Reset Point button to reset the point to the origin.
  5. Enter a String.
  6. Specify the Height.
  7. To select a font do one of the following:
    • Enter a file path in the Font file input box.
    • Press the ... button and select a file.
  8. Press the OK button to finish the command.

Seçenekler

  • Koordinatları manuel olarak girmek için sayıları girin, ardından her bir X, Y ve Z bileşeni arasında Enter tuşuna basın. Noktayı eklemek istediğiniz değerlere sahipseniz Nokta ekle düğmesine basabilirsiniz.
  • Geçerli komutu iptal etmek için Esc veya Close düğmesine basınız.

Preferences

  • The default font file can be changed in the preferences: Edit → Preferences... → Draft → Texts and dimensions → Default ShapeString font file. See Draft Preferences.

Notes

Sınırlamalar

  • Çok küçük metin yükseklikleri, ölçeklemede ayrıntı kaybı nedeniyle deforme karakter şekillerine neden olabilir.
  • Mevcut sürüm, soldan sağa yazma ile sınırlıdır.
  • Dairesel biçimde düzenlenmiş metin oluşturmak için Dairesel Metin makrosunu kullanın.

Kılavuzlar

Özellikler

See also: Property editor.

A Draft ShapeString object is derived from a Part Part2DObject and inherits all its properties. It also has the following additional properties:

Data

Draft

  • Veri Position: bileşik şeklin taban noktasının konumunu belirtir.
  • Veri Angle: şeklin taban çizgisinin dönüşünü belirtir.
  • Veri Axis: döndürme için kullanılacak ekseni belirtir.
  • Veri String: görüntülenecek metin dizesini belirtir; Taslak Metin aracından farklı olarak, Taslak Şekil dizesi yalnızca tek bir satır görüntüleyebilir.
  • Veri Size: harflerin genel yüksekliğini belirtir.
  • Veri Tracking: dizedeki karakterler arası ek boşluğu belirtir.
  • Veri Font File: dizeyi çizmek için kullanılan font dosyasının tam yolunu belirtir.

View

Draft

  • GörünümPattern (Enumeration): specifies the Draft Pattern with which to fill the faces of the text. This property only works if GörünümDisplay Mode is Flat Lines.
  • GörünümPattern Size (Float): specifies the size of the Draft Pattern.

Scripting

Betik

Ayrıca bkz.: Taslak API ve FreeCAD Betik esasları.

Şekil dizesi aracı, aşağıdaki işlevi kullanarak makrolar ve Python konsolundan kullanılabilir:

shapestring = make_shapestring(String, FontFile, Size=100, Tracking=0)
  • Belirtilen String ve desteklenen bir FontFile tam yolunu kullanarak bir ShapeString bileşik şekli oluşturur.
  • Size sonuçta elde edilen metnin milimetre cinsinden yüksekliğidir.
  • Tracking milimetre cinsinden karakterler arası ek boşluktır.

Şekil dizesi'in yerleşimi, Placement özniteliğinin üzerine yazarak veya Placement.Base ve Placement.Rotation özniteliklerinin üzerine yazılarak değiştirilebilir.

Örnek:

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.make_shapestring("This is a sample text", font1, 200)

S2 = Draft.make_shapestring("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.make_shapestring("Upside-down text", font3, 200, 10)
S3.Placement.Base = App.Vector(0, -1000, 0)
S3.Placement.Rotation = App.Rotation(zaxis, 180)

doc.recompute()