www.delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2019/02/15/20:16:53

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=20161025;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to;
bh=cAm1Og+eGYzSCvPBrcmmKQCnx823/c6pXBJkAu77Oac=;
b=WjLvioRYKzyUfLOHzTZQlu4+sRrZjy6jZQqRvUWff7a7k4czLrq9VTdE/BPoM2YUI3
FQcXy7g+wCOAiRK2oHhXf88I0T4idDvNGMhqGclBBJUHS+/zYwzTDlfn5c4wqpo8X1bX
fkBn3Gj1ajlsiSxC6f8FD5EEJJiTMDGUXOHe0YEvSIbRjMwrtB5uSV3RzEp22Ga2wO8o
xfwHzXuS+bCq1Qk7WJcQi+SWqD5uSwwfiywPVAOuLwCYCOpY4OR5nnH6xdcaSpl72C+Q
jfJofJb1H8yc7SuoN59nRmwHRhd/YzCQybstvb2nh+6j8Q5VcJHx1pSgFqMDckn6jQVB
YPfw==
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=cAm1Og+eGYzSCvPBrcmmKQCnx823/c6pXBJkAu77Oac=;
b=c+cUcaGN33H5LY9UZOekvRrlzPRq6fln53HopUmnzoGRMzXAraOgbr+t0WGDogPYZR
js3/VpRbpaZtRK9kOQyvu7pjOnu7hqTKm5S0xmJ4XhqPApOwSo5IWw6ovV2pARmoGMXI
49xQivpe9kk0Apn92YRgZm+D+U50amRQrDjVI0727Uz0xEwtogYRu+eHUTMPAL6kzvcC
3mT+XyNmoMfkSApL5YTdVxaSsUxQDDsc5XfmXCln7BfsqsdX4usmkBjXb9MlsLcP3586
1HVMfSSN2QOf9JJyVCrpRaiEMcD6/4vWAvA2wxginbEn47o2wfuY9EMSm9zes4oyX5uj
1h9g==
X-Gm-Message-State: AHQUAuYHvPQDBJ5Rqxn2huHchB+9g1cIgG/fu+YTLVWnTifwEJCGpG/1
l6gKF9P/WE4Aw0N/81zQ2s9W0Zza1logm0+dKYb2Tg==
X-Google-Smtp-Source: AHgI3Ib0o4PBSsEyLIFFeO17qJEvKFmhsol3oiz3Lq7r5UFK7iXBuj1wOczNTaCRe7Pysd+mv6N4xGvdBj0s71dT/qU=
X-Received: by 2002:a25:2104:: with SMTP id h4mr10942045ybh.100.1550279738806;
Fri, 15 Feb 2019 17:15:38 -0800 (PST)
MIME-Version: 1.0
References: <d478b80e-3c2f-6947-2968-98a9ac512be1 AT fastmail DOT com>
In-Reply-To: <d478b80e-3c2f-6947-2968-98a9ac512be1@fastmail.com>
From: "Erich Heinzle (a1039181 AT gmail DOT com) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
Date: Sat, 16 Feb 2019 11:45:25 +1030
Message-ID: <CAHUm0tN5Mu+aKeLiFcB-zox6MtbFPzSR1hFj9SY9bo4PC=edcA@mail.gmail.com>
Subject: Re: [geda-user] PCB: Text disappears when converting selection to element.
To: geda-user <geda-user AT delorie DOT com>
Reply-To: geda-user AT delorie DOT com

--00000000000022573b0581f8a122
Content-Type: text/plain; charset="UTF-8"

PCB's data model does not allow arbitrary text in elements much beyond the
refdes.

To get around this limitation, I wrote the following utility a few years ago

http://vk5hse.blogspot.com/2015/09/geda-pcb-footprint-text-utility.html

https://github.com/erichVK5/FootprintTextForPCB

Which also supports rendering of a few of the Hershey fonts, too.

By converting text into a footprint containing line features, these
features can be used by itself or copied and combined with an existing
footprint requiring labels, i.e. C B E for a transistor.

Without this utility, arbitrary text has to be hand drawn with line
features in gEDA PCB.

The layout editor pcb-rnd has generalised the data model for footprints,
now known as subcircuits, allowing multiple arbitrary text features,
polygons and arcs. You simply select the features, and convert them to a
subcircuit, which can be cut to buffer and saved as a standalone
"footprint" for later re-use if necessary. pcb-rnd has also expanded the
"terminal" options and internal "no connection" options for subcircuits for
drc connectivity, even allowing pcb spiral inductors, for example, with
electrical terminals at each end that do not behave like a short.

Regards,

Erich


On Sat, 16 Feb 2019 10:55 Girvin Herr (gherrl AT fastmail DOT com) [via
geda-user AT delorie DOT com] <geda-user AT delorie DOT com wrote:

> Greetings,
>
> I am using pcb 4.1.3 on Slackware Linux.
>
> I am trying to modify an existing, but renamed, element. I need to add
> text ("+") to the top silk layer. The text gets added and looks to be on
> the top silk layer, but when done and I choose "Convert selection to
> element", the text disappears, even though it was selected. I confirmed
> that the resulting element does not have the text on the top silk layer
> when reloaded. However, when I look at the element file (below), I see
> that the text statement is there but assigned to the "copper" layer 4,
> not the "top silk" layer. What am I doing wrong or what is the trick to
> get text on the top silk layer?
>
> file:
>
> Element["" "" "C?" "" 200.00mil 200.00mil 790.00mil -30.00mil 0 100 ""]
> (
>      Pin[-100.00mil 0.0000 65.00mil 30.00mil 71.00mil 35.00mil "" "1"
> "edge2"]
>      Pin[1700.00mil 0.0000 65.00mil 30.00mil 71.00mil 35.00mil "" "2"
> "edge2"]
>      ElementLine [700.00mil -50.00mil 900.00mil -50.00mil 10.00mil]
>      ElementLine [900.00mil -50.00mil 900.00mil 50.00mil 10.00mil]
>      ElementLine [900.00mil 50.00mil 700.00mil 50.00mil 10.00mil]
>      ElementLine [700.00mil 50.00mil 700.00mil -50.00mil 10.00mil]
>      ElementLine [0.0000 0.0000 700.00mil 0.0000 10.00mil]
>      ElementLine [900.00mil 0.0000 1600.00mil 0.0000 10.00mil]
>
>      )
> Layer(4 "" "copper")
> (
>      Text[150.00mil 100.00mil 0 172 "+" "clearline"]
> )
>
> /file:
>
> Note that when I load the element and check the groups in preferences,
> there is only a "bottom silk" assigned to group 1 and "top silk"
> assigned to group 2. What looks odd is that the "Top side" at the bottom
> is set to Group 1 and the "Bottom side" is set to group 2. Just the
> opposite. Is this correct?
>
> Is there a good document for the element file statement definitions?
> Mine is so old it does not list the "Layer" or "Text" statements.
>
> Thanks.
> Girvin Herr
>
>
>

--00000000000022573b0581f8a122
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto">PCB&#39;s data model does not allow arbitrary text in ele=
ments much beyond the refdes.<div dir=3D"auto"><br></div><div dir=3D"auto">=
To get around this limitation, I wrote the following utility a few years ag=
o</div><div dir=3D"auto"><br></div><div dir=3D"auto"><a href=3D"http://vk5h=
se.blogspot.com/2015/09/geda-pcb-footprint-text-utility.html">http://vk5hse=
.blogspot.com/2015/09/geda-pcb-footprint-text-utility.html</a><br></div><di=
v dir=3D"auto"><br></div><div dir=3D"auto"><a href=3D"https://github.com/er=
ichVK5/FootprintTextForPCB">https://github.com/erichVK5/FootprintTextForPCB=
</a><br></div><div dir=3D"auto"><br></div><div dir=3D"auto">Which also supp=
orts rendering of a few of the Hershey fonts, too.</div><div dir=3D"auto"><=
br></div><div dir=3D"auto">By converting text into a footprint containing l=
ine features, these features can be used by itself or copied and combined w=
ith an existing footprint requiring labels, i.e. C B E for a transistor.</d=
iv><div dir=3D"auto"><br></div><div dir=3D"auto">Without this utility, arbi=
trary text has to be hand drawn with line features in gEDA PCB.</div><div d=
ir=3D"auto"><br></div><div dir=3D"auto">The layout editor pcb-rnd has gener=
alised the data model for footprints, now known as subcircuits, allowing mu=
ltiple arbitrary text features, polygons and arcs. You simply select the fe=
atures, and convert them to a subcircuit, which can be cut to buffer and sa=
ved as a standalone &quot;footprint&quot; for later re-use if necessary. pc=
b-rnd has also expanded the &quot;terminal&quot; options and internal &quot=
;no connection&quot; options for subcircuits for drc connectivity, even all=
owing pcb spiral inductors, for example, with electrical terminals at each =
end that do not behave like a short.</div><div dir=3D"auto"><br></div><div =
dir=3D"auto">Regards,</div><div dir=3D"auto"><br></div><div dir=3D"auto">Er=
ich</div><div dir=3D"auto"><br></div></div><br><div class=3D"gmail_quote"><=
div dir=3D"ltr">On Sat, 16 Feb 2019 10:55 Girvin Herr (<a href=3D"mailto:gh=
errl AT fastmail DOT com">gherrl AT fastmail DOT com</a>) [via <a href=3D"mailto:geda-use=
r AT delorie DOT com">geda-user AT delorie DOT com</a>] &lt;<a href=3D"mailto:geda-user AT d=
elorie.com">geda-user AT delorie DOT com</a> wrote:<br></div><blockquote class=3D"=
gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-=
left:1ex">Greetings,<br>
<br>
I am using pcb 4.1.3 on Slackware Linux.<br>
<br>
I am trying to modify an existing, but renamed, element. I need to add <br>
text (&quot;+&quot;) to the top silk layer. The text gets added and looks t=
o be on <br>
the top silk layer, but when done and I choose &quot;Convert selection to <=
br>
element&quot;, the text disappears, even though it was selected. I confirme=
d <br>
that the resulting element does not have the text on the top silk layer <br=
>
when reloaded. However, when I look at the element file (below), I see <br>
that the text statement is there but assigned to the &quot;copper&quot; lay=
er 4, <br>
not the &quot;top silk&quot; layer. What am I doing wrong or what is the tr=
ick to <br>
get text on the top silk layer?<br>
<br>
file:<br>
<br>
Element[&quot;&quot; &quot;&quot; &quot;C?&quot; &quot;&quot; 200.00mil 200=
.00mil 790.00mil -30.00mil 0 100 &quot;&quot;]<br>
(<br>
=C2=A0=C2=A0=C2=A0=C2=A0 Pin[-100.00mil 0.0000 65.00mil 30.00mil 71.00mil 3=
5.00mil &quot;&quot; &quot;1&quot; <br>
&quot;edge2&quot;]<br>
=C2=A0=C2=A0=C2=A0=C2=A0 Pin[1700.00mil 0.0000 65.00mil 30.00mil 71.00mil 3=
5.00mil &quot;&quot; &quot;2&quot; <br>
&quot;edge2&quot;]<br>
=C2=A0=C2=A0=C2=A0=C2=A0 ElementLine [700.00mil -50.00mil 900.00mil -50.00m=
il 10.00mil]<br>
=C2=A0=C2=A0=C2=A0=C2=A0 ElementLine [900.00mil -50.00mil 900.00mil 50.00mi=
l 10.00mil]<br>
=C2=A0=C2=A0=C2=A0=C2=A0 ElementLine [900.00mil 50.00mil 700.00mil 50.00mil=
 10.00mil]<br>
=C2=A0=C2=A0=C2=A0=C2=A0 ElementLine [700.00mil 50.00mil 700.00mil -50.00mi=
l 10.00mil]<br>
=C2=A0=C2=A0=C2=A0=C2=A0 ElementLine [0.0000 0.0000 700.00mil 0.0000 10.00m=
il]<br>
=C2=A0=C2=A0=C2=A0=C2=A0 ElementLine [900.00mil 0.0000 1600.00mil 0.0000 10=
.00mil]<br>
<br>
=C2=A0=C2=A0=C2=A0=C2=A0 )<br>
Layer(4 &quot;&quot; &quot;copper&quot;)<br>
(<br>
=C2=A0=C2=A0=C2=A0=C2=A0 Text[150.00mil 100.00mil 0 172 &quot;+&quot; &quot=
;clearline&quot;]<br>
)<br>
<br>
/file:<br>
<br>
Note that when I load the element and check the groups in preferences, <br>
there is only a &quot;bottom silk&quot; assigned to group 1 and &quot;top s=
ilk&quot; <br>
assigned to group 2. What looks odd is that the &quot;Top side&quot; at the=
 bottom <br>
is set to Group 1 and the &quot;Bottom side&quot; is set to group 2. Just t=
he <br>
opposite. Is this correct?<br>
<br>
Is there a good document for the element file statement definitions?<br>
Mine is so old it does not list the &quot;Layer&quot; or &quot;Text&quot; s=
tatements.<br>
<br>
Thanks.<br>
Girvin Herr<br>
<br>
<br>
</blockquote></div>

--00000000000022573b0581f8a122--

- Raw text -


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