Element: grid.format[3]

Type

string

Description

The formats for the display of ordinate numbers when grid is drawn in a graphic window. Ordinate numbers are displayed when the element grid.ordinates is set. Formats provide a means of customizing the numbering. There are three formats, each corresponding to one of the principal modeling axes (x, y, z).

A format string takes the form of an output message item to be evaluated at grid display time. Any occurrence of a $ character in the format is replaced by the grid value dynamically.

Examples

This example result in all X grid numbers being preceded by an A, the phrase parsed as an output list item being 'A$'.

mywin.grid.format[1] = "'A$'"

This example will result in all grid numbers (X,Y and Z) being scaled by 1/100 before display.

set mywin.grid.format = "$/100"

Notes

If this element is undefined, then the grid value is used without format. This element is undefined for new grids.