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: In-Reply-To: From: "Erich Heinzle (a1039181 AT gmail DOT com) [via geda-user AT delorie DOT com]" Date: Sat, 16 Feb 2019 11:45:25 +1030 Message-ID: Subject: Re: [geda-user] PCB: Text disappears when converting selection to element. To: geda-user Content-Type: multipart/alternative; boundary="00000000000022573b0581f8a122" 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] 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
PCB's data model does not allow arbitrary text in ele= ments much beyond the refdes.

= To get around this limitation, I wrote the following utility a few years ag= o



Which also supp= orts rendering of a few of the Hershey fonts, too.
<= br>
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.

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

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 "footprint" for later re-use if necessary. pc= b-rnd has also expanded the "terminal" options and internal "= ;no connection" 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.

Regards,

Er= ich


<= div dir=3D"ltr">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 t= o be on
the top silk layer, but when done and I choose "Convert selection to <= br> element", the text disappears, even though it was selected. I confirme= d
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" lay= er 4,
not the "top silk" layer. What am I doing wrong or what is the tr= ick to
get text on the top silk layer?

file:

Element["" "" "C?" "" 200.00mil 200= .00mil 790.00mil -30.00mil 0 100 ""]
(
=C2=A0=C2=A0=C2=A0=C2=A0 Pin[-100.00mil 0.0000 65.00mil 30.00mil 71.00mil 3= 5.00mil "" "1"
"edge2"]
=C2=A0=C2=A0=C2=A0=C2=A0 Pin[1700.00mil 0.0000 65.00mil 30.00mil 71.00mil 3= 5.00mil "" "2"
"edge2"]
=C2=A0=C2=A0=C2=A0=C2=A0 ElementLine [700.00mil -50.00mil 900.00mil -50.00m= il 10.00mil]
=C2=A0=C2=A0=C2=A0=C2=A0 ElementLine [900.00mil -50.00mil 900.00mil 50.00mi= l 10.00mil]
=C2=A0=C2=A0=C2=A0=C2=A0 ElementLine [900.00mil 50.00mil 700.00mil 50.00mil= 10.00mil]
=C2=A0=C2=A0=C2=A0=C2=A0 ElementLine [700.00mil 50.00mil 700.00mil -50.00mi= l 10.00mil]
=C2=A0=C2=A0=C2=A0=C2=A0 ElementLine [0.0000 0.0000 700.00mil 0.0000 10.00m= il]
=C2=A0=C2=A0=C2=A0=C2=A0 ElementLine [900.00mil 0.0000 1600.00mil 0.0000 10= .00mil]

=C2=A0=C2=A0=C2=A0=C2=A0 )
Layer(4 "" "copper")
(
=C2=A0=C2=A0=C2=A0=C2=A0 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 s= ilk"
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 t= he
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" s= tatements.

Thanks.
Girvin Herr


--00000000000022573b0581f8a122--