Files
SyncHome/trunk/ulp/editnext-sheet.ulp

24 lines
486 B
Plaintext
Raw Normal View History

2023-03-09 10:24:21 +00:00
#usage "<b>Edit next sheet</b>\n"
"<p>"
"<author>Author: support@cadsoft.de</author>"
// THIS PROGRAM IS PROVIDED AS IS AND WITHOUT WARRANTY OF ANY KIND, EXPRESSED OR IMPLIED
string cmd = "";
if (schematic) {
int scnt = 0;
int s;
schematic(SH) {
sheet(SH) s = SH.number;
SH.sheets(S) {
scnt = S.number;
}
if (s < scnt) {
s++;
sprintf(cmd, "EDIT .s%d;\n", s);
}
}
exit(cmd);
}