angle | real (0.0...359.9°) |
gate | UL_GATE |
mirror | int |
name | string (INSTANCE_NAME_LENGTH) |
sheet | int (0=unused, 1..99=sheet number) |
value | string (PART_VALUE_LENGTH) |
x, y | int (origin point) |
Loop members
texts() | UL_TEXT |
Constants
INSTANCE_NAME_LENGTH | max. length of an instance name |
PART_VALUE_LENGTH | max. length of a part value (instances do not have a value of their own!) |
Note
When processing an instance's texts, you have to loop through the instance's own texts() member as well as the texts() member of the instance's gate's symbol.
Example
schematic(S) {
S.parts(P) {
printf("Part: %s\n", P.name);
P.instances(I) {
if (I.sheet != 0)
printf("\t%s used on sheet %d\n", I.name, I.sheet);
}
}
}
Index | Copyright © 1999 CadSoft Computer GmbH |