You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I have components in my Kicad Library which have in the "value" field other strings which should be replaced but are not in Kibot.
For example: ${Value_C}${Voltage} or ${Manufacturer_1_Part_Number} or ${Value_R}${Tolerance}
Kibot generated some logs related to this:
ERROR:Unable to expand `Manufacturer_1_Part_Number` in `${Manufacturer_1_Part_Number}` (kibot - config.py:113)
WARNING:(W020) Malformed value: `${Value_C}_${Voltage}` (no match in C101) (kibot - units.py:224)
ERROR:Unable to expand `Value_L` in `${Value_L}_${Tolerance}` (kibot - config.py:113)
ERROR:Unable to expand `Tolerance` in `${Value_L}_${Tolerance}` (kibot - config.py:113)
ERROR:Unable to expand `Value_R` in `${Value_R}_${Tolerance}` (kibot - config.py:113)
To Reproduce
I tested a bigger project I can not share, with kibot --quick-start
nopeppermint
changed the title
[BUG]
[BUG] value field substitution in BOM not working
Jul 24, 2023
set-soft
changed the title
[BUG] value field substitution in BOM not working
[Feature] Add support to substitute field names referred in other field names
Jul 24, 2023
Describe the bug
I have components in my Kicad Library which have in the "value" field other strings which should be replaced but are not in Kibot.
For example: ${Value_C}${Voltage} or ${Manufacturer_1_Part_Number} or ${Value_R}${Tolerance}
Kibot generated some logs related to this:
To Reproduce
I tested a bigger project I can not share, with
kibot --quick-start
An example for a schematic symbol causing this issue:
value_substitution_test.zip
Expected behavior
If I export the same BOM with Kicad ${Value_C}_${Voltage} is actually resolved to "1u_16V"
Screenshots
![image](https://private-user-images.githubusercontent.com/3403218/255632744-65dc2e76-a479-4240-817e-cf7942a8792d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA3MzA3MTgsIm5iZiI6MTcyMDczMDQxOCwicGF0aCI6Ii8zNDAzMjE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zPTMwMCZYLUFtei1TaWduYXR1cmU9ODU3M2JlMDhiNmMxOGI2OTM0NDg4YTQ3MWI4ZGY0ZTFlNmQ5ZGIyMTc3M2JmNzNlOTY5YTI4YWZmYTYzNTAyOCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.jluNodcoXuRv_kfBVQkAFugkIAPdHVskFQFcMl92yaQ)
KiCad BOM:
![image](https://private-user-images.githubusercontent.com/3403218/255633455-153df348-016d-46d0-9a21-4223be9ebc04.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA3MzA3MTgsIm5iZiI6MTcyMDczMDQxOCwicGF0aCI6Ii8zNDAzMjE4LzI1NTYzMzQ1NS0xNTNkZjM0OC0wMTZkLTQ2ZDAtOWEyMS00MjIzYmU5ZWJjMDQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcxMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MTFUMjA0MDE4WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YmE2MjBiZjJhNTg2Mzk3YzNkMDg0NTgzMDZkNzRhNWEyZmVmMzIyZGZhMmFlYTVmOWZhYzliZTU4ZjlmMjBkOSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.LIIjTFPLhBN9aE05jZn3-IEShOGeqYGa1faXrUSUw3s)
Environment (please complete the following information):
Where are you running KiBot:
GitHub
/GitLab
) noThe text was updated successfully, but these errors were encountered: