UL_DIMENSION
Data members
| |
|
| dtype |
int (DIMENSION_...) |
| layer |
int |
| extlength |
int |
| extoffset |
int |
| extwidth |
int |
| precision |
int |
| ratio |
int |
| size |
int |
| unit |
int (GRID_UNIT_...) |
| visible |
int (unit, 0=off, 1=on) |
| width |
int |
| x1, y1 |
int (first reference point) |
| x2, y2 |
int (second reference point) |
| x3, y3 |
int (alignment reference point) |
Loop members
| |
|
| texts() |
UL_TEXT |
| wires() |
UL_WIRE |
See also UL_BOARD, UL_GRID, UL_FOOTPRINT, UL_SHEET, UL_SYMBOL
Constants
| |
|
| DIMENSION_PARALLEL |
linear dimension with parallel measurement line |
| DIMENSION_HORIZONTAL |
linear dimension with horizontal measurement line |
| DIMENSION_VERTICAL |
linear dimension with vertical measurement line |
| DIMENSION_RADIUS |
radial dimension |
| DIMENSION_DIAMETER |
diameter dimension |
| DIMENSION_ANGLE |
angle dimension |
| DIMENSION_LEADER |
an arbitrary pointer |
Note
The texts() and wires() loop members loop through all the texts and wires the dimension consists of.
Example
board(B) {
B.dimensions(D) {
printf("Dimension: (%f %f), (%f %f), (%f %f)\n",
u2mm(D.x1), u2mm(D.y1), u2mm(D.x2), u2mm(D.y2), u2mm(D.x3), u2mm(D.y3));
}
}