www.delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2015/08/02/18:37:12

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
Date: Mon, 3 Aug 2015 00:35:58 +0200 (CEST)
From: Roland Lutz <rlutz AT hedmen DOT org>
To: "Gabriel Paubert (paubert AT iram DOT es) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
Subject: Re: [geda-user] Improved Find
In-Reply-To: <20150802212228.GA17264@visitor2.iram.es>
Message-ID: <alpine.DEB.2.11.1508030018200.14477@nimbus>
References: <FF2A0FBC-75B1-4A3E-9588-CD3DB7CC448A AT sbcglobal DOT net> <5329D15C-0713-4919-8205-AC474BAC5652 AT noqsi DOT com> <CAC4O8c_bRzahs66fCYsuNggvuwy0-JxGbTu8EJsGwaeSVB8G-Q AT mail DOT gmail DOT com> <FFA87469-7432-49C7-8AF5-153C41DFE78F AT sbcglobal DOT net>
<CAC4O8c9241Z8A6-kKTQM6f=CTxtTU_-Dmj9uMOqqmp68_OuZxg AT mail DOT gmail DOT com> <BC57B367-8548-4947-B29C-A69378423BA8 AT noqsi DOT com> <631C0577-E61D-40BC-B200-96BA897092E6 AT sbcglobal DOT net> <DAC3E2ED-AB1E-42C7-AA0B-78853F31A95A AT noqsi DOT com> <20150802172151 DOT 45DD480395AE AT turkos DOT aspodata DOT se>
<EEDC318A-1649-4FCD-B80C-7D58F89668BA AT noqsi DOT com> <20150802212228 DOT GA17264 AT visitor2 DOT iram DOT es>
User-Agent: Alpine 2.11 (DEB 23 2013-08-11)
MIME-Version: 1.0
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

On Sun, 2 Aug 2015, Gabriel Paubert (paubert AT iram DOT es) [via geda-user AT delorie DOT com] wrote:
> I always had the impression that the attribute handling rules are too 
> complex; it would be much simpler to say that all attributes are 
> promoted and the symbol attributes are only sensible initial default 
> values, which are always ignored when processing the schematics 
> (generating a netlist being the most common example).

The promotion rules only apply to gschem; gnetlist treats all attributes 
as un-promoted regardless of the configuration settings.  (I guess this 
should be documented somewhere.)

If a component has an attribute with the same name as a symbol attribute, 
gnetlist uses that attribute.  Otherwise, it uses the symbol's attribute.

You can (almost) get the behavior you described by adding these lines to 
your gafrc file:

   (attribute-promotion "enabled")
   (promote-invisible "enabled")

This will cause gschem to promote all attributes; further changes of 
existing symbol attributes won't affect the schematic.  To un-set an 
attribute, set its value to "unknown".  (This has some limitations, 
though, as John Doty pointed out.)

Roland

- Raw text -


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