Draft Text/sv

Beskrivning
Detta verktyg ber användaren om en placeringspunkt, sedan kan text matas in i en textlåda.

To create a text element with an arrow use the Draft Label command instead.



Usage
See also: Draft Tray and Draft Snap.

Bruk

 * Markera punkter i ett tomt område i 3d vyn, eller på ett existerande objekt.
 * Nedtryckning av kommer att snäppa din punkt till tillgängliga snäpp-punkter.
 * Skriv in siffror för att manuellt mata in en koordinat.
 * Om du trycker på så avbryts funktionen.
 * När du redigerar texten, så kommer en nedtryckning av eller  tillåta dig redigera en ne textrad.
 * Nedtryckning av tillåter dig att redigera föregående textrad.
 * Nedtryckning av tå gånger (d.v.s. lämna den sista raden tom) adderar texten till dokumentet och stänger redigeraren.

Options
The single character keyboard shortcuts available in the task panel can be changed. See Draft Preferences. The shortcuts mentioned here are the default shortcuts.


 * To manually enter coordinates enter the X, Y and Z component, and press after each. Or you can press the  button when you have the desired values. It is advisable to move the pointer out of the 3D view before entering coordinates.
 * Press or click the  checkbox to toggle global mode. If global mode is on, coordinates are relative to the global coordinate system, else they are relative to the working plane coordinate system.
 * Press or click the  checkbox to toggle continue mode. If continue mode is on, the command will restart after finishing, allowing you to continue creating texts. The shortcut does  not work in the second task panel. This option is not available in the first task panel in FreeCAD version 0.19 and earlier.
 * Press to switch Draft snapping on or off.
 * Press or the  button to abort the command.

Properties
See also: Property editor.

A Draft Text object is derived from an App FeaturePython object and inherits all its properties. The following properties are additional unless otherwise stated.

Data

 * : specifies the position of the text in the 3D view. See Placement.
 * : specifies the contents of the text. Each item in the list represents a new text line.

View

 * : specifies the annotation style applied to the text. See Draft AnnotationStyleEditor.
 * : specifies the general scaling factor applied to the text.


 * : specifies how the text is displayed. If it is the text will be displayed in a plane defined by its . If it is  the text will always face the camera. This is an inherited property.


 * : not used.
 * : not used.


 * : specifies the font used to draw the text. It can be a font name, such as, a default style such as , or , a family such as , or a name with a style such as . If the given font is not found on the system, a default font is used instead.
 * : specifies the size of the letters. The text can be invisible in the 3D view if this value is very small.
 * : specifies if the alignment of the text:, or.
 * : specifies the factor applied to the default line height of the text.
 * : specifies the color of the text.

Scripting
See also: Autogenerated API documentation and FreeCAD Scripting Basics.

To create a Draft Text use the method  of the Draft module. This method replaces the deprecated method.


 * Creates a object, at, which can be a , but also a  or a.
 * is a string or a list of strings. If it is a list, each element is displayed on its own line.
 * If is, the text always faces the camera, otherwise it is displayed in a plane defined by its.

The view properties of can be changed by overwriting its attributes; for example, overwrite  with the new size in millimeters.

Example: