I've seen and used this practical feature in an other designer system. However if I select let's say IC1 in schematic and move to the layout there is no selection for IC1 at all...
Is there any solution for this?
Thanks,
Zoltan
I've seen and used this practical feature in an other designer system. However if I select let's say IC1 in schematic and move to the layout there is no selection for IC1 at all...
Is there any solution for this?
Thanks,
Zoltan
actually I doesn't care about simultaneously showing a component on sch and layout but simultaneously selecting a component on booth sch and layout editors!
So this way I can easily move and distribute them along the layout.
This does seem like a useful ULP. Can someone upload it to the ULP files section? I haven't been able to copy the text version in a way that doesn't just provide an error when I run it in EAGLE. I have tried copying in "plain text" format in Textedit, Word, and Open Office. Apparently they all stick enough formatting into the file to mess it up.
Thanks,
It's also in the thread "Two scripts to help layout a board from a multi-page schematic..." and I asked Lorenz if he had thought about uploading it. It does take a couple days to do that because you have to create an account and they approve any uploads before they appear. I'll try to insert the script again here:
#usage "<b>pick-up parts in the board editor that are grouped in the schematic</b>\n"
"<p>"
"group parts in the schematic, then run pickGrouped"
"<p>"
"<author>Author: lorenznl@yahoo.com</author>"
// THIS PROGRAM IS PROVIDED AS IS AND WITHOUT WARRANTY OF ANY KIND, EXPRESSED OR IMPLIED
void main (void) {
string gInSch[], cmd;
int gCnt, mx, my;
// collect the grouped parts
project.schematic(SCH) {
SCH.parts(PAR) PAR.instances (INS) {
if (PAR.device.package && ingroup(INS))
gInSch[gCnt++] = PAR.name;
}
}
if (gCnt == 0) {
dlgMessageBox("Nothing grouped in schematic!");
exit(1);
}
project.board (B) {
clrgroup(B);
// regroup the collected parts in the board
// and determine center of weight
B.elements (E) {
if (lookup(gInSch, E.name, 0) != "") {
mx += E.x;
my += E.y;
setgroup(E);
}
}
// pick up the grouped parts at center of weight
sprintf(cmd, "move (>%.1fmic %.1fmic)", u2mic(mx/gCnt), u2mic(my/gCnt));
if (project.schematic) cmd = "edit .brd;" + cmd;
exit(cmd);
}
}
Hopefully that worked. If not, I'll post it on my web site an give a link...
Well, I copied and pasted from that last message and it was a bit wonky, so I uploaded it to my web page:
http://analognotes.com/eagle/pickgrouped.ulp
When/if Lorenz uploads it to the Cadsoft site, I'll point to that...
Well, I copied and pasted from that last message and it was a bit wonky, so I uploaded it to my web page:
http://analognotes.com/eagle/pickgrouped.ulp
When/if Lorenz uploads it to the Cadsoft site, I'll point to that...
Hi Doug,
Thanks for the rapid response.
I downloaded it from the your link, and now I can run it in EAGLE without getting an error. That's an improvement. However, if I group parts in the schematic editor, and "run pickgrouped" in the schematic editor, it does switch me to the layout editor, but nothing is selected there. Is there a trick to picking up the desired parts to move in the layout?
And if I select a group in the schematic, then switch to the layout and "run pickgrouped" there, I get a message that says "Nothing selected in the schematic.", even though I can still see the group highlighted in the schematic.
That's better than before, but still not quite successful.
Ray
That's odd... Bear with the silly questions for just a second please, but what version of EAGLE are you running, and what kind of computer and OS do you have?
FWIW, I tested on a Windows 7 computer with EAGLE 6.5 and I can run the script from either schematic or board. I'll test on my Vista box and Macbook when I get home tonight...
Tested on Macbook with EAGLE 5.12.0, worked fine.
Vista with 5.6 failed. Clrgroup() was added in the next version...
Doug,
I'm using EAGLE 5.11.0, on an I-Mac, running OS-x 10.5.8, with two monitors.
When I select a group in Schematic, then run pickGrouped, a message pops up at the bottom of the layout window that says "No group defined!". So it seems like it's trying to work, just not quite getting there.
I'll load 5.11 on my Macbook this weekend and see what happens...
I have also tried it on my Acer laptop, Windows 7 Home, EAGLE 5.11.0 Standard. Same results.
If I select a group in Schematic, then run pickgrouped in schematic, it switches control to the layout editor with a message at the bottom of the screen "No group selected.".
If I do the same thing, but run pickgrouped from the layout editor, it pops up a small message window that says "Nothing grouped in schematic."
In both cases, I can still see the grouped items highlighted in the schematic. Maybe it's a difference between EAGLE 5.11 and 5.12? Or maybe there's a really simple step in the process that I'm not getting?
RayA wrote:
I have also tried it on my Acer laptop, Windows 7 Home, EAGLE 5.11.0
Standard. Same results.
If I select a group in Schematic, then run pickgrouped in schematic, it
switches control to the layout editor with a message at the bottom of
the screen "No group selected.".
If I do the same thing, but run pickgrouped from the layout editor, it
pops up a small message window that says "Nothing grouped in schematic."
In both cases, I can still see the grouped items highlighted in the
schematic. Maybe it's a difference between EAGLE 5.11 and 5.12? Or maybe
there's a really simple step in the process that I'm not getting?
the in/set/clrgroup functions have been introduced with V5.0
there have been various bugfixes in V5.11, V5.12 & V6.0 since.
I'm using 6.5.2 in the moment, so for me pickGrouped.ulp just does
what it's supposed to do 8-)
I remember though, when I cobbled together the first version(s) of
this ulp, that there were some problems.
I think to remember that the "No group selected" error could be
circumvented by creating an empty group in the board editor first.
--
Lorenz
To Doug and Lorenz,
Thank you both for your help. I think this will be useful during every new design. This would be nice to have built in to a new version of EAGLE, so it's only a right-click away. (In case I ever get around to upgrading to the latest rev. ;-)
Lorenz... Your tip about creating an empty group in the board editor did the trick. It works on 5.11.0 now.
Ray