Draft: Etichetă
Draft Label |
poziția meniului |
---|
Draft → Label |
Ateliere |
Draft, Arch |
scurtătură |
D L |
Prezentat în versiune |
- |
A se vedea, de asemenea, |
nici unul |
Descriere
Acest instrument introduce o etichetă, care este o fragment de text cu o linie de 2 segmente și o săgeată, în documentul activ. Dacă se selectează un obiect sau un sub-element (față, muchie sau vârf) la pornirea comenzii, eticheta poate fi făcută să afișeze automat un anumit atribut al elementului selectat.
If an object or a sub-element (face, edge or vertex) is selected when starting the command, the text can be made to display one or two attributes of the selected element, including position, length, area, volume and material. The text will then be linked to the attributes and will update if their values change.
To insert a text element without an arrow use the Draft Text command instead.
How to use
See also: Draft Tray, Draft Snap and Draft Constrain.
- Opțional, selectați un obiect sau un subelement al unui obiect (Vertex, margine sau fațetă)
- Apăsați butonul Etichetă de proiectare sau apăsați D apoi tastele L
- Faceți clic pe un prim punct al vizualizării 3D sau introduceți un coordinate pentru a indica punctul țintă (poziția săgeții). Acest lucru poate fi oriunde, nu trebuie să fie exact pe elementul selectat
- Faceți clic pe un al doilea punct din vizualizarea 3D sau tastați un coordinate pentru a indica punctul intermediar care reprezintă începutul segmentului drept.
- Faceți clic pe un al treilea punct din vizualizarea 3D sau tastați un coordinate pentru a indica poziția textului.
Opţiuni
The single character keyboard shortcuts available in the task panel can be changed. See Draft Preferences. The shortcuts mentioned here are the default shortcuts.
- Apăsând pe CTRL, snap punctul dvs. de locații disponibile snap.
- Pentru a introduce manual coordonatele, pur și simplu introduceți numerele, apoi apăsați ENTER între fiecare componentă X, Y și Z.
- Apăsând ESC se va anula operația.
- Direcția segmentului drept (dreapta sau stânga) va justifica automat textul stânga sau dreapta.
Tipuri de etichete
The following label types are available:
- Custom: Afișează conținutul proprietății text personalizat
- Name: Afișează numele obiectului țintă
- Label: Afișează eticheta obiectului țintă
- Poziția: Afișează coordonatele obiectului țintă (punctul de bază al amplasamentului) sau coordonatele vârfului țintă, dacă este cazul, sau coordonatele centrului subelementului țintă (centrul de masă)
- Length: Afișează lungimea subelementului țintă, dacă este posibil
- Area: Arată suprafața subelementului țintă, dacă este posibil
- Volume: Afișează volumul obiectului țintă, dacă este posibil
- Tag: Afișează valoarea etichetei obiectului țintă, dacă obiectul țintă are o astfel de proprietate (ceea ce este cazul tuturor obiectelor Arch)
- Material: Afișează eticheta materialului obiectului țintă, dacă obiectul țintă are o astfel de proprietate
Notes
- The direction of the second segment of the leader determines the alignment of the text. If the segment is horizontal and pointing to the right the text is aligned to the left and vice versa. If the second segment goes vertically up, the text is aligned to the left. If it goes vertically down, the text is aligned to the right.
- Draft Labels created or saved with FreeCAD version 0.21 are not backward compatible.
Proprietăți
See also: Property editor.
A Draft Label object is derived from an App FeaturePython object and inherits all its properties. The following properties are additional unless otherwise stated:
Data
Label
- Date Tip de etichetă: tipul de informații afișate de această etichetă (vedeți mai jos)
- Date Text personalizat: Textul care se afișează când tipul de etichetă este setat la personalizat
- Date Placement: Indică rotația și poziția textului
- Date Straight Distance: Lungimea segmentului drept
- Date Direcție dreaptă: Direcția segmentului drept Orizontală sau verticală
- Date Target Point: Punctul indicat de această etichetă
- Vizualizare Text Size: Dimensiunea textului
- Vizualizare Text Font: fontul folosit pentru text
- Vizualizare Text Alignment: Alinierea verticală a textului: Sus, mijlocul sau partea de jos
- Vizualizare Text Color: Culoarea textului
- Vizualizare Lățime linie: Lățimea liniei
- Vizualizare Line Color: culoarea liniei
- Vizualizare Arrow Type: Tipul săgeții: Dot, cerc, săgeată sau bifați.
- Vizualizare Dimensiunea săgeții: mărimea săgeții
- Vizualizare Frame: Desenează un cadru în jurul textului
Leader
- DatePoints (
VectorList
): specifies the points of the leader. - DateStraight Direction (
Enumeration
): specifies the direction of the first leader segment:Custom
,Horizontal
orVertical
. - DateStraight Distance (
Distance
): specifies the length of the first leader segment. Only used if DateStraight Direction isHorizontal
orVertical
. If the distance is positive, the leader starts from the right side of the text and the text aligns to the right. Otherwise the leader starts from the left side of the text and the text aligns to the left.
Target
- DateTarget (
LinkSub
): specifies the object and optional subelement the label is linked to. - DateTarget Point (
Vector
): specifies the position of the tip of the leader, which is where the arrow is attached.
View
Annotation
- VizualizareAnnotation Style (
Enumeration
): specifies the annotation style applied to the label. See Draft AnnotationStyleEditor. - VizualizareScale Multiplier (
Float
): specifies the general scaling factor applied to the label.
Display Options
- VizualizareDisplay Mode (
Enumeration
): specifies how the text is displayed. If it isWorld
the text will be displayed on a plane defined by the DatePlacement of the label. If it isScreen
the text will always face the screen. This is an inherited property. The mentioned options are the renamed options (introduced in version 0.21).
Graphics
- VizualizareArrow Size (
Length
): specifies the size of the symbol displayed at the tip of the leader. - VizualizareArrow Type (
Enumeration
): specifies the type of symbol displayed at the tip of the leader, which can beDot
,Circle
,Arrow
,Tick
orTick-2
. - VizualizareFrame (
Enumeration
): specifies what type of frame is drawn around the text. The current options areNone
orRectangle
. - VizualizareLine (
Bool
): specifies whether to display the leader line. If it isfalse
only the arrow and the text are displayed. - VizualizareLine Color (
Color
): specifies the color of the leader and the arrow. This is also used for the frame (introduced in version 0.20). - VizualizareLine Width (
Float
): specifies the width of the leader. This is also used for the frame (introduced in version 0.20).
Text
- VizualizareFont Name (
Font
): specifies the font used to draw the text. It can be a font name, such asArial
, a default style such assans
,serif
ormono
, a family such asArial,Helvetica,sans
, or a name with a style such asArial:Bold
. If the given font is not found on the system, a default font is used instead. introduced in version 0.21 - VizualizareFont Size (
Length
): specifies the size of the letters. The text can be invisible in the 3D view if this value is very small. introduced in version 0.21 - VizualizareJustification (
Enumeration
): specifies the horizontal alignment of the text:Left
,Center
orRight
. Only used if DateStraight Direction isCustom
. Otherwise the horizontal alignment is based on the sign (positive or negative) of DateStraight Distance. - VizualizareLine Spacing (
Float
): specifies the factor applied to the default line height of the text. - VizualizareMax Chars (
Integer
): specifies the maximum number of characters on each line of the text. - VizualizareText Alignment (
Enumeration
): specifies the vertical alignment of the text:Top
,Middle
orBottom
. - VizualizareText Color (
Color
): specifies the color of the text.
Scripting
Script-Programare
Instrumentul Text poate fi utilizat în macros și din consola python utilizând următoarea funcție:
To create a Draft Label use the make_label
method (introduced in version 0.19) of the Draft module. This method replaces the deprecated makeLabel
method.
label = make_label(target_point=App.Vector(0, 0, 0),
placement=App.Vector(30, 30, 0),
target_object=None, subelements=None,
label_type="Custom", custom_text="Label",
direction="Horizontal", distance=-10,
points=None)
Exempluː
import FreeCAD as App
import Draft
doc = App.newDocument()
rectangle = Draft.make_rectangle(4000, 1000)
doc.recompute()
p1 = App.Vector(-200, 1000, 0)
place1 = App.Placement(App.Vector(-1000, 1300, 0), App.Rotation())
label1 = Draft.make_label(p1, place1, target_object=rectangle, distance=500, label_type="Label")
label1.ViewObject.TextSize = 200
p2 = App.Vector(-200, 0, 0)
place2 = App.Placement(App.Vector(-1000, -300, 0), App.Rotation())
label2 = Draft.make_label(p2, place2, target_object=rectangle, distance=500, label_type="Custom",
custom_text="Beware of the sharp edges")
label2.ViewObject.TextSize = 200
p3 = App.Vector(1000, 1200, 0)
place3 = App.Placement(App.Vector(2000, 1800, 0), App.Rotation())
label3 = Draft.make_label(p3, place3, target_object=rectangle, distance=-500, label_type="Area")
label3.ViewObject.TextSize = 200
doc.recompute()
- 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, 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