delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2020/09/25/10:06:05

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: <ad8a00e4-d929-5ce7-5f71-917f61765a0d AT neurotica DOT com>
<1d59efe9-8101-6352-1046-212bdec41824 AT gmail DOT com> <CAJZxidDw_D69M9ZzerM=PCdog+r+i88Ct51wK_N_VUxwuj3ZGg AT mail DOT 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 <john AT eventuallabs DOT com>
Date: Fri, 25 Sep 2020 06:45:52 -0700
X-Gmail-Original-Message-ID: <CAJMxkkW_Vc8OH7bXug67QjFmQXT8q080H4j5O-67HxYSrXvVuA AT mail DOT gmail DOT com>
Message-ID: <CAJMxkkW_Vc8OH7bXug67QjFmQXT8q080H4j5O-67HxYSrXvVuA@mail.gmail.com>
Subject: Re: [geda-user] generate complex outline in pcb?
To: geda-user AT delorie DOT com
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] <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] <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

<div dir=3D"ltr">I use pstoedit a lot:<div><br></div><div>pstoedit -xscale =
0.5 -yscale 0.5 -ssp -flat .01 -f pcb $(whatever).pdf $(whatever).pcb<br></=
div><div><br></div><div>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&#39;ll then have to bring the =
output into PCB and &quot;move selected to current layer&quot; after making=
 the outline layer current.</div></div><br><div class=3D"gmail_quote"><div =
dir=3D"ltr" class=3D"gmail_attr">On Fri, Sep 25, 2020 at 6:36 AM Dr M C Nel=
son (<a href=3D"mailto:drmcnelson AT gmail DOT com">drmcnelson AT gmail DOT com</a>) [via=
 <a href=3D"mailto:geda-user AT delorie DOT com">geda-user AT delorie DOT com</a>] &lt;<a=
 href=3D"mailto:geda-user AT delorie DOT com">geda-user AT delorie DOT com</a>&gt; wrote:=
<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8=
ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
 =20
   =20
 =20
  <div>
    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.<br>
    <br>
    If there is something you can&#39;t do in the pcb editor,=C2=A0 just do=
 it in
    a text editor. <br>
    <br>
    I&#39;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.<br>
    <br>
    <br>
    But, of course, I cringed a little when I saw the note about a new
    PCB file format.<br>
    <br>
    <br>
    <br>
    <br>
    <div>On 9/25/20 8:53 AM, Dr M C Nelson
      wrote:<br>
    </div>
    <blockquote type=3D"cite">
     =20
      Here is another simple way to do it.<br>
      <br>
      As I understand it, he has the outline in the silk layer.<br>
      <br>
      So,=C2=A0 open the pcb file in a text editor.=C2=A0 <br>
      <br>
      Copy the lines from the silk layer to the paste buffer, and then
      paste it back as an extra copy.<br>
      <br>
      Then, simply edit the extra copy to appear in the outline layer.<br>
      <br>
      <br>
      <br>
      <br>
      <br>
      <div>On 9/25/20 8:08 AM, Chad Parker (<a href=3D"mailto:parker.charle=
s AT gmail DOT com" target=3D"_blank">parker DOT charles AT gmail DOT com</a>)
        [via <a href=3D"mailto:geda-user AT delorie DOT com" target=3D"_blank">ged=
a-user AT delorie DOT com</a>]
        wrote:<br>
      </div>
      <blockquote type=3D"cite">
       =20
        <div dir=3D"auto">As far as I&#39;m aware, there isn&#39;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.
          <div dir=3D"auto"><br>
          </div>
          <div dir=3D"auto">--Chad</div>
        </div>
        <br>
        <div class=3D"gmail_quote">
          <div dir=3D"ltr" class=3D"gmail_attr">On Fri, Sep 25, 2020, 02:08
            Dr M C Nelson (<a href=3D"mailto:drmcnelson AT gmail DOT com" target=
=3D"_blank">drmcnelson AT gmail DOT com</a>) [via <a href=3D"mailto:geda-user AT delo=
rie.com" target=3D"_blank">geda-user AT delorie DOT com</a>]
            &lt;<a href=3D"mailto:geda-user AT delorie DOT com" target=3D"_blank">=
geda-user AT delorie DOT com</a>&gt;
            wrote:<br>
          </div>
          <blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8=
ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Perhaps
            copy and paste from one layer to the other?<br>
            <br>
            <br>
            On 9/24/20 11:24 PM, Dave McGuire (<a href=3D"mailto:mcguire AT ne=
urotica.com" rel=3D"noreferrer" target=3D"_blank">mcguire AT neurotica DOT com</a>=
)
            [via <br>
            <a href=3D"mailto:geda-user AT delorie DOT com" rel=3D"noreferrer" tar=
get=3D"_blank">geda-user AT delorie DOT com</a>]
            wrote:<br>
            &gt;<br>
            &gt; =C2=A0 Hey folks.=C2=A0 I&#39;m designing a board that nee=
ds to have
            a very complex <br>
            &gt; outline.=C2=A0 Starting from an image file, I&#39;ve gotte=
n what
            I need into <br>
            &gt; the silkscreen layer, but now I&#39;d like to essentially
            take the shape <br>
            &gt; that&#39;s there and draw a line 1mm or so around the
            outside of the <br>
            &gt; entire shape, for the outline.<br>
            &gt;<br>
            &gt; =C2=A0 Can anyone suggest an automated way to do this?=C2=
=A0 I&#39;d
            just trace it, <br>
            &gt; but the outline is, as I said, very complex.<br>
            &gt;<br>
            &gt; =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,<br>
            &gt; =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<br>
            &gt;<br>
            <br>
          </blockquote>
        </div>
      </blockquote>
      <br>
    </blockquote>
    <br>
  </div>

</blockquote></div>

--00000000000041c53205b0238a20--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019