7.11.9. [ELEMENT_table] Table

Places a table element into sketch view.

Example: 4 views, frame, text, table

Example: 4 views, frame, text, table

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

Example:

[ELEMENT_table1]

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

The following attributes are available:

(Key name in dw file in bold, display name in the Edit element dialog box in brackets)

  • type=table (type )

    Declares element type and is mandatory.

  • parent (mandatory) ( Parent )

  • position_x (X )

    Indicates x coordinate.

  • position_y (Y )

    Indicates y coordinate.

  • position_w (width [Width] )

    Specifies the width of the box.

  • position_h (height [Height] )

    Specifies the height of the box.

  • tablename (table type [Table type] )

    • BOM: Default

    • SCRIPT: Only CADENAS internal use

  • text_size (text size [Text size] )

    Concerns the text in the table cells. Compare Section 7.11.8, “[ELEMENT_text] Text ”.

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

    Concerns the text in the table cells. Compare Section 7.11.8, “[ELEMENT_text] Text ”.

  • sizeable (changeable size [Resizable] )

    Specifies whether the size and position of the table can be changed in edit mode [Edit mode].

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

  • Declaration of the columns

    • columns [Columns]

      The value of the key "column" is to be given as follows:

      $VAR1.=Spaltenbreite , $VAR2.=Spaltenbreite , $VAR3.=Spaltenbreite

      The indication of the column width occurs in ratio. The percent symbol is not to be given.

      All table variables and standard variables such as $LINA. can be used.

      • $STKPOS. - Position number

        Detailed explanations on creating item numbers can be found under Section 7.16.6, “ PART-ANNOTATION ”.

      • $STKANZ. - Amount

      • $2D_AMOUNT. - Amount

      • $LINA. - BOM name

      • Article number from table (e.g. $TNR.)

      • $2D_NR. - Number

    • columnames (column names [Column names] )

      Declaration of column names

      List all column names separated by a comma.

    Example:

    columns=$STKPOS.=10,$2D_NR.=10,$LINA.=30,$2D_AMOUNT.=10
    
    columnames=Pos,Nummer,LINA,Anzahl

    Example: Excerpt of the BOM table from a combination view

    Example: Excerpt of the BOM table from a combination view

  • align (table alignment [Table orientation] )

    Value range: top (alternatively no entry) | bottom

    The specifications are important if the space indicated under "position_w" and "position_h" is larger than needed.

  • header_align (table header alignment [Table Head Alignment] )

    Value range: top (alternatively no specification) | bottom

  • text_padding_x (Text padding X [Padding X] )

    text_padding_y (Text padding Y [Padding Y] )

Example:

[ELEMENT_table1]
type=table
parent=frame
position_x=55.80
position_y=69.53
position_w=145.92
position_h=104.97
tablename=BOM
text_size=1.00
width_factor=0.50
sizeable=true
align=bottom
header_align=bottom
text_padding_x=2.00
text_padding_y=2.00
columns=$STKPOS.=5,$STKANZ.=5,$LINA.=60,$STKZCHN.=30
columnames=Pos.,Anz.,Bezeichnung,Zeich / Artikel Nr.