UL_GRID

Data members

   
distance real
dots int (0=lines, 1=dots)
multiple int
on int (0=off, 1=on)
unit int (GRID_UNIT_...)
unitdist int (GRID_UNIT_...)

See also UL_BOARD, UL_LIBRARY, UL_SCHEMATIC, Unit Conversions

Constants

   
GRID_UNIT_MIC microns
GRID_UNIT_MM millimeter
GRID_UNIT_MIL mil
GRID_UNIT_INCH inch

Note

unitdist returns the grid unit that was set to define the actual grid size (returned by distance), while unit returns the grid unit that is used to display values or interpret user input.

Example

board(B) {
  printf("Gridsize=%f\n", B.grid.distance);
  }