7.11.8. [ELEMENT_text] Text

With "Text" you can place a text into the drawing. This also possibly makes sense in combination with a table, but also for the title of "Normal projection" or for ratio information, etc.

Text

Text

The "Text" element is declared in the dw file with "ELEMENT_" followed by a unique name for the element.

Example:

[ELEMENT_text1]

The display in the Edit element dialog box is greyed out under Name.

The following attributes are available:

  • type = text (text )

    Declares element type and is mandatory.

  • parent (Parent )

    Texts are placed in a frame, a box or a grid, for example. In the Edit element [Edit element] dialog, select one of the options offered in the list box.

  • text (Text [Text] )

    The text is specified here.

    Variables (e.g. $NT.) are allowed.

    For a scale specification, use the variable $2D_RATIO..

    [Note]Note

    $2D_RATIO. automatically reads out the current scale.

  • text_size (text size [Text size] )

    Indicates text size. Minimum font size is '1'.

  • width_factor (Text width factor [Text width factor] )

    Indicates stretch factor of width for text. Minimum possible value is '0.5'.

  • translateable [Translatable]

    Indicates, whether the text indicated under "text", should be translated.

    For this there has to be a *.def file (default is dwtext.def), where translation for texts have to be entered. On this also compareSection 7.11.12, “ Translations.

    The def file must be entered in the frame element. Compare Section 7.11.10, “[ELEMENT_frame] Combine more elements in frame ”.

    Information on the use of feature algorithms [Attribute algorithms] can be found at Section 7.8.12.7, “ Translation functions”.

  • text_align (alignment [Alignment] )

    Value range: left (alternatively no specification) | center | right

  • sizeable (changeable size [Resizable] )

    Specifies whether the size/position of the text element can be changed in edit mode [Edit mode].

    Possible values are "true" or "false".

    When activated, the red frame gets a square drag point.

  • rotation [Rotation]

    Value range: horizontal | vertical

    [Note]Note

    When using "vertical", positions have to be adjusted accordingly.

The following attributes MUST be assigned:

  • position_x (X ): Specifies the x-coordinate of the top left point of the text box.

  • position_y (Y ): Specifies the y-coordinate of the top left point of the text box.

  • position_w (width [Width] ): Specifies the width of the box.

  • position_h (height [Height] ): Specifies the height of the box.

Example:

[ELEMENT_text1]
type=text 
parent=frame 
position_x=200.00 
position_y=200.30 
position_w=60.00
position_h=15.00
text=Normtext: $NT. 
text_size=5.00
width_factor=0.50
translatable=false
text_align=left
sizeable=true
rotation=horizontal
translateable=false