X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com X-TCPREMOTEIP: 12.226.178.170 X-Authenticated-UID: jpd AT noqsi DOT com Content-Type: multipart/signed; boundary="Apple-Mail=_0CF674F2-11BD-44BF-B17B-882735DF6FF0"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: [geda-user] Can an attribute be attached to text for later inclusion in gnetlist backend? X-Pgp-Agent: GPGMail From: John Doty In-Reply-To: Date: Tue, 23 Aug 2016 19:24:10 -0600 Message-Id: References: <20160823053301 DOT 865f671a1b40b5a422e59ce7 AT gmail DOT com> To: geda-user AT delorie DOT com X-Mailer: Apple Mail (2.1878.6) 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 Precedence: bulk --Apple-Mail=_0CF674F2-11BD-44BF-B17B-882735DF6FF0 Content-Type: multipart/mixed; boundary="Apple-Mail=_64226C71-E18F-454F-B82E-F8C2E59A6D82" --Apple-Mail=_64226C71-E18F-454F-B82E-F8C2E59A6D82 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On Aug 23, 2016, at 1:09 PM, Girvin R. Herr (gherr375 AT sbcglobal DOT net) = [via geda-user AT delorie DOT com] wrote: >=20 >=20 > On 08/22/2016 08:33 PM, Nicklas Karlsson = (nicklas DOT karlsson17 AT gmail DOT com) [via geda-user AT delorie DOT com] wrote: >>>> Hi, >>>> I wonder if there is a way to attach an attribute to a block of = text >>>> in gschem so that I can pick it out in the gnetlist backend. >>> You cannot, but attributes that aren=92t attached to anything may be = retrieved via (gnetlist:get-toplevel-attribute attribute). >> I thought I added attribute to text yesterday but then I check file = in gedit attribute was there but as far as I could tell not attached to = anything. >>=20 > I have never tried to make existing text an attribute nor attach an = attribute to it. I suppose for the former, one could cut and paste = existing text into an attribute text field, once the Add Attribute = option was started. I would suggest using the "Comment" attribute and = search for it in the file. "Comment" contains no intelligence to mess = up the other apps. I routinely add Comment attributes to symbols at the = schematic level, such as labeling a pot as "VOLUME". That way, the text = maintains its position relative to the symbol, no matter where it is = moved. Of course, that Comment can be moved relative to the symbol as = needed. >=20 I believe what Svenn wants is a =93toplevel=94 attribute, not attached = to a symbol, like the spice-epilog attribute here: --Apple-Mail=_64226C71-E18F-454F-B82E-F8C2E59A6D82 Content-Disposition: attachment; filename=ACx.sch Content-Type: application/octet-stream; name="ACx.sch" Content-Transfer-Encoding: 7bit v 20130925 2 C 40000 40000 0 0 0 EMBEDDEDNoqsi-title-B.sym [ B 40000 40000 17000 11000 15 0 0 0 -1 -1 0 -1 -1 -1 -1 -1 T 54400 41500 5 10 0 0 0 0 1 graphical=1 L 52900 40600 52900 40000 15 0 0 0 -1 -1 B 49400 40000 7600 1400 15 0 0 0 -1 -1 0 -1 -1 -1 -1 -1 L 49400 40700 57000 40700 15 0 0 0 -1 -1 T 50000 40500 9 10 0 1 0 0 1 date=$Date: 2010-02-10 22:01:20 $ T 53900 40500 9 10 0 1 0 0 1 rev=$Revision: 1.2 $ T 55400 40200 9 10 0 1 0 0 1 auth=$Author: jpd $ T 50200 40800 9 8 0 1 0 0 1 fname=$Source: /cvs/Osaka/SXI/Components/Symbols/Noqsi-title-B.sym,v $ T 53200 41200 9 14 0 1 0 4 1 title=TITLE T 49500 40800 15 8 1 0 0 0 1 FILE: T 53000 40500 15 8 1 0 0 0 1 REVISION: T 53000 40200 15 8 1 0 0 0 1 DRAWN BY: T 49500 40200 15 8 1 0 0 0 1 PAGE T 51200 40200 15 8 1 0 0 0 1 OF T 49500 41200 15 8 1 0 0 0 1 TITLE T 49500 40500 15 8 1 0 0 0 1 DATE B 49400 49600 7600 1400 15 0 0 0 -1 -1 0 -1 -1 -1 -1 -1 T 50200 50400 9 30 1 0 0 0 1 Noqsi Aerospace, Ltd. T 50600 50100 9 10 1 0 0 0 1 2822 South Nova Road, Pine, Colorado, USA 80470 T 51300 49800 9 10 1 0 0 0 1 +1-303-816-2756 jpd AT noqsi DOT com ] { T 50000 40500 15 10 1 1 0 0 1 date=20130901 T 53900 40500 15 10 1 1 0 0 1 rev=1.0 T 55400 40200 15 10 1 1 0 0 1 auth=jpd AT noqsi DOT com T 50200 40800 15 8 1 1 0 0 1 fname=AC.sch T 53200 41200 15 14 1 1 0 4 1 title=AC Test Circuit } C 46500 45400 1 0 0 EMBEDDEDBBamp.sym [ P 46500 46000 46800 46000 1 0 0 { T 46500 46000 5 10 0 0 0 0 1 pintype=pas T 46855 45995 5 10 1 1 0 1 1 pinlabel=In T 46705 46045 5 10 0 1 0 6 1 pinnumber=1 T 46500 46000 5 10 0 0 0 0 1 pinseq=1 } P 48100 46000 47800 46000 1 0 0 { T 48100 46000 5 10 0 0 0 6 1 pintype=pas T 47545 45995 5 10 1 1 0 7 1 pinlabel=Out T 47895 46045 5 10 0 1 0 0 1 pinnumber=2 T 48100 46000 5 10 0 0 0 6 1 pinseq=2 } L 46800 46600 46800 45400 3 0 0 0 -1 -1 L 46800 45400 47800 46000 3 0 0 0 -1 -1 L 47800 46000 46800 46600 3 0 0 0 -1 -1 P 47300 46600 47300 46300 1 0 0 { T 47300 46600 5 10 0 0 0 0 1 pintype=pwr T 47055 46300 5 10 1 1 180 6 1 pinlabel=V+ T 47250 46395 5 10 0 1 90 0 1 pinnumber=3 T 47300 46600 5 10 0 0 0 0 1 pinseq=3 } P 47300 45400 47300 45700 1 0 0 { T 47300 45400 5 10 0 0 180 0 1 pintype=pwr T 47245 45700 5 10 1 1 180 2 1 pinlabel=V- T 47250 45605 5 10 0 1 90 6 1 pinnumber=4 T 47300 45400 5 10 0 0 180 0 1 pinseq=4 } T 46900 47200 8 10 0 0 0 0 1 source=BBamp.sch T 46600 46700 8 10 0 1 0 0 1 refdes=Amp? T 46900 47400 8 10 0 0 0 0 1 spice-prototype=X? %down BBamp T 46900 47000 8 10 0 0 0 0 1 file=BBamp.cir T 46900 46800 8 10 0 0 0 0 1 device=BBamp ] { T 46600 46700 5 10 1 1 0 0 1 refdes=Amp1 } C 47200 45100 1 0 0 EMBEDDEDgnd-1.sym [ P 47300 45200 47300 45400 1 0 1 { T 47358 45261 5 4 0 1 0 0 1 pinnumber=1 T 47358 45261 5 4 0 0 0 0 1 pinseq=1 T 47358 45261 5 4 0 1 0 0 1 pinlabel=1 T 47358 45261 5 4 0 1 0 0 1 pintype=pwr } L 47200 45200 47400 45200 3 0 0 0 -1 -1 L 47255 45150 47345 45150 3 0 0 0 -1 -1 L 47280 45110 47320 45110 3 0 0 0 -1 -1 T 47500 45150 8 10 0 0 0 0 1 net=GND:1 ] C 44700 44800 1 0 0 EMBEDDEDvac-1.sym [ T 45400 45450 8 10 0 1 0 0 1 refdes=V? T 45400 45650 5 10 0 0 0 0 1 device=vac T 45400 45850 5 10 0 0 0 0 1 footprint=none T 45400 46050 5 10 0 0 0 0 1 numslots=0 T 45400 46250 5 10 0 0 0 0 1 description=ac power source P 45000 46000 45000 45700 1 0 0 { T 45050 45800 5 8 1 1 0 0 1 pinnumber=1 T 45050 45800 5 8 0 1 0 2 1 pinseq=1 T 45000 45650 9 8 1 1 0 5 1 pinlabel=+ T 45000 45500 5 8 0 1 0 5 1 pintype=pwr } P 45000 44800 45000 45100 1 0 0 { T 45050 44900 5 8 1 1 0 0 1 pinnumber=2 T 45050 44900 5 8 0 1 0 2 1 pinseq=2 T 45000 45150 9 8 1 1 0 3 1 pinlabel=- T 45000 45300 5 8 0 1 0 3 1 pintype=pwr } V 45000 45400 300 3 0 0 0 -1 -1 0 -1 -1 -1 -1 -1 T 45400 45250 5 10 0 1 0 0 1 value=dc 0 ac 1 A 44930 45375 75 19 141 3 0 0 0 -1 -1 A 45070 45425 75 199 141 3 0 0 0 -1 -1 ] { T 45400 45450 5 10 1 1 0 0 1 refdes=Vin T 45400 45250 5 10 1 1 0 0 1 value=dc 0 ac 1 } C 44700 47200 1 0 0 EMBEDDEDvdc-1.sym [ T 45400 47850 8 10 0 1 0 0 1 refdes=V? T 45400 48050 5 10 0 0 0 0 1 device=VOLTAGE_SOURCE T 45400 48250 5 10 0 0 0 0 1 footprint=none T 45400 48450 5 10 0 0 0 0 1 numslots=0 T 45400 48650 5 10 0 0 0 0 1 description=dc power source P 45000 48400 45000 48100 1 0 0 { T 45050 48200 5 8 1 1 0 0 1 pinnumber=1 T 45050 48200 5 8 0 1 0 2 1 pinseq=1 T 45000 48050 9 8 1 1 0 5 1 pinlabel=+ T 45000 47900 5 8 0 1 0 5 1 pintype=pwr } P 45000 47200 45000 47500 1 0 0 { T 45050 47300 5 8 1 1 0 0 1 pinnumber=2 T 45050 47300 5 8 0 1 0 2 1 pinseq=2 T 45000 47550 9 8 1 1 0 3 1 pinlabel=- T 45000 47700 5 8 0 1 0 3 1 pintype=pwr } V 45000 47800 300 3 0 0 0 -1 -1 0 -1 -1 -1 -1 -1 L 44875 47825 45125 47825 3 0 0 0 -1 -1 L 44875 47775 45125 47775 3 0 0 0 -1 -1 T 45400 47650 5 10 0 1 0 0 1 value=DC 1V ] { T 45400 47850 5 10 1 1 0 0 1 refdes=Vdc T 45400 47650 5 10 1 1 0 0 1 value=DC 8V } N 47300 46600 47300 48400 4 N 47300 48400 45000 48400 4 N 46500 46000 45000 46000 4 C 44900 46900 1 0 0 EMBEDDEDgnd-1.sym [ P 45000 47000 45000 47200 1 0 1 { T 45058 47061 5 4 0 1 0 0 1 pinnumber=1 T 45058 47061 5 4 0 0 0 0 1 pinseq=1 T 45058 47061 5 4 0 1 0 0 1 pinlabel=1 T 45058 47061 5 4 0 1 0 0 1 pintype=pwr } L 44900 47000 45100 47000 3 0 0 0 -1 -1 L 44955 46950 45045 46950 3 0 0 0 -1 -1 L 44980 46910 45020 46910 3 0 0 0 -1 -1 T 45200 46950 8 10 0 0 0 0 1 net=GND:1 ] C 44900 44500 1 0 0 EMBEDDEDgnd-1.sym [ P 45000 44600 45000 44800 1 0 1 { T 45058 44661 5 4 0 1 0 0 1 pinnumber=1 T 45058 44661 5 4 0 0 0 0 1 pinseq=1 T 45058 44661 5 4 0 1 0 0 1 pinlabel=1 T 45058 44661 5 4 0 1 0 0 1 pintype=pwr } L 44900 44600 45100 44600 3 0 0 0 -1 -1 L 44955 44550 45045 44550 3 0 0 0 -1 -1 L 44980 44510 45020 44510 3 0 0 0 -1 -1 T 45200 44550 8 10 0 0 0 0 1 net=GND:1 ] N 48100 46000 48500 46000 4 { T 48400 46100 5 10 1 1 0 0 1 netname=out } T 50300 40200 9 10 1 0 0 0 1 1 T 51900 40200 9 10 1 0 0 0 1 1 T 46400 43100 8 10 1 1 0 0 5 spice-epilog=.control ac dec 100 1k 10g plot db(out) .endc --Apple-Mail=_64226C71-E18F-454F-B82E-F8C2E59A6D82 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Of course, your gnetlist back end needs the code to make sense of such a = thing. John Doty Noqsi Aerospace, Ltd. http://www.noqsi.com/ jpd AT noqsi DOT com --Apple-Mail=_64226C71-E18F-454F-B82E-F8C2E59A6D82-- --Apple-Mail=_0CF674F2-11BD-44BF-B17B-882735DF6FF0 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJXvPc6AAoJEF1Aj/0UKykRnRcQAIksQ4HYHmZf8srikTfXbv8J mOKaIItPhX5obR8t/DkVeKQcpWdPwnW5zOjvXaYqtvKDgWV+yz0Umj6nU3E+YSfW 9ERJ4S4wsJPgemDyK4kBOxllNiJGPEg5psn+HO4SrjLkNP2HmnNQMBBpmVjyWV14 mJWekln2aqKYut7kN21W/V03m3QncJh/ezq01Kl4zniaXFQIlTRk2ks4Mz8PxuAd 78jsPU35UjiC06h8lWnlqgoEGBexXQjvLu4uirPGQQYadT1ARPjuFut8iKWZBAv3 atbPV5wEs1cd+ztep+REb11OKSBUKNWvJPj5CXYgNnlVMqIHGPsNGtmhvCf2lgeD Y5mf8ug2OcdxUtmNZxO3YlwMvIqWC00h9Yv8l/8MjX/UBjB7XDzjmGSjtpV1Lj/w VKqKesXuxhbgQxFtsJg1jsrWHkUzcz66DM8ll+zuWGEWf3y4fyof09H2ZJgctIIQ mRLV4NAS192x54+Zxht4UiPhhe0W16jE06VqBNVSJAkVdrNOfg9L3sCjFE+KzvkV 5rYRkMxXyxCIz1NGgpLxH2Lb2th3pLAR+X3t5Ux1DZhz5vXqvTvqy3VxIeNSNDsQ zfsh4al9MX+3VdXNWnfB7YcaiMMzdye/PtufvKNWcIVTIJ0ypuFr0iWjeYUtzGuA Yglt/2lTTQvisjx8WIsl =tc5r -----END PGP SIGNATURE----- --Apple-Mail=_0CF674F2-11BD-44BF-B17B-882735DF6FF0--