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=sbcglobal.net; s=s2048; t=1437162504; bh=PZ+VNim3m4vpc7sexWFM4SOsbYXtCYM4lcKwxgqcUVM=; h=Date:From:To:Subject:References:In-Reply-To:From:Subject; b=IfKxFBJZDXvxeY+0fE8/8/3SJcGUBo8Pzbjwvm32D5byDXMeaiqnteIptreLkH8apZNkhNQWy01jo1Y3N7SaA5ufj5b+XJL2W03FIEkhxkYmX2TsBsLj4zsJoKHdQbPbUXt6W+vBfzaw0vPxatPJZS1HHd/zhFAcM5TJHJrql2BhItdAe8TOiN+iVG5+LpbBHqcOxvRfklugoLAnSp5R0pRbhbD9C73QqT48BF/1BKj+LUUYjUUuC3H+FeQymS++9/iVPGUBM71J4Qs4oMMyTdEV3n1iVc7ivwVI6RT/Uq1cE5nQvVi/P2SSZVl6bKZOfFs5rcKOf6clhxJ6SbdmBw== X-Yahoo-Newman-Id: 63548 DOT 88952 DOT bm AT smtp115 DOT sbc DOT mail DOT ne1 DOT yahoo DOT com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: 2UWFioIVM1nwOWGPhOqlW3h2rWFkcQfhWPQqwU90Z0rHHBG 8IsU_5DV._D22kjGO5PH0wwgwptKVsAnwiVtIYsjEo8BLGtaFXiDTe6t9pAi ms7vSQtWotrKjotr3d3pHHsAV39r5ERwOZaWnGX2Hz54r9p6aNr92bWdDjTd 8G6.zKAmJOeHnr8JU8vWLPE7OyAfd8c015QdefOol2jxxlhmiI4vzZ4D.V_a JotOwEQMOpZISu.Tkujo491kHaIdydhVn_j4SpYRhJ.Yf.ZSVOWpnbjjs0pv K5pdup.mfm_fGEg1m_mDweIzQKmBLPJeAg06b8pBdbYQ81_ZtIAcLfHffn2E zXhDyv_JQW7PM3pqGd6FPfy99aAMZPcaV_halqPSFJmMBYaOsC9PG7XAPnul sjdY5qLleVzGGJVlb6BLiCLLcJwZJcDWP2IztOJVw08BcHhRCeEzoAk.d84k lQvstm9V_IzabHZhx0A27wvo.IdCx8iVfzwi7rmCGPyb3x.DibiuI_04OVgr rHXXxgzNO1eM3LZkuLtDWZaiUlB3wUwrm6kD06DpXTfQAWS4.byo- X-Yahoo-SMTP: xaem6kSswBCHwCBMr0jlCBIQdXYGmRxsm8OX6ACyP7Ho9Sk- Message-ID: <55A95B75.9080306@sbcglobal.net> Date: Fri, 17 Jul 2015 12:45:57 -0700 From: "Girvin R. Herr (gherr375 AT sbcglobal DOT net) [via geda-user AT delorie DOT com]" User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: geda-user AT delorie DOT com Subject: Re: [geda-user] Difference between attached and detached attributes References: <55A813B5 DOT 4040609 AT sbcglobal DOT net> <20150716210154 DOT GD14931 AT localhost DOT localdomain> In-Reply-To: <20150716210154.GD14931@localhost.localdomain> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Reply-To: geda-user AT delorie DOT com On 07/16/2015 02:01 PM, Vladimir Zhbanov (vzhbanov AT gmail DOT com) [via geda-user AT delorie DOT com] wrote: > On Thu, Jul 16, 2015 at 01:27:33PM -0700, Girvin R. Herr (gherr375 AT sbcglobal DOT net) [via geda-user AT delorie DOT com] wrote: >> Greetings, >> I have been doing some symbol work in gschem and I got confused again about >> attached attributes vs detached attributes. The manuals do not go into >> detail about usage. Hint, hint. Can someone tell me what is the difference >> between them and where I should apply one vs the other? >> > I believe nothing changed since the creation of this document: > http://wiki.geda-project.org/geda:master_attributes_list > > I don't see any ambiguous statements there. > >> Right now, I am using attached attributes for everything except the pin >> attributes in my symbols. But the fact that there is that detached option > Brrr, > pin attributes must be attached to their pins, > general symbol attributes must be detached/floating in the symbol > >> there makes me wonder if I am using the correct type. In other words, what >> is detached used for? Then there is the "attribute promotion" issue. Is > What is the issue with promotion? > >> there any impact on attribute promotion when using one or the other? > Detached/floating attributes are promoted when the symbol is > instantiated. > >> Any other "gotchas" when using one or the other? >> Is there any problem with changing the attribute value after symbol >> instantiation from one or the other? > The floating attribute value within the symbol can be thought of as the > default. If you remove a promoted attribute of an instance of the symbol > then this value will be used. Otherwise nothing changes. > > HTH, > Vladimit > Vladimir, 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 "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? 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. My issue with promotion was based on my past experience of not being able to change the DEVICE attribute value after symbol instantiation. I was wondering if this was due to my use of the wrong attachment (attached vs detached). I am sure I had problems with this in past gschem versions. However, I just ran a test with 1.8.2 and I was able to change DEVICE whether it was attached or detached. I also now see that the DEVICE attribute was promoted upon instantiation and I was able to edit the promoted version, but not the unpromoted version. Either what I was doing in the past was wrong or there has been a change in the way gschem promotes attributes. In any case, this issue is no longer a problem for me - other than now going back and changing all of my library symbols to get rid of the work-arounds. Thanks for your help. Girvin Herr