Commit Graph

154 Commits

Author SHA1 Message Date
Salvador E. Tropea a503c5fdc6 Added global options to control the date format. 2021-12-01 14:59:36 -03:00
Salvador E. Tropea 2a09151a18 Fix for the commit 10486af51a
- italic and bold must be bool
2021-11-18 12:18:39 -03:00
Salvador E. Tropea 10486af51a Fixed KiCost variants: when setting a field hat doesn't exist
Fixes #105
2021-11-15 15:56:33 -03:00
Salvador E. Tropea 088027c174 Fixed problems with schematic fields containing double quotes.
- Fixes #98
2021-11-15 12:50:22 -03:00
Salvador E. Tropea 18b72a41b0 Added support for KiCad symbol libs without EOF comment. 2021-10-18 14:47:09 -03:00
Salvador E. Tropea a7bde6d01f Added comment about the KISYS3DMOD patch 2021-10-14 13:29:55 -03:00
Salvador E. Tropea 79c4f75e7d Added fallback for missing KiCad 3D models config.
Fixes #91
2021-10-14 13:22:01 -03:00
Salvador E. Tropea b7b39d4bfe Added explanation for ERC on schematics not fully annotated
Related to #86
2021-09-21 13:14:06 -03:00
Salvador E. Tropea 40a42513ba Added suport for schematic cache files when components are missing
Fixes #83
2021-08-24 14:37:50 -03:00
Salvador E. Tropea e22e1db49a Added support for width, style and color in "wire notes"
Fixes #70
2021-04-22 12:33:13 -03:00
Salvador E. Tropea 1290bb6995 New KiCost variant style.
- New internal filters `_var_rename_kicost` and `_kicost_dnp`.
- New `skip_if_no_field` and `invert` options to the regex used in the
  generic filter.
2021-03-30 09:37:36 -03:00
Salvador E. Tropea 01291ebe63 Added field rename filter.
Including an internal version to emulate KiCost behavior.
2021-03-23 13:20:26 -03:00
Salvador E. Tropea 40bd7c24f2 Added support for KiCost's subparts 2021-03-19 19:41:46 -03:00
Salvador E. Tropea 0402a65c8b Added support for a component attribute qty.
Is the ammount of the part used.
By default is 1, but can be another value.
2021-03-19 11:53:03 -03:00
Bernhard B c13ac04927 be more tolerant when parsing libraries
Some SnapEDA libraries (e.g https://www.snapeda.com/parts/TS3A27518EPWR/Texas%20Instruments/view-part)
use the token "# End Library" instead of "#End Library" to mark the end
of the library.
2021-03-08 15:19:24 +01:00
Salvador E. Tropea 6d59960b59 Sorted the schematic dependencies to make them consistent. 2021-03-03 13:07:46 -03:00
Sabol Martin 234a57cfc6 fix: Part containing more then 9 units (2 digits present). Start line parsing with TAB instead of unit number 2021-02-12 16:16:16 +01:00
Salvador E. Tropea 536fa4708a Fixed get_components. 2021-02-04 16:25:59 -03:00
Salvador E. Tropea ae49289006 Removed dead code in v5_sch.py 2021-02-04 16:16:04 -03:00
Salvador E. Tropea 79fe05ed9f Added makefile test for sch_variant case.
- Also avoided to repeat the same SCH dependency more than once.
2021-02-02 11:55:36 -03:00
Salvador E. Tropea af29f802c0 Switched from configfile.readfp to configfile.read_file for Python 3 2021-02-01 11:14:57 -03:00
Salvador E. Tropea 7422e9726c Removed some "no cover" comments, clasified the rest 2021-02-01 08:53:24 -03:00
Salvador E. Tropea 15474ae4d7 Now you can consolidate more than one project in one BoM.
The basic idea comes from pimpmykicadbom by Anton Savov (@antto)
2021-01-21 14:43:47 -03:00
Salvador E. Tropea 88cd5927dc Now you can ask to compress the targets of an output (by out put name) 2021-01-18 16:12:30 -03:00
Salvador E. Tropea 3e06f43ee2 Best KiCad config path detection.
- Added GetSettingsManager() call (new)
- Added message about KiCad 5 bug (6989)
- Added comment about KICAD_CONFIG_HOME bug.
2021-01-11 12:51:46 -03:00
Salvador E. Tropea 45ac28a6bf Added support for KICAD_CONFIG_HOME defined from inside KiCad 2021-01-08 12:47:15 -03:00
Salvador E. Tropea b3e2d67871 Now we use KiCad to detect where is its configuration.
No more KiCad copycat code.
2021-01-06 13:49:24 -03:00
Salvador E. Tropea 2da936ec11 Adds sub-part to multipart references. 2021-01-05 11:29:28 -03:00
Salvador E. Tropea c626f864f9 The step output now can download missing 3D models. 2020-12-30 15:22:00 -03:00
Salvador E. Tropea 4a3e7faace Added a new filter used to rotate footprints.
Used to generate position files for some manufacturers like JLC.
Also in this patch:
- Now position files are naturally sorted (R10 after R9, not after R1)
- Position files in CSV format quotes only the columns that could
  contain an space. Just like KiCad does.
- Fixed: Generic filter `include_only` option worked only when debug
  enabled.
2020-12-28 18:26:27 -03:00
Salvador E. Tropea 007fc36d1e Fixed the components fields reset mechanism.
My previous approach was incomplete.
2020-12-23 18:47:11 -03:00
Salvador E. Tropea 9f8ecff5d1 Added support to rename fields matching the variant to value. 2020-12-23 12:11:39 -03:00
Salvador E. Tropea 986f0c7157 KiBoM variants: support to field overwrite according to variant 2020-12-18 15:39:58 -03:00
Salvador E. Tropea 26d81d6475 Added support for missing field names in libraries.
- Closes #32
- Reported on SnapEda libs
2020-12-16 12:16:03 -03:00
Salvador E. Tropea c8e81a4668 Added numbers to all the warnings 2020-10-09 18:33:51 -03:00
Salvador E. Tropea 1ed960d045 Replaced dicts used just to test membership by sets. 2020-09-12 12:50:16 -03:00
Salvador E. Tropea b03b56ae5d Added more coherence to the variants/filters.
- Now they behave more coherently across outputs.
- Component status is explicitly reset, so having a variant + filter
  behaves in a more consistent way. Even when this isn't the
  recommended use.
- Virtual components are handled by the exclude filter.
- Moved code to modify the PCB to VariantOptions.
- Added a real virtual component to the tests, not a ridiculous case.
2020-09-08 20:01:16 -03:00
Salvador E. Tropea 42562185ea Added filter options using PCB attributes.
KiCad 6 will break this, we'll see how to adapt.
2020-09-02 14:48:26 -03:00
Salvador E. Tropea 0a6fdccb1d Removed dead code. 2020-09-01 20:32:41 -03:00
Salvador E. Tropea 0b3c36d11a Fixed the DrawText.write method
Was writing an extra quote
2020-09-01 20:31:41 -03:00
Salvador E. Tropea 0216fc93c7 Added support for filters and variants to pdf_print_sch 2020-09-01 16:54:51 -03:00
Salvador E. Tropea 16aefbffb6 Removed debug print. 2020-09-01 16:49:51 -03:00
Salvador E. Tropea 7cd0ccafa1 Fixed component save method.
The first value of the redundant position is the unit.
Not always 1.
2020-09-01 16:48:43 -03:00
Salvador E. Tropea b0c014abe9 Added support to write schematics. 2020-08-31 20:44:34 -03:00
Salvador E. Tropea 094cf41e7b Added support for Italic and Bold in Text* elements. 2020-08-31 20:43:52 -03:00
Salvador E. Tropea a0db94d67c Added support for cross to multi-part components. 2020-08-31 20:42:06 -03:00
Salvador E. Tropea 8b0247bf80 Fixed rectangle computation for pins.
Left and Right exchanged.
2020-08-31 20:41:02 -03:00
Salvador E. Tropea 6620779e09 Handled missing components. 2020-08-30 18:49:01 -03:00
Salvador E. Tropea fee593c091 Added members to create the cache.lib
This is equivalent to the cache.lib, not the real one.
We can generate two versions, one normal and the other with crossed
components.
Now we need a schematic to use them.
2020-08-30 18:26:27 -03:00
Salvador E. Tropea 006072e842 Documented computed component flags.
fitted, in_bom (new) and fixed
2020-08-29 17:31:35 -03:00
Salvador E. Tropea c1e63da09a Moved the fields validation to a seprated methode.
To keep the function complexity lower.
2020-08-27 18:03:41 -03:00
Salvador E. Tropea d80b145af9 Now extra spaces in user fields are discarded.
The code strips spaces at the beggining and end of user field values.
2020-08-25 09:12:46 -03:00
SET 820efd211c Marked sub-packages using __init__.py
Also documented the purpose of these files.
2020-08-18 12:08:52 -03:00
SET 89914443f0 Renamed the kiplot module as kibot.
Also added src/kibot script.
Updated the documentation and Debian packaging.
The default extension for config files now is .kibot.yaml
2020-08-16 22:04:03 -03:00