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=date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=nMS+oRe9ILPyAJn2rjbHZMsVjOROsCtFf55X7U6J8oM=; b=nddpFByjx6f24kbKWOjnQybvfpdIbpv3nkIK3Dko6335Q/FeJYW3vOcXy5rS/qJn30 J/EzApZyxNO8PEPI2e4DEEY66Akh6mS6AK9eoYnbetCH2DI8F4KxDYZYtALdzZoAissv 1gYDnPuuirRRRcTJ/YcsOSkd5dpTnxcNm4ltU4ocS2wypck582mTuZnodRr0l5G3aQgz QxIVdD7JNuwuuTyP8XI0aRoNJm6rc+T7D0cHmzXU09pvQbA3ehU6C00tDvMtWNDrirm5 Y/24ZwxQJ6bgJGPGEQCtFkqZkCXsHBM39JeGV7ZAaOw2TJFj5M4WG89EhSu/9/5byy3h owOA== X-Received: by 10.112.210.137 with SMTP id mu9mr17349873lbc.95.1437203447610; Sat, 18 Jul 2015 00:10:47 -0700 (PDT) Date: Sat, 18 Jul 2015 10:10:44 +0300 From: "Vladimir Zhbanov (vzhbanov AT gmail DOT com) [via geda-user AT delorie DOT com]" To: geda-user AT delorie DOT com Subject: Re: [geda-user] Difference between attached and detached attributes Message-ID: <20150718071044.GA2685@localhost.localdomain> Mail-Followup-To: geda-user AT delorie DOT com References: <55A813B5 DOT 4040609 AT sbcglobal DOT net> <20150716210154 DOT GD14931 AT localhost DOT localdomain> <55A95B75 DOT 9080306 AT sbcglobal DOT net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="EeQfGwPcQSOJBaQU" Content-Disposition: inline In-Reply-To: <55A95B75.9080306@sbcglobal.net> User-Agent: Mutt/1.5.23 (2014-03-12) 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 --EeQfGwPcQSOJBaQU Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Hi, Girvin. On Fri, Jul 17, 2015 at 12:45:57PM -0700, Girvin R. Herr (gherr375 AT sbcglobal DOT net) [via geda-user AT delorie DOT com] wrote: ... > So, if I understand you correctly, the short answer is that all attributes > are detached except for pin attributes, which are attached to the pin. That > seems logical. I was thinking along the lines of all attributes are Yes. For a component (that is, for a symbol added on schematic) the detached attributes being in the symbol are promoted and become attached to the component. > "attached" to the symbol, not "attached" to the pin in the symbol. Now I > see the error of my thinking. > > Is it possible to edit the pin number attribute value after symbol > instantiation? Short answer: yes. Long answer: I know at least two possibilities, one is using the slot= attribute, which is simple, and second is using of scripts, which is powerful and can be used for changing not only pinnumbers. > Example: I would like to create a generic symbol whose part has insulated > wire leads of arbitrary colors. It would be nice to create a single symbol > with placeholder pin numbers which can be changed to the wire color after > instantiation. Yes, I suppose I could hand edit the schematic file, but > that is crude. See the symbol attached. Add it to schematic and change its slot number. I've intentionally made all slot related attributes visible. Cheers, Vladimir --EeQfGwPcQSOJBaQU Content-Type: application/x-geda-symbol Content-Disposition: attachment; filename="colored.sym" Content-Transfer-Encoding: quoted-printable v 20140308 2=0AB 300 1900 500 400 3 0 1 0 -1 -1 0 -1 -1 -1 -1 -1=0AP 0 2100= 300 2100 1 0 0=0A{=0AT -100 2150 5 10 0 0 0 0 1=0Apintype=3Din=0AT 355 209= 5 9 10 1 1 0 0 1=0Apinlabel=3D1=0AT 205 2145 5 10 1 1 0 6 1=0Apinnumber=3D1= =0AT -100 2150 5 10 0 0 0 0 1=0Apinseq=3D1=0A}=0AT 300 4500 8 10 1 0 0 0 1= =0Aslotdef=3D0:black=0AT 300 4300 8 10 1 0 0 0 1=0Aslotdef=3D1:brown=0AT 30= 0 4100 8 10 1 0 0 0 1=0Aslotdef=3D2:red=0AT 300 3900 8 10 1 0 0 0 1=0Aslotd= ef=3D3:orange=0AT 300 3700 8 10 1 0 0 0 1=0Aslotdef=3D4:yellow=0AT 300 3500= 8 10 1 0 0 0 1=0Aslotdef=3D5:green=0AT 300 3300 8 10 1 0 0 0 1=0Aslotdef= =3D6:blue=0AT 300 3100 8 10 1 0 0 0 1=0Aslotdef=3D7:violet=0AT 300 2900 8 1= 0 1 0 0 0 1=0Aslotdef=3D8:gray=0AT 300 2700 8 10 1 0 0 0 1=0Aslotdef=3D9:wh= ite=0AT 300 2400 8 10 1 1 0 0 1=0Arefdes=3DWHATEVER?=0AT 300 1600 8 10 1 0 = 0 0 1=0Anumslots=3D10=0AT 300 1400 8 10 1 0 0 0 1=0Aslot=3D0=0A --EeQfGwPcQSOJBaQU--