kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #35916
Re: More default fields in schematic
-
To:
Jeff Young <jeff@xxxxxxxxx>
-
From:
Wayne Stambaugh <stambaughw@xxxxxxxxx>
-
Date:
Wed, 23 May 2018 08:00:00 -0400
-
Autocrypt:
addr=stambaughw@xxxxxxxxx; prefer-encrypt=mutual; keydata= xsDiBEM0hxQRBAC2fNh3YOVLu1d5GZ0SbrTNldGiGnCJPLqzEnqFX9v6jmf33TMt6EmSLkl6 Wtfkoj0nVwKxcYmJkA8DX0QAokBkwNIzhSsBzQvthBLIk/5LnPVVKrEXOcL4mUyH1doKlkaE slgJozNa6Av+oavcvD02o1zJOloBbaHlNlyRt7fKswCgtIFlVjWggVH/15KfWk+Qo5JVPbME AIUBAQyL2OAx0n60AWec2WHnO9buHuG0ibtICgUMkE+2MRmYyKwYRdyVwGoIUemFuOyHp0AJ InX4T+vy2E7vkwODqjtMLfIoRkokW74Fi4nrvjlhOAw/vdq/twLbAmR9MOfPTpR4y7kQy1O2 /n+RkkRvh26vTzfbQmrH7cBJhk6aA/9Uwvu3E4zNJgHVZeS0HyWtmR1eOPPRbnkPgJTToX5O KMKzTJI/FX6kT7cFoCamitHrW3BJP4Dx+cMMsa47EGxqVTdbVJ4LjogsXTXxb+0Fn1u4zBdx x3Cer6O7+hqWy7zvpzeC6nSREjqDKa5CgHtv/GLm5uFPOmsjAsnHj2tlBs0mV2F5bmUgU3Rh bWJhdWdoIDxzdGFtYmF1Z2h3QGdtYWlsLmNvbT7CYgQTEQIAIgUCWXDoogIbAwYLCQgHAwIG FQgCCQoLBBYCAwECHgECF4AACgkQG1FxaVn4JF5QbACgmUn1LehNSvH8BMlCRmApskCt8sgA nAw4GoFvw6bm3b7w/Tv4cwapzwPAzsFNBEM0hzEQCACAKu77f9o4LpEKOm9gLvbBj53lKYem ELrJ6JXb+Y66bK3kwuj8+zYbOdmvXUmymoWTkr9mm+kwwuqqMNnf37nRraIpFAUno2Ur6ElY yaPp4nKBCsLBijcaNzoKp+upS/7xVKd/+Lmwhma05UDhmMwvXwy4G8xKw11UsUl3kc2dhvWI 4QKm+p09WH/bUssITDsxRQYaccGEKuaTZol7mEWZxI2DiV0FxeuAxAHB/toxWihtcEwUNv8g Q0HJefSWUHsavYgUxGY1L3+nyz8gjViXZtOrJfgVLPxx+fsL0oTPt9pnvDMBynAcUL/Ozcmg CMnQgQp01SkjACUozNPcLNy3AAMFB/9zGkbbwwrKuqSc2ar/wtAvL7HoVJhcEuPFDP0GIE1h 56wNlDonlRsvWaOknMxrm0tnKk9ijhtsbJHbaGtvIMUruboBxVowgkqX3yDi6Qy60V8AnJEN pEQflmX9fU/i7Vn/JoAjL2Ypo1torX/l2M0nnAJMV6dNSACn3F1zfSQaQUN0skWnm7ENjg/S 9pmJl2NQK8MzdmO/kjOk05/FWpNQFA1Q/8GecqGSTSkNMPqzdfxL4PSs60QFDwrRzAREj8Tw QVryePRM3Dh7YxgZHzCD5LGonvPl/TM9jRs7ob0MMUHBgKrPM9Yap0CH28Dn3vVMBs8RG10X JuGS6ujOnZJ9wkkEGBECAAkFAkM0hzECGwwACgkQG1FxaVn4JF6wdQCfSqokQS6ftWlwGN/e +uSvJR4wcrkAn1gPSGRloW9a9w+p6ugM6pNfNNpx
-
Cc:
kicad-developers@xxxxxxxxxxxxxxxxxxx
-
In-reply-to:
<68360AD5-DD21-45EE-AC66-A7B37E7B9BD0@rokeby.ie>
-
Openpgp:
preference=signencrypt
-
User-agent:
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0
You may want to test this just to be sure. We had a similar issue with
translating board layer names in the old board file format which created
a big headache when we implemented the current board file format.
On 5/23/2018 4:43 AM, Jeff Young wrote:
> Reference/Value/Footprint/Datasheet are translated only in the UI: the
> file always uses the English versions. (Presumably external tools will
> look at the files, BOMs, netlists, etc.)
>
>> On 23 May 2018, at 00:41, Wayne Stambaugh <stambaughw@xxxxxxxxx
>> <mailto:stambaughw@xxxxxxxxx>> wrote:
>>
>> Wouldn't translating them defeat the purpose? I thought the goal was
>> consistency. If you translate them, they will be different for each
>> language and render code like kicost somewhat useless.
>>
>> On 05/22/2018 05:52 PM, Kristoffer Ödmark wrote:
>>> Yes, the only way to make them translateable is to hard-code these and
>>> other values into kicad, same as the existing hard-coded fields.
>>>
>>> That would be a good solution for me, having similar to layers a large
>>> set of predefined fields, being able to name them and enable them at
>>> will. But storing them in the files as the hard-codes values.
>>>
>>> This means a large change to the code though, at least if we must have
>>> the enable/disable feature for this, along with creating new custom
>>> fields. Not even the PCB editor has this yet.
>>>
>>> Also, I don't think any of the bom exporter plug-ins are localized, and
>>> at least one of them completely ignores custom fields and adds it own
>>> instead, regardless of what is in the file.
>>>
>>> Meanwhile my patch does not affect existing installations, does not
>>> change any BOM, and does not enforce anything and comes in at a whooping
>>> 3-4 lines of patch in a single file. It will however add 3 lines to two
>>> dialogs (field editor and symbol editor) for new installations, which
>>> can be removed, with 6 clicks of the mouse in eeschema.
>>>
>>> - Kristoffer
>>>
>>> On Tue, May 22, 2018, 20:01 Jeff Young <jeff@xxxxxxxxx
>>> <mailto:jeff@xxxxxxxxx>
>>> <mailto:jeff@xxxxxxxxx>> wrote:
>>>
>>> I can confirm that default fields only get added when the symbol is
>>> edited AND the default field’s value is non-empty. So it doesn’t
>>> seem to me that the proposed patch would pollute existing BOMs. Or
>>> am I missing something?
>>>
>>> Seth’s comment regarding localisation is an issue, though, as we
>>> don’t currently translate default fields.
>>>
>>>> On 22 May 2018, at 17:53, Wayne Stambaugh <stambaughw@xxxxxxxxx
>>>> <mailto:stambaughw@xxxxxxxxx>
>>> <mailto:stambaughw@xxxxxxxxx>> wrote:
>>>>
>>>> On 5/22/2018 12:43 PM, Jeff Young wrote:
>>>>>> It should output all fields defined in schematic symbols
>>> regardless if
>>>>>> each optional field is defined in every symbol. If they are
>>> outputting
>>>>>> anything other than that, I would consider this a bug.
>>>>>
>>>>> I had trouble parsing this. Are you saying that the list of
>>> output fields should be the union of all fields which have a value
>>> somewhere (but excluding default fields which are uniformly blank)?
>>>>
>>>> Yes. It should be the equivalent of a logical OR. If a field
>>> exists in
>>>> a single symbol, it should get added to the BOM.
>>>>
>>>>>
>>>>> As it stands in 5.0, default fields don’t get pushed to symbols
>>> unless the symbol is edited. At that point I’m not sure if they’re
>>> all pushed, or only those with values.
>>>>>
>>>>
>>>> It used to be that fields only get saved when they are added to the
>>>> symbol using the edit symbol properties dialog. That code has
>>> changed a
>>>> lot since it was originally written so I cannot confirm this.
>>>
>>>
>>>
>>> _______________________________________________
>>> Mailing list: https://launchpad.net/~kicad-developers
>>> Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx
>>> <mailto:kicad-developers@xxxxxxxxxxxxxxxxxxx>
>>> Unsubscribe : https://launchpad.net/~kicad-developers
>>> More help : https://help.launchpad.net/ListHelp
>>>
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~kicad-developers
>> Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx
>> <mailto:kicad-developers@xxxxxxxxxxxxxxxxxxx>
>> Unsubscribe : https://launchpad.net/~kicad-developers
>> More help : https://help.launchpad.net/ListHelp
>
Follow ups
References
-
More default fields in schematic
From: kristoffer Ödmark, 2018-05-20
-
Re: More default fields in schematic
From: Seth Hillbrand, 2018-05-20
-
Re: More default fields in schematic
From: Kristoffer Ödmark, 2018-05-20
-
Re: More default fields in schematic
From: José Ignacio, 2018-05-20
-
Re: More default fields in schematic
From: kristoffer Ödmark, 2018-05-20
-
Re: More default fields in schematic
From: Andrey Kuznetsov, 2018-05-20
-
Re: More default fields in schematic
From: Wayne Stambaugh, 2018-05-21
-
Re: More default fields in schematic
From: kristoffer ödmark, 2018-05-22
-
Re: More default fields in schematic
From: Jeff Young, 2018-05-22
-
Re: More default fields in schematic
From: Wayne Stambaugh, 2018-05-22
-
Re: More default fields in schematic
From: Jeff Young, 2018-05-22
-
Re: More default fields in schematic
From: Wayne Stambaugh, 2018-05-22
-
Re: More default fields in schematic
From: Jeff Young, 2018-05-22
-
Re: More default fields in schematic
From: Kristoffer Ödmark, 2018-05-22
-
Re: More default fields in schematic
From: Wayne Stambaugh, 2018-05-22
-
Re: More default fields in schematic
From: Jeff Young, 2018-05-23