I want to make a ULP so that I can hit ctrl-F, type in a reference designator, and have the board or schematic (ideally both) select the part with the editor's SHOW command and, if possible, center the window on that component.
Possible?
string name = "";
int result = dlgDialog("Hello") {
dlgStringEdit(name) dlgAccept();
dlgHBoxLayout {
dlgPushButton("+OK") dlgAccept();
dlgPushButton("Cancel") dlgAccept(2);
}
};
if(result == 0) {
/* somehow execute SHOW name and recenter board and schem on this part ??? */
}