www.delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2015/07/28/19:54:10

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=mime-version:in-reply-to:references:date:message-id:subject:from:to
:content-type;
bh=VZoBddDgQJbYVuW9pesUBf55knlKej61xFNT5oB+ako=;
b=dVf6NjWcGX3JPw9LsEQTjLCYs0R830Em3btBFmg5bnikzy7OWUof2aeGeBh6Qs3/IT
QYKWf7l4OAUgSSU6/La17xQHHYVlykq6QfhMRxJkb3i6p4dRM6b4H83c1meck/KnktQR
0BY5fb5jEn7NNdYDveh08YAq0xEzOeN6rnUbwZUa8qKZivzR6xPzkhJxiSrRGcvaNvZW
sXdb1yXHQVN6PzJlijgPOL2pB7sUxM6bjbVFsASIyXWBJlwA1uRVxuQ8bYdmlolceT3T
PZQ4YCLqUapGdRst7sqzi7q5/nlQIgGizezCz0Z9ryjhRq9ozVhUWVAmVid1P52aivSF
Nbiw==
MIME-Version: 1.0
X-Received: by 10.60.76.4 with SMTP id g4mr36418714oew.81.1438127637504; Tue,
28 Jul 2015 16:53:57 -0700 (PDT)
In-Reply-To: <55B7DEED.5080005@buffalo.edu>
References: <55AFE14E DOT 5040704 AT buffalo DOT edu>
<CAHUm0tOCaiNo93oZ+pvUB3qk3gN_+-34tftD_LsGiJifK7dFTQ AT mail DOT gmail DOT com>
<55B7DEED DOT 5080005 AT buffalo DOT edu>
Date: Wed, 29 Jul 2015 09:23:57 +0930
Message-ID: <CAHUm0tNnUDaOpcob=X+0LPpQ2=tofPDO1J2pLqBTm21-HAUoOQ@mail.gmail.com>
Subject: Re: [geda-user] Component Cut-outs in PCB
From: "Erich Heinzle (a1039181 AT gmail DOT com) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
To: geda-user <geda-user AT delorie DOT com>
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

--047d7b33d4aaf9aa78051bf82e90
Content-Type: text/plain; charset=UTF-8

If I were doing it I'd generate a circle with line segments, turning it
into a footprint, and place the footprint where it is needed. Using integer
multiples of line segments per quadrant, and the use of line segments,
would lend itself to ears being added where needed etc...

With this utility, you'd be just about done:

https://github.com/erichVK5/HybridRingCouplerFootprintGenerator

The footprint pad elements used to generate the footprint could then be
turned into silk lines quite easily in a text editor, by removing the
un-necessary fields.
The code could be fairly easily modified to do the same.

Regards,

Erich.

On Wed, Jul 29, 2015 at 5:28 AM, Stephen Besch <sbesch AT buffalo DOT edu> wrote:

>
>
> On 07/28/2015 02:57 AM, Erich Heinzle (a1039181 AT gmail DOT com) [via
> geda-user AT delorie DOT com] wrote:
>
> Is there a standard set of shapes you use?
>
> Not particularly
>
> Can you describe the sort of cutouts you're routinely doing?
>
>
> Usually these are Cutouts in PCB's mounted on panels that need clearance
> openings for components that won't fit between the PCB and the Panel. A
> typical example might be a 10-turn pot mounted next to a toggle switch. The
> clearance cutout for this is basically a circle with 2 ears and a hat. Best
> shape is obtained with 6 arcs and a few straight lines.
>
> Steve
>
> Can you attach any examples if they are hard to describe.
>
> Cheers,
>
> Erich.
>
>
> On Thu, Jul 23, 2015 at 4:00 AM, Stephen Besch <sbesch AT buffalo DOT edu> wrote:
>
>> Several years back there was a lot of discussion about the occasional
>> need for odd shaped cut-outs. Even though several suggestions were made
>> none worked - in some cases at all, or even when they did the results were
>> marginal.  This is still a problem today. The only work around is to draw
>> them directly on some unused layer - for example "Spare" works for me. This
>> is however not a really good solution. Nevertheless it's better than
>> drawing them on the outline layer. First off, every board shop that I deal
>> with want cut-outs in a separate gerber file. If you use the outline layer
>> then you can't have a separate board layout - unless of course you put the
>> outline on some other unused layer.
>>
>> However, this solves only part of the problem. As long as the cutout is
>> only straight lines it's simple. If you need arcs - or worse, full circles
>> or linked arcs it gets really hard. This is largely due to problems with
>> the ARC tool in PCB:  1) you can't control/change Radius; 2) you can't
>> control degrees of arc, and 4) you can't control start angle. This is
>> really weird because the arc[...] item in PCB allows control of all of
>> these items.
>>
>> I have found only one way to get this to work. First select the target
>> layer. Then let's say you have a cutout consisting of a closed loop that
>> requires 6 linked arcs and 2 lines. Just draw them on the selected layer
>> (Spare for example) more or less where you think that they will need to be.
>> The arcs will have to be in more or less random locations owing to the
>> severe limitations of the Arc tool.
>>
>> With this as a starting point, save the PCB file (but leave PCB open)
>> then open the pcb file with your favorite text editor (AND KEEP A BACKUP).
>> Just make sure that whatever you use does not add junk characters or muck
>> around with end of line characters - Gedit is a good choice.
>>
>> Once the file is open, search for the name of the layer you are using.
>> Once found, you will see a parenthetically bounded list of the line and arc
>> definitions for the stuff you put on the layer. Here's an example of each:
>>
>> Line[1525.00mil 1565.00mil 1525.00mil 1450.00mil 1.00mil 1.00mil
>> "clearline"]
>>  Arc[1425.00mil 2005.00mil 450.00mil 450.00mil 1.00mil 1.00mil 305 290
>> "clearline"]
>> Line arguments are: Xstart Ystart Xend Yend Width Clearance Flags
>> Arc arguments are: Xcenter Ycenter Radius1 Radius2 Width Clearance
>> StartAngle AngleofArc Flags
>>
>> The 2 radii are supposed to let you draw ovals, though I haven't tried
>> it. Also, for cutouts the clearline flag makes no sense and can be omitted
>> (just have to leave the "". Clearance makes no sense either but it has to
>> be there anyway or PCB will throw an error. In fact you must be extremely
>> careful when editing these parameters since PCB is very intolerant of
>> formatting errors.
>>
>> The rest of the process amounts to entering your own values for the
>> various parameters until you get the shape you need. The coordinate
>> crosshair is very useful here. I stongly suggest saving the file after
>> every few changes (maybe even after every change) and reloading. PCB will
>> detect the change and prompt you to reload. Do this every time to verify
>> that your changes actually show up and incidentally did not corrupt the
>> entire file (the message log window helps a lot here). During this editing
>> process you may be able to do some of the positioning by dragging stuff
>> around directly in PCB. Just be forewarned that you will need to save using
>> PCB and reload the text editor after every such change made in PCB. In
>> other words: Never edit in one tool anything that has not been saved in the
>> other.
>>
>> This is extremely tedious and annoying but when you are desperate for a
>> cutout I'm afraid that it's the only way.
>>
>> Stephen R. Besch
>>
>>
>
>

--047d7b33d4aaf9aa78051bf82e90
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>If I were doing it I&#39;d generate a circle with lin=
e segments, turning it into a footprint, and place the footprint where it i=
s needed. Using integer multiples of line segments per quadrant, and the us=
e of line segments, would lend itself to ears being added where needed etc.=
..</div><div>=C2=A0</div><div>With this utility, you&#39;d be just about do=
ne:</div><div>=C2=A0</div><div><a href=3D"https://github.com/erichVK5/Hybri=
dRingCouplerFootprintGenerator">https://github.com/erichVK5/HybridRingCoupl=
erFootprintGenerator</a></div><div class=3D"gmail_extra">=C2=A0</div><div c=
lass=3D"gmail_extra">The footprint pad elements used to generate the footpr=
int could then be turned into silk lines quite easily in a text editor, by =
removing the un-necessary fields.<br><div class=3D"gmail_quote">The code co=
uld be fairly easily modified to do the same.</div><div class=3D"gmail_quot=
e">=C2=A0</div><div class=3D"gmail_quote">Regards,</div><div class=3D"gmail=
_quote">=C2=A0</div><div class=3D"gmail_quote">Erich.</div><div class=3D"gm=
ail_quote">=C2=A0</div><div class=3D"gmail_quote">On Wed, Jul 29, 2015 at 5=
:28 AM, Stephen Besch <span dir=3D"ltr">&lt;<a href=3D"mailto:sbesch AT buffal=
o.edu" target=3D"_blank">sbesch AT buffalo DOT edu</a>&gt;</span> wrote:<br><block=
quote style=3D"margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:=
rgb(204,204,204);border-left-width:1px;border-left-style:solid" class=3D"gm=
ail_quote">
 =20
   =20
 =20
  <div bgcolor=3D"#FFFFFF" text=3D"#000000"><span>
    <br>
    <br>
    <div>On 07/28/2015 02:57 AM, Erich Heinzle
      (<a href=3D"mailto:a1039181 AT gmail DOT com" target=3D"_blank">a1039181 AT gma=
il.com</a>) [via <a href=3D"mailto:geda-user AT delorie DOT com" target=3D"_blank"=
>geda-user AT delorie DOT com</a>] wrote:<br>
    </div>
    <blockquote type=3D"cite">
      <div dir=3D"ltr">
        <div>
          <div>
            <div>Is there a standard set of shapes you use?<br>
            </div>
          </div>
        </div>
      </div>
    </blockquote></span>
    Not particularly<span><br>
    <blockquote type=3D"cite">
      <div dir=3D"ltr">
        <div>
          <div>Can you describe the sort of cutouts you&#39;re routinely
            doing?<br>
          </div>
        </div>
      </div>
    </blockquote>
    <br></span>
    Usually these are Cutouts in PCB&#39;s mounted on panels that need
    clearance openings for components that won&#39;t fit between the PCB an=
d
    the Panel. A typical example might be a 10-turn pot mounted next to
    a toggle switch. The clearance cutout for this is basically a circle
    with 2 ears and a hat. Best shape is obtained with 6 arcs and a few
    straight lines.<br>
    <br>
    Steve<span><br>
    <br>
    <blockquote type=3D"cite">
      <div dir=3D"ltr">
        <div>
          <div>Can you attach any examples if they are hard to describe.<br=
>
          </div>
          <div><br>
          </div>
          Cheers,<br>
          <br>
        </div>
        Erich.<br>
        <div>
          <div>
            <div><br>
            </div>
          </div>
        </div>
      </div>
      <div class=3D"gmail_extra"><br>
        <div class=3D"gmail_quote">On Thu, Jul 23, 2015 at 4:00 AM,
          Stephen Besch <span dir=3D"ltr">&lt;<a href=3D"mailto:sbesch AT buff=
alo.edu" target=3D"_blank">sbesch AT buffalo DOT edu</a>&gt;</span>
          wrote:<br>
          <blockquote style=3D"margin:0px 0px 0px 0.8ex;padding-left:1ex;bo=
rder-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:so=
lid" class=3D"gmail_quote">Several
            years back there was a lot of discussion about the
            occasional need for odd shaped cut-outs. Even though several
            suggestions were made none worked - in some cases at all, or
            even when they did the results were marginal.=C2=A0 This is sti=
ll
            a problem today. The only work around is to draw them
            directly on some unused layer - for example &quot;Spare&quot; w=
orks
            for me. This is however not a really good solution.
            Nevertheless it&#39;s better than drawing them on the outline
            layer. First off, every board shop that I deal with want
            cut-outs in a separate gerber file. If you use the outline
            layer then you can&#39;t have a separate board layout - unless
            of course you put the outline on some other unused layer.<br>
            <br>
            However, this solves only part of the problem. As long as
            the cutout is only straight lines it&#39;s simple. If you need
            arcs - or worse, full circles or linked arcs it gets really
            hard. This is largely due to problems with the ARC tool in
            PCB:=C2=A0 1) you can&#39;t control/change Radius; 2) you can&#=
39;t
            control degrees of arc, and 4) you can&#39;t control start
            angle. This is really weird because the arc[...] item in PCB
            allows control of all of these items.<br>
            <br>
            I have found only one way to get this to work. First select
            the target layer. Then let&#39;s say you have a cutout
            consisting of a closed loop that requires 6 linked arcs and
            2 lines. Just draw them on the selected layer (Spare for
            example) more or less where you think that they will need to
            be. The arcs will have to be in more or less random
            locations owing to the severe limitations of the Arc tool.<br>
            <br>
            With this as a starting point, save the PCB file (but leave
            PCB open) then open the pcb file with your favorite text
            editor (AND KEEP A BACKUP). Just make sure that whatever you
            use does not add junk characters or muck around with end of
            line characters - Gedit is a good choice.<br>
            <br>
            Once the file is open, search for the name of the layer you
            are using. Once found, you will see a parenthetically
            bounded list of the line and arc definitions for the stuff
            you put on the layer. Here&#39;s an example of each:<br>
            <br>
            Line[1525.00mil 1565.00mil 1525.00mil 1450.00mil 1.00mil
            1.00mil &quot;clearline&quot;]<br>
            =C2=A0Arc[1425.00mil 2005.00mil 450.00mil 450.00mil 1.00mil
            1.00mil 305 290 &quot;clearline&quot;]<br>
            Line arguments are: Xstart Ystart Xend Yend Width Clearance
            Flags<br>
            Arc arguments are: Xcenter Ycenter Radius1 Radius2 Width
            Clearance StartAngle AngleofArc Flags<br>
            <br>
            The 2 radii are supposed to let you draw ovals, though I
            haven&#39;t tried it. Also, for cutouts the clearline flag make=
s
            no sense and can be omitted (just have to leave the &quot;&quot=
;.
            Clearance makes no sense either but it has to be there
            anyway or PCB will throw an error. In fact you must be
            extremely careful when editing these parameters since PCB is
            very intolerant of formatting errors.<br>
            <br>
            The rest of the process amounts to entering your own values
            for the various parameters until you get the shape you need.
            The coordinate crosshair is very useful here. I stongly
            suggest saving the file after every few changes (maybe even
            after every change) and reloading. PCB will detect the
            change and prompt you to reload. Do this every time to
            verify that your changes actually show up and incidentally
            did not corrupt the entire file (the message log window
            helps a lot here). During this editing process you may be
            able to do some of the positioning by dragging stuff around
            directly in PCB. Just be forewarned that you will need to
            save using PCB and reload the text editor after every such
            change made in PCB. In other words: Never edit in one tool
            anything that has not been saved in the other.<br>
            <br>
            This is extremely tedious and annoying but when you are
            desperate for a cutout I&#39;m afraid that it&#39;s the only wa=
y.<br>
            <br>
            Stephen R. Besch<br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </span></div>

</blockquote></div><br></div></div>

--047d7b33d4aaf9aa78051bf82e90--

- Raw text -


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