powered by CADENAS

Manual

Manual

5.11.3.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 specified in the dw file with "ELEMENT_" followed by a unique identification for the element.

Example:

[ELEMENT_text1]

The display in the dialog box Edit element is grayed out (inactive) under Name.

The following attributes are available:

  • type = text (text)

    Declares element type and is mandatory.

  • parent (Parent)

    For example, texts are placed in a frame element, a box or a grid. In the Edit element dialog, in the list field, select one of the shown options.

  • text (Text)

    The text is indicated here.

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

    For a ratio information, use the variable $2D_RATIO..

    [Note] Note

    $2D_RATIO. automatically reads the current ratio.

  • text_size (Text size)

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

  • 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 5.11.3.12, “ Translations ”.

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

    Information on the use of Attribute algorithms is found under Section 7.8.11.2, “ Translation functions”.

  • text_align (Alignment)

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

  • sizeable (Resizable)

    Indicates whether size/position of text element may be changed in 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): Indicates x coordinates of left top point of text box.

  • position_y (Y): Indicates y coordinates of left top point of text box.

  • position_w (Width): Indicates width of box.

  • position_h (Height): Indicates height of 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