UL_BOARD

Data members

   
alwaysvectorfont int (ALWAYS_VECTOR_FONT_..., see note)
area UL_AREA
checked int (see note)
description string
grid UL_GRID
headline string
name string (see note)
verticaltext int (VERTICAL_TEXT_...)

Loop members

   
attributes() UL_ATTRIBUTE (see note)
circles() UL_CIRCLE
classes() UL_CLASS
dimensions() UL_DIMENSION
elements() UL_ELEMENT
errors() UL_ERROR
frames() UL_FRAME
holes() UL_HOLE
layers() UL_LAYER
libraries() UL_LIBRARY
polycutouts() UL_POLYCUTOUT
polyshapes() UL_POLYSHAPE
rectangles() UL_RECTANGLE
signals() UL_SIGNAL
texts() UL_TEXT
variantdefs() UL_VARIANTDEF
wires() UL_WIRE

See also UL_LIBRARY, UL_SCHEMATIC, variant()

Constants

   
ALWAYS_VECTOR_FONT_GUI alwaysvectorfont is set in the user interface dialog
ALWAYS_VECTOR_FONT_PERSISTENT alwaysvectorfont is set persistent in this board
VERTICAL_TEXT_UP reading direction for vertical texts: up
VERTICAL_TEXT_DOWN reading direction for vertical texts: down

Notes

The value returned by alwaysvectorfont can be used in boolean context or can be masked with the ALWAYS_VECTOR_FONT_... constants to determine the source of this setting, as in

if (B.alwaysvectorfont) {
   // alwaysvectorfont is set in general
   }
if (B.alwaysvectorfont & ALWAYS_VECTOR_FONT_GUI) {
   // alwaysvectorfont is set in the user interface
   }

The value returned by checked can be used in boolean context and is set only after a recent 'Design Rule Check' (DRC).

The name member returns the full file name, including the directory.

The attributes() loop member loops through the global attributes.

Example

board(B) {
  B.elements(E) printf("Element: %s\n", E.name);
  B.signals(S)  printf("Signal: %s\n", S.name);