X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; bh=IAt6rO8iW9LkrLfWJRwCVg8fRgV37LvFtn/5aU0iVvs=; b=rkdiZ92bp/3zA4XM5oScEgelzksjlrSRdJAMfaBDj2BsnPfYix3YCZLVYnweRujPh5 S1MLTXVSCUfVQZW0Op3MmPEPIf8mSIt7XZ06dMx7mK3ObsLafSrVid1JO00fjG8/+UFl 27NMdme4gEeCRdmI4cBBbr6jbDAgW9BdDX6y3WeBmvuIjqJapAJWHllNymb/NnWyr4Z/ 8a7WtXxHTXENug39YtTQoji1e/7/avlXLiLI6TAVfWWd1FjRtIzg1iwvV1QvWcbJKYGZ 8X8jAFtFBq5QWm5TMbSFxbivZCi3Iu7s9EoOdJwcliKGTGHHkavSMHI3AW9oB+jPnlWh rtTQ== X-Received: by 10.180.72.177 with SMTP id e17mr9175501wiv.8.1445687107834; Sat, 24 Oct 2015 04:45:07 -0700 (PDT) Date: Sat, 24 Oct 2015 13:45:02 +0200 From: "Nicklas Karlsson (nicklas DOT karlsson17 AT gmail DOT com) [via geda-user AT delorie DOT com]" To: geda-user AT delorie DOT com Subject: Re: [geda-user] pcb loop paste buffer (first multi channel design) Message-Id: <20151024134502.db7816fbad8aef38337eca6a@gmail.com> In-Reply-To: <562B650F.3090706@xs4all.nl> References: <20151021192359 DOT 3dd8ad6d253c781da5523554 AT gmail DOT com> <201510211839 DOT t9LIdVcv027165 AT envy DOT delorie DOT com> <20151021222506 DOT 79643602de30ad2dd5541165 AT gmail DOT com> <20151022115247 DOT 3c1c2f13 AT akka> <20151022123903 DOT dddb6c83fa5a3db0963f4162 AT gmail DOT com> <201510221641 DOT t9MGfxJq003243 AT envy DOT delorie DOT com> <20151022212642 DOT abe0686f3bb04a3067667c43 AT gmail DOT com> <201510221951 DOT t9MJpjgA013544 AT envy DOT delorie DOT com> <562951C5 DOT 2010500 AT xs4all DOT nl> <562B531C DOT 5090004 AT xs4all DOT nl> <20151024121418 DOT 1148a0fbdc2fad946c822b3c AT gmail DOT com> <562B650F DOT 3090706 AT xs4all DOT nl> X-Mailer: Sylpheed 3.5.0beta1 (GTK+ 2.24.25; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Reply-To: geda-user AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: geda-user AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > Nicklas Karlsson (nicklas DOT karlsson17 AT gmail DOT com) [via > geda-user AT delorie DOT com] wrote: > > On Sat, 24 Oct 2015 11:45:00 +0200 > > "Bert Timmerman (bert DOT timmerman AT xs4all DOT nl) [via geda-user AT delorie DOT com]" wrote: > > > > > >> Bert Timmerman (bert DOT timmerman AT xs4all DOT nl) [via geda-user AT delorie DOT com] > >> wrote: > >> > >>> DJ Delorie wrote: > >>> > >>>>> It would be nice to have in the buffer menu, do you think it is time > >>>>> to get into the official repository? > >>>>> > >>>> I think Bert is working on merging plugins into the core, perhaps it > >>>> will show up on his radar some day :-) > >>>> > >>>> > >>> ack > >>> > >>> > >> Please review (second pair of eyes) and test home/bert/renumber > >> > >> Kind regards, > >> > >> Bert Timmerman > >> > > > > I will. > > > > Nicklas Karlsson > > > > > Hi, > > Below an e-mail with a script from the past ;-) > > ----8<---- > From: DJ Delorie [dj AT delorie DOT com] > Date: friday 12 september 2008 5:38 > To: geda-user AT moria DOT seul DOT org > Subject: gEDA-user: RenumberBuffer() > > > http://www.delorie.com/pcb/renumberblock.c > > I added RenumberBuffer() to my RenumberBlock() plug in. It does the > same thing, but to the paste buffer. Why? I needed twenty copies of a > block on a board, and not in a simple grid: > > LoadFrom(Layout,powermeter.pcb) > LoadFrom(LayoutToBuffer,channel1.pcb) > > # left upper > > PasteBuffer(ToLayout,0,30000) > RenumberBuffer(0,10) > PasteBuffer(ToLayout,0,80000) > RenumberBuffer(0,10) > PasteBuffer(ToLayout,0,130000) > RenumberBuffer(0,10) > PasteBuffer(ToLayout,0,180000) > RenumberBuffer(0,10) > PasteBuffer(ToLayout,0,230000) > > # Now skip 300 more for the next five > > RenumberBuffer(0,10) > PasteBuffer(ToLayout,0,310000) > RenumberBuffer(0,10) > PasteBuffer(ToLayout,0,360000) > RenumberBuffer(0,10) > PasteBuffer(ToLayout,0,410000) > RenumberBuffer(0,10) > PasteBuffer(ToLayout,0,460000) > RenumberBuffer(0,10) > PasteBuffer(ToLayout,0,510000) > > # Other side > pastebuffer(Rotate,2) > > RenumberBuffer(0,10) > PasteBuffer(ToLayout,250000,90000) > RenumberBuffer(0,10) > PasteBuffer(ToLayout,250000,140000) > RenumberBuffer(0,10) > PasteBuffer(ToLayout,250000,190000) > RenumberBuffer(0,10) > PasteBuffer(ToLayout,250000,240000) > RenumberBuffer(0,10) > PasteBuffer(ToLayout,250000,290000) > > # skip > > RenumberBuffer(0,10) > PasteBuffer(ToLayout,250000,370000) > RenumberBuffer(0,10) > PasteBuffer(ToLayout,250000,420000) > RenumberBuffer(0,10) > PasteBuffer(ToLayout,250000,470000) > RenumberBuffer(0,10) > PasteBuffer(ToLayout,250000,520000) > RenumberBuffer(0,10) > PasteBuffer(ToLayout,250000,570000) > > SaveTo(LayoutAs,djtest.pcb) > Quit() Yes, that's very good, this will work perfect then adding!! Yesterday I wrote something about adding an attribute for sub layout or similar. Then something should be changed a sub layout attribute to find objects would make it equally simple to replace by new data. If no one else look at this I will try look at it. Nicklas Karlsson