X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=xU9QYtlhajl0kfsjW9k8yJvWYJaZS0PPyVzdnw7a3rI=; b=ZpDpa4Tm/qmrA0qgeHBI0ORGpvttMGNVIaRuIJxWU1XV6ynnVate6xJb/YcdA3+v2u idGp+t9Vm0XfDxbJsbTDWlSDiJ06YQhGybE08pLRNg9ifK2JGOCpSwFvv2VIXYpZG+/0 HFlzNtyZY+ESZuePgzGHOkrPQU1QB716sQCeWzjDp0BSTC4ljGoiC8Og0ii6h6Yo8Y9G GziTP9aNAmy2vq+P0lTgHz/wTV0ISErriBuALmE2EKUyUD4ATuYkMMnAWZXthJJ16aQP D6uewb0ysx5GXDmT9V2ZREDmEkWPeQG+QQLhTdzzT75B9+1nl5N7pXwpuPjgPg68qIuD mjZA== X-Gm-Message-State: AOAM531ZSk8hMmvpLWCwSJLljBJ2lMY/b2rlVIR/OEujIX3hbom7SiN7 EIl1e2L0mbhkvbARH9s01v5Zu0n7Quw= X-Google-Smtp-Source: ABdhPJxdJqxdPehiFQXUeGAB+SPD0GwXwUobIprLPzUVcTLSFJmAMkXRIEU8m/cVEHqVDb26vNgCpw== X-Received: by 2002:a92:d2c5:: with SMTP id w5mr254401ilg.80.1601041574126; Fri, 25 Sep 2020 06:46:14 -0700 (PDT) X-Received: by 2002:a6b:ba86:: with SMTP id k128mr258927iof.131.1601041573461; Fri, 25 Sep 2020 06:46:13 -0700 (PDT) MIME-Version: 1.0 References: <1d59efe9-8101-6352-1046-212bdec41824 AT gmail DOT com> <9a50f043-5254-9ae6-b2af-87ac6195eb53 AT gmail DOT com> <09db772d-360c-4990-19dc-4786396cb17a AT gmail DOT com> In-Reply-To: <09db772d-360c-4990-19dc-4786396cb17a@gmail.com> From: John Peck Date: Fri, 25 Sep 2020 06:45:52 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [geda-user] generate complex outline in pcb? To: geda-user AT delorie DOT com Content-Type: multipart/alternative; boundary="00000000000041c53205b0238a20" Reply-To: geda-user AT delorie DOT com --00000000000041c53205b0238a20 Content-Type: text/plain; charset="UTF-8" I use pstoedit a lot: pstoedit -xscale 0.5 -yscale 0.5 -ssp -flat .01 -f pcb $(whatever).pdf $(whatever).pcb Can you get your silkscreen outline into pdf (or ps)? Maybe you could then just play with the scaling in pstoedit to make a bigger version of the outline. You'll then have to bring the output into PCB and "move selected to current layer" after making the outline layer current. On Fri, Sep 25, 2020 at 6:36 AM Dr M C Nelson (drmcnelson AT gmail DOT com) [via geda-user AT delorie DOT com] wrote: > P/S For me, being able to edit the pcb as a text file, is one of its > best features. > > If there is something you can't do in the pcb editor, just do it in a > text editor. > > I've also written a lot of python programs to create and manipulate > boards, including routing. In one project i wrote a script to do > layouts and routing for minimum redundancy MIMO arrays. > > > But, of course, I cringed a little when I saw the note about a new PCB > file format. > > > > > On 9/25/20 8:53 AM, Dr M C Nelson wrote: > > Here is another simple way to do it. > > As I understand it, he has the outline in the silk layer. > > So, open the pcb file in a text editor. > > Copy the lines from the silk layer to the paste buffer, and then paste it > back as an extra copy. > > Then, simply edit the extra copy to appear in the outline layer. > > > > > > On 9/25/20 8:08 AM, Chad Parker (parker DOT charles AT gmail DOT com) [via > geda-user AT delorie DOT com] wrote: > > As far as I'm aware, there isn't currently a way to do this *in* pcb. I > think your best bet is inkscape, but I could also see someone writing a > short python script to accomplish it pretty easily. > > --Chad > > On Fri, Sep 25, 2020, 02:08 Dr M C Nelson (drmcnelson AT gmail DOT com) [via > geda-user AT delorie DOT com] wrote: > >> Perhaps copy and paste from one layer to the other? >> >> >> On 9/24/20 11:24 PM, Dave McGuire (mcguire AT neurotica DOT com) [via >> geda-user AT delorie DOT com] wrote: >> > >> > Hey folks. I'm designing a board that needs to have a very complex >> > outline. Starting from an image file, I've gotten what I need into >> > the silkscreen layer, but now I'd like to essentially take the shape >> > that's there and draw a line 1mm or so around the outside of the >> > entire shape, for the outline. >> > >> > Can anyone suggest an automated way to do this? I'd just trace it, >> > but the outline is, as I said, very complex. >> > >> > Thanks, >> > -Dave >> > >> >> > > --00000000000041c53205b0238a20 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I use pstoedit a lot:

pstoedit -xscale = 0.5 -yscale 0.5 -ssp -flat .01 -f pcb $(whatever).pdf $(whatever).pcb

Can you get your silkscreen outline into pdf (or ps= )?=C2=A0 Maybe you could then just play with the scaling in pstoedit to mak= e a bigger version of the outline.=C2=A0 You'll then have to bring the = output into PCB and "move selected to current layer" after making= the outline layer current.

On Fri, Sep 25, 2020 at 6:36 AM Dr M C Nel= son (drmcnelson AT gmail DOT com) [via= geda-user AT delorie DOT com] <geda-user AT delorie DOT com> wrote:=
=20 =20 =20
P/S=C2=A0=C2=A0 For me, being able to edit the pcb as a text file, is o= ne of its best features.

If there is something you can't do in the pcb editor,=C2=A0 just do= it in a text editor.

I've also written a lot of python programs to create and manipulate boards, including routing. =C2=A0=C2=A0 In one project i wrote a script= to do=C2=A0 layouts and routing for minimum redundancy MIMO arrays.


But, of course, I cringed a little when I saw the note about a new PCB file format.




On 9/25/20 8:53 AM, Dr M C Nelson wrote:
=20 Here is another simple way to do it.

As I understand it, he has the outline in the silk layer.

So,=C2=A0 open the pcb file in a text editor.=C2=A0

Copy the lines from the silk layer to the paste buffer, and then paste it back as an extra copy.

Then, simply edit the extra copy to appear in the outline layer.





On 9/25/20 8:08 AM, Chad Parker (parker DOT charles AT gmail DOT com) [via ged= a-user AT delorie DOT com] wrote:
=20
As far as I'm aware, there isn't currentl= y a way to do this *in* pcb. I think your best bet is inkscape, but I could also see someone writing a short python script to accomplish it pretty easily.

--Chad

On Fri, Sep 25, 2020, 02:08 Dr M C Nelson (drmcnelson AT gmail DOT com) [via geda-user AT delorie DOT com] <= geda-user AT delorie DOT com> wrote:
Perhaps copy and paste from one layer to the other?


On 9/24/20 11:24 PM, Dave McGuire (mcguire AT neurotica DOT com= ) [via
geda-user AT delorie DOT com] wrote:
>
> =C2=A0 Hey folks.=C2=A0 I'm designing a board that nee= ds to have a very complex
> outline.=C2=A0 Starting from an image file, I've gotte= n what I need into
> the silkscreen layer, but now I'd like to essentially take the shape
> that's there and draw a line 1mm or so around the outside of the
> entire shape, for the outline.
>
> =C2=A0 Can anyone suggest an automated way to do this?=C2= =A0 I'd just trace it,
> but the outline is, as I said, very complex.
>
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 Thanks,
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 -Dave
>



--00000000000041c53205b0238a20--