www.delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2017/08/17/06:30:57

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:in-reply-to:references:from:date:message-id:subject:to;
bh=58kTCwSYsjVkqk8GQO96jVkKlgy1+xW8obAs5WASHw0=;
b=RAwDguFHeIerKlQa6ycNq5ukzMdeSxtBKB2JxxqzaxI4g+/2ARbjsV7MR0t3ZQAjAK
HQjpy2cvceapbXT/99WIs9JrM8Y6cI2tRhK5a/+2Y8OiBVr5LBv91epkvIT5jTvbDD24
MjwRAksezbTOhdCYSFaUxNFF8F/PSrA0dlQz6VNe0+JkeeCy4cCwoVBnPp/q0j2c78cH
GFeuG9ieJJLuFQutRgc7SyQ+gtlJUOttnC9se7EWEqpGUXQ8mJVvVhULXnL6hQlJdt0A
ZiJ/NYS07yGAFUAQe7e/fA9rVsg+Kt01U2ITBwnkR1lcmVaJ5P42ELHVpiDTWdE+dvDw
BBXQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:in-reply-to:references:from:date
:message-id:subject:to;
bh=58kTCwSYsjVkqk8GQO96jVkKlgy1+xW8obAs5WASHw0=;
b=cxmVW7TYfq68G45vY9rlnT9hzwmg+40M8c43dg4Nl4vmhpYOQQEdupvSyw+aYX8prx
+3A3VosSzJqEc2/LGzbv1TTfbP2CiapFJEek8lwJfAZMThY5zic27C3GkEJWUEH0dAaT
KkspTC9Y6Lyl7r/2dbnCy1Nm0Gddk3qf+yQiqwBsN3X29r0GNox/HG2Ol4ODGr/Z2Z6W
KxIzIcv+7T2GvfR0T5qd310I8lr3PFJ8UV+IOBJoczWSPSSbav5PqqA55wvL0QVLG4Q/
JoTFLmtGnWEtQE6Cum7pFXFrJPhU22ZzBatUZyf+PkgvkkH9LBKhcq93ZqnD48XJ5Jjx
ygxA==
X-Gm-Message-State: AHYfb5jmsciS9/nc+4vnip09lj3lWX0WrOWnCYMiZwfQFlsZ9NKVawIc
Gb2EV5v5IuXaEtXI9uf9hQwHwe+IfwDJ
X-Received: by 10.129.77.65 with SMTP id a62mr4020009ywb.158.1502965743398;
Thu, 17 Aug 2017 03:29:03 -0700 (PDT)
MIME-Version: 1.0
In-Reply-To: <3638640a-df24-e804-5fc5-6bfd9ee75099@fastmail.com>
References: <alpine DOT LRH DOT 2 DOT 01 DOT 1708160810170 DOT 3058 AT homer12 DOT u DOT washington DOT edu>
<d36de00d-9a5e-c856-c78c-cbe28a14122d AT fastmail DOT com> <5994AA88 DOT 1090602 AT xs4all DOT nl>
<806564ad-a555-31dd-b705-e472773b445b AT fastmail DOT com> <5994C2F8 DOT 7060603 AT xs4all DOT nl>
<3638640a-df24-e804-5fc5-6bfd9ee75099 AT fastmail DOT com>
From: "Paul Tan (pt27809 AT gmail DOT com) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
Date: Thu, 17 Aug 2017 03:29:02 -0700
Message-ID: <CAOz=JGC4k56Qam_ZRYFQSkd9SoZzVaRmGK9Pwrbn5NUwWPzeZw@mail.gmail.com>
Subject: Re: [geda-user] [pcb] mainline: redundant attributes: bug or feature? (fwd)
To: geda-user AT delorie DOT com
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

Hi,

You can add, delete or change most default attributes
shown in gschem's Attribute_Dialog by editing the
entries in the "system-gschemrc" file.  Look in that
file for something like:
   (attribute-name "netname")
Those are the list of default attributes shown in the
dialog.

If you want to add an attribute_name such as
my_attrib1, add the entry:
   (attribute-name "my_attrib1")

Or, if you do not want to touch the system-gschemrc
file, then create a "gafrc" file in your project
folder, then just add that line into the file.
Make sure you have an extra blank line at the end
of the file, just in case...  The new attribute name
will show up at the end of the dialog list.

Best regards.

On Wed, Aug 16, 2017 at 4:40 PM, Girvin Herr (gherrl AT fastmail DOT com)
[via geda-user AT delorie DOT com] <geda-user AT delorie DOT com> wrote:
>
>
> On 08/16/2017 03:11 PM, Bert Timmerman (bert DOT timmerman AT xs4all DOT nl) [via
> geda-user AT delorie DOT com] wrote:
>>
>> Girvin Herr (gherrl AT fastmail DOT com) [via geda-user AT delorie DOT com] wrote:
>>>
>>>
>>>
>>> On 08/16/2017 01:26 PM, Bert Timmerman (bert DOT timmerman AT xs4all DOT nl) [via
>>> geda-user AT delorie DOT com] wrote:
>>>>
>>>> Girvin Herr (gherrl AT fastmail DOT com) [via geda-user AT delorie DOT com] wrote:
>>>>>
>>>>>
>>>>>
>>>>> On 08/16/2017 08:15 AM, Frank Miles (fpm AT u DOT washington DOT edu) [via
>>>>> geda-user AT delorie DOT com] wrote:
>>>>>>
>>>>>> On 08/14/2017 10:28 PM, Nicklas Karlsson
>>>>>> (nicklas DOT karlsson17 AT gmail DOT com) [via geda-user AT delorie DOT com] wrote:
>>>>>>>>
>>>>>>>> I suspect my thoughts were this: the user API should require/expect
>>>>>>>> unique keys (hence get-by-value) but the low level stuff should be
>>>>>>>> able
>>>>>>>> to preserve (erroneous) redundant keys when loading/saving a *.pcb
>>>>>>>> file.
>>>>>>>> Making load/store git friendly is a goal in pcb.
>>>>>>>
>>>>>>> Attribute with same name added several times may in sort of be
>>>>>>> interpreted as a list of values. In gschem it is possible to add several
>>>>>>> attributes with same name but it never make sense and it's not possible to
>>>>>>> know for sure which value is used.
>>>>>>
>>>>>> Greetings,
>>>>>> As a user, I might add my 2-cents to this discussion by saying that I
>>>>>> use multiple instances of the "Comment" symbol attribute in my schematics. I
>>>>>> would hate to see this capability be removed. Comment attributes to not span
>>>>>> multiple text lines. Therefore, I need to add as many "Comment" attributes
>>>>>> as I need lines of text.
>>>>>>
>>>>>> Another item may be that earlier someone posted that only the first
>>>>>> instance of an attribute is used and subsequent instances are ignored. Why
>>>>>> not the last instance is used and previous instances are ignored, as in many
>>>>>> other configuration scripts. That way the latest version would be used and
>>>>>> the system would be more forgiving. A warning, not an error should suffice.
>>>>>>
>>>>>> Girvin Herr
>>>>>>
>>>>>> ----------------------------
>>>>>>
>>>>>> I also make heavy use of multiple "Comment" entries for a given
>>>>>> component.
>>>>>>
>>>>>> An even nicer alternative (for me) would be to enable custom attribute
>>>>>> types.
>>>>>> Currently I use these entries to add hooks that tie entries in our
>>>>>> local component
>>>>>> database with the schematics - a custom attribute type would be
>>>>>> cleaner.
>>>>>>
>>>>>>     -Frank
>>>>>
>>>>> Frank,
>>>>> Actually, I think you can make up your own attribute names, if that is
>>>>> what you are asking by "attribute type". I did it a while back when I wasn't
>>>>> satisfied with the single "Device=" or "Value=" and wanted more info like
>>>>> "Power=", "Tolerance=", etc. The attribute name entry box is a list of
>>>>> attributes but it starts blank and one can enter any name one wishes, within
>>>>> reason. However, gsymcheck barfed on my new attribute names. It only
>>>>> supports the canned attribute names. So, if you don't use gsymcheck, then
>>>>> add your own attributes.
>>>>>
>>>>> Devs: It would be nice if gsymcheck would allow new names, or maybe
>>>>> default with a warning and allow a command line option to turn such warnings
>>>>> off. I would like to make a script to use gsymcheck to test all my symbols
>>>>> before packaging them, but that is not possible as it stands, because it
>>>>> returns non-0 on those unknown attribute errors.
>>>>>
>>>>> HTH.
>>>>> Girvin Herr
>>>>>
>>>> Hi Girvin,
>>>>
>>>> IIRC, adding attribute keys to a file "attribs" seems to work for me.
>>>>
>>>> I have keys like:
>>>>
>>>> footprint
>>>> value
>>>> mfg
>>>> mfg_PN
>>>> vendor
>>>> vendor_PN
>>>> price
>>>> documentation
>>>> source
>>>> comment
>>>>
>>>> in them.
>>>>
>>>> I hope this helps you a bit.
>>>>
>>>> Kind regards,
>>>>
>>>> Bert Timmerman.
>>>
>>> Bert,
>>> Are you saying that any attribute defined in this "attribs" file shows up
>>> in the add attribute dialog list of attributes?
>>>
>>> If so, that is a good way of adding custom attributes.
>>> I did a system search for attribs* and got one hit:
>>> /usr/local/doc/geda-gaf-1.8.2/examples/gTAG/attribs
>>> I looked at it and has a series of attribute names, but I am not sure how
>>> that applies. I will have to do some research in the docs to see how I can
>>> use this.
>>>
>>> Thanks.
>>> Girvin
>>
>> Hi Girvin,
>>
>> The attributes listed in "attribs" file seems to have some influence on
>> gnetlist when creating a bill of materials.
>>
>> I still have to add the key name "vendor_PN" manually for they do not show
>> up in the attribute dialog list ... gattrib comes in handy here ;-)
>>
>> See:
>>
>> http://wiki.geda-project.org/geda:faq-gnetlist
>>
>> Kind regards,
>>
>> Bert Timmerman.
>
> Bert,
> Ahhh! Yes, I remember that now. I was going to mention that the attribs file
> determines what gets printed in the BOM, but I haven't used it for so long I
> wasn't sure and the only files I could find in my account were ATTRIBS.LST
> PCAD files, which perform a similar function in PCAD. I thought gschem had a
> similar feature. Thanks for clearing that up.
> Girvin
>

- Raw text -


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