powered by CADENAS

Manual

Manual

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

Example:

[ELEMENT_table1]

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

The following attributes are available:

(Key name in dw file in boldface, display name in the dialog box Edit element 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)

    Indicates width of box.

  • position_h (Height)

    Indicates height of box.

  • tablename (Table type)

    • BOM: Default

    • SCRIPT: Only CADENAS internal use

  • text_size (Text size)

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

  • width_factor (Text width factor)

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

  • sizeable (Resizable)

    Determines whether size and position of table are adjustable in Edit mode.

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

  • Specification of columns

    • columns (Columns)

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

      $VAR1.=columnwidth , $VAR2.=columnwidth , $VAR3.=columnwidth

      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., for example, can be used.

      • $STKPOS. - Position number

        Details on creation of position numbers can be found under Section 5.10.6, “ PART-ANNOTATION ”.

      • $STKANZ. - Amount

      • $2D_AMOUNT. - Amount

      • $LINA. - BOM name

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

      • $2D_NR. - Number

    • columnames (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 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 Head Alignment)

    Value range: top (alternatively no specification) | bottom

  • text_padding_x (Padding X)

    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.