7.11.5. [ELEMENT_grid] to place several derivations

The "Grid" element defines a grid in which several standard derivations can be arranged.

Grid with 2 rows and 2 columns filled with 3 standard derivations

Grid with 2 rows and 2 columns filled with 3 standard derivations

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

Example:

[ELEMENT_grid1]

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

Basic attributes

  • Type declaration

    • type = grid (type )

      Declares element type and is mandatory.

  • Grid layout

    • columns [Columns]

      Defines the number of columns in the grid. In the image above, 2 columns.

    • rows (lines [Rows] )

      Defines the number of rows in the grid. In the image above, 2 rows.

  • Cell spacing:

    • padding_y (border Y [Padding Y] )

      Defines the space between the individual derivations in the y plane (see red marking in above image)

    • padding_x (border X [Padding X] )

      Defines the space between the individual derivations in the x plane (see red marking in above image)

    • padding_unit (pad [Padding Unit] ding unit)

      Defines the unit in which the space is given. Currently only possible in PERCENT (based on box width).

  • Derivatives used

    • order (views [Views] )

      Value range: top | bottom | front | iso | none

      Comma separated specification

      Indicates Standard derivations (continuing beginning at left bottom until top right.

      The illustration shows the counting of the positions (here top, none, front, left )

      The illustration shows the counting of the positions (here top, none, front, left )

  • align (alignment )

    Value range: center | origin

    • center: Alignment based on the center point for part.

    • origin: Alignment based on 0 point of part.

    However, for a lot of parts, this is the same point.

  • parent (Parent ) - parent element (optional)

    If a parent is assigned, the grid aligns its width/height according to its parent. Without parent element, the grid takes up the entire space.

    Following parent elements are possible:

    "grid" without parent element

    "grid" without parent element

    If no box is used as a parent, the entire available space is used. The size of the grid cannot be changed in edit mode [Edit mode].

    "grid" with parent element "box"

    "grid" with parent element "box"

    If a box is used (see Section 7.11.6, “[ELEMENT_box] as wildcard element ”), it can be selected and resized in edit mode [Edit mode].

    Configuration:

    [Template]
    name=grid_ohne_box
    unitbase=mm
    
    [Description]
    default=Grid without box
    german=Grid ohne Box
    english=Grid without box
    
    [ELEMENT_grid1]
    type=grid
    padding_x=10
    padding_y=10
    padding_unit=percent
    columns=2
    rows=2
    order=top,none,front,left

    Configuration:

    [Template]
    name=grid_mit_box
    unitbase=mm
    
    [Description]
    default=Grid with box
    german=Grid mit Box
    english=Grid with box
    
    [ELEMENT_box1]
    type=box
    align=center
    position_x=20
    position_y=20
    position_w=230
    position_h=245
    
    [ELEMENT_grid1]
    type=grid
    parent=box1
    padding_x=10
    padding_y=10
    padding_unit=percent
    columns=2
    rows=2
    order=top,none,front,left

Title Item [Title Item] and Ratio Item - Title and scale (optional)

[Note]Note

Title Item [Title Item] and Ratio Item are of type "text".

Optionally, a title or a scale specification can be inserted using a text element. Details on the text element can be found at Section 7.11.8, “[ELEMENT_text] Text ”.

  • title (Title Item [Title Item] )

    With "title" you can add a title.

    Enter the corresponding text element as the key value in the dw file or select the desired text element from the list box in the Edit element dialog.

  • ratio_title (Ratio Item [Ratio Item] )

    With "ratio_title" you can add a ratio information.

    Enter the corresponding text element as the key value in the dw file or select the desired text element from the list box in the Edit element dialog.

  • title_show (Show title [Show title] )

    Value range: true / false

    In order for the title to be displayed, "title_show" has to be set on "true".

  • ratio_title_show (Show ratio [Show ratio] )

    Value range: true / false

    In order for the scale information to be displayed, "ratio_title_show" must be set to "true".

  • use_ratio (Use ratio [Use ratio] )

Example: Corresponding keys in dw file

title=isotitle
ratio_title=isotitleratio
title_show=true
ratio_title_show=true
use_ratio=false