Commit Graph

389 Commits

Author SHA1 Message Date
Salvador E. Tropea 1f8bad0a9b [Imports][Fixed] Problems with recursive imports
- When the intermediate import didn't contain any of the requested
  elements (i.e. importing outputs, but no outputs in the middle).

Closes #335
2022-11-24 13:16:31 -03:00
Salvador E. Tropea d72913a280 [BoM] Using \t, \n, \r and \\ is now supported.
See #334
2022-11-24 09:58:16 -03:00
Salvador E. Tropea be68daace1 [BoM][Fixed] The length of the CSV separator is now validated. 2022-11-23 20:54:58 -03:00
Salvador E. Tropea a9ece9042d [PCB_Print] Now the text in the PDF is searchable.
Closes #331
2022-11-23 18:18:21 -03:00
Salvador E. Tropea cfa54d032b [Gerber][Fixed] Extension used for JLCPCB inner layers.
- The .gpN stands for "Gerber Plane N", which are plotted negative.
- Normal (positive) inner layers should be named.gN
- We are plotting them in positive.

Fixes #329
2022-11-23 14:58:59 -03:00
Salvador E. Tropea 5e3404949d [Stack-up][Fixed] Problems when using more than one dielectric
Fixes #328
2022-11-10 18:09:00 -03:00
Salvador E. Tropea dbea3ca183 [BoM][Added] Option to link to Mouser site. 2022-11-07 10:50:58 -03:00
Salvador E. Tropea ca1faa9102 [BoM][Fixed] Digi-key link in the HTML output. 2022-11-07 10:10:59 -03:00
Salvador E. Tropea c2cd439bb6 [Report][Fixed] Problems for NPTH holes with some sizes
- When using NPTH holes with sizes that doesn't correspond to
  real drill tools. It generated bogus reports about wrong OARs.

Close #326
2022-11-05 15:48:13 -03:00
Salvador E. Tropea c3f426a1d5 [Diff][Fixed] Problems when missing file from repo
- When comparing to a repo point where the PCB/SCH didn't exist yet.
Closes #323
2022-11-05 14:37:19 -03:00
Salvador E. Tropea 06f5fc12f4 [Render_3D] Separated the crop and transparent options 2022-11-01 13:36:05 -03:00
Salvador E. Tropea 6d3d2c37d0 [Render_3D] Added option to highlight components 2022-10-31 10:16:21 -03:00
Salvador E. Tropea 81ce2004d5 [Render_3D] Added option to auto-crop the resulting PNG 2022-10-30 14:35:18 -03:00
Salvador E. Tropea 5b19227625 [Render_3D] Added option to render only some components
- `show_components` like in PcbDraw
2022-10-30 12:36:36 -03:00
Salvador E. Tropea 58e3e9e847 [PcbDraw][Populate] Added filter expansion
- in `show_components` and `highlight`
2022-10-29 16:12:44 -03:00
Salvador E. Tropea d379c67790 [Filters][generic] added options to filter by PCB side 2022-10-29 15:51:33 -03:00
Salvador E. Tropea b0a395e68a [DOCs] Updated with the new populate output 2022-10-28 07:52:33 -03:00
Salvador E. Tropea 491c598afb [iBoM] Added support for the `offset_back_rotation` option 2022-10-24 12:58:36 -03:00
Salvador E. Tropea 417dbadcd2 [PcbDraw][PCB_Print][Fixed] SVG issues for browsers
- Same fix used for SVG output
2022-10-21 13:42:29 -03:00
Salvador E. Tropea 623ce5c65e [SVG][Fixed] Problems using Chrome and Firefox
- The KiCad 6 default scale is too big
2022-10-21 11:51:08 -03:00
Salvador E. Tropea 5fe00f2598 Bumped version to 1.4.1
- Just to identify it as different
2022-10-19 10:44:02 -03:00
Salvador E. Tropea c79e5b0b0f [PcbDraw] Better support for variants
- All variant stuff is applied
- A new mode allows to get a more coherent behavior for the show_components
2022-10-19 10:19:00 -03:00
Salvador E. Tropea 97dd675a6d [PcbDraw] A `remap_components` option with better type checks
- The old option was simpler, but you could put anything there
2022-10-18 13:37:37 -03:00
Salvador E. Tropea 087b1aabe3 [PcbDraw] Added resistor remap and flip options 2022-10-18 13:16:43 -03:00
Salvador E. Tropea 5887b29bf2 [PcbDraw] Added support to set the V-CUTS layer 2022-10-18 12:49:28 -03:00
Salvador E. Tropea f78f8b3064 [PcbDraw] Added solder paste removal 2022-10-18 11:38:29 -03:00
Salvador E. Tropea 268e1ef2f7 [PcbDraw] Added support for the outline width 2022-10-18 11:34:12 -03:00
Salvador E. Tropea 00cea42cda [PcbDraw] Added support for image margin 2022-10-18 11:27:11 -03:00
Salvador E. Tropea 207dd8f67c [PcbDraw] Removed PIL as dependency
- So now the save function only supports SVG as input and SVG/PNG as
  output. All other cases are handled from outside
- This is because KiBot heavily uses ImageMagick and migrating to PIL
  is not something simple.
- There is no point in using PIL just for file conversion, as we don't
  use `render` this is the only use.
2022-10-18 10:49:13 -03:00
Salvador E. Tropea 1fdd3c26d1 [Fixed][QR lib update] Problems on KiCad 5
- Related to moving the footprint to the bottom
2022-10-14 11:08:42 -03:00
Salvador E. Tropea 25d9806b47 [Diff] Added option to compare only the first schematic page.
- So now the default is to compare all the schematic pages.
Closes #319
2022-10-14 10:25:37 -03:00
Salvador E. Tropea 619a7da745 Bumped version to 1.4.0 2022-10-12 10:21:49 -03:00
Salvador E. Tropea a337028007 [Internal BoM] Added some basic support for "Exclude from BoM" flag
Related to #316
2022-10-11 11:46:00 -03:00
Salvador E. Tropea d28ecfd8c4 [Schematic v6][Fixed] Autoplace fields could be lost in variants. 2022-10-11 10:06:00 -03:00
Salvador E. Tropea 7400b2f990 Updated the CHANGELOG (new position feature) 2022-10-06 13:55:09 -03:00
Salvador E. Tropea 1106708a6d [Fixed][Position] Wrong side classification
- When the side column wasn't the last column

Closes #313
2022-10-06 08:59:15 -03:00
Salvador E. Tropea 86a9c25949 [Diff] Added option to skip pages with no diffs 2022-10-05 11:30:00 -03:00
Salvador E. Tropea 925d3596dd New filter `field_modify`
- Also added `pre_transform` shortcut.
2022-10-03 13:11:01 -03:00
Salvador E. Tropea 82b299a159 [iBoM] Fixed the name displayed in the HTML when using filters
- and/or variants
2022-10-03 13:08:48 -03:00
Salvador E. Tropea c4cc6371a8 [Diff] Added mechanism to compare with the last Nth tag
Related to #312
2022-10-03 09:04:29 -03:00
Salvador E. Tropea a9d5b8cd58 New filter `urlify` to convert URLs in fields to HTML links
Closes #311
2022-09-30 11:28:21 -03:00
Salvador E. Tropea 193632ff65 [Fixed] Sch v6 sub-sheet issues
- When saving a sub-sheet that was edited as a standalone sheet
- In this case we have symbo instances, but they weren't
  processed, so we can't look for filter modifications.

Closes #307
2022-09-29 13:45:00 -03:00
Salvador E. Tropea 63b4c526f8 Fixed missing XYRS information for components with multiple units
Closes #306
2022-09-29 07:54:32 -03:00
Salvador E. Tropea ee967235e6 [Fixed] KiCad 5 "assert "lower <= upper" failed in Clamp()"
Closes #304
2022-09-27 13:26:35 -03:00
Salvador E. Tropea 58b7958899 [Update_XML] Now you can check PCB and schematic parity
Related to #297
2022-09-21 11:33:26 -03:00
Salvador E. Tropea e2fdf87d6b [Copy_Files] Now you can copy the 3D models
- Also save a PCB modified to use them
- Changed the syntax so we can copy other stuff
2022-09-20 13:13:12 -03:00
Salvador E. Tropea 67175dcbd9 Now the error about differences bigger than the threshold is more clear
- KiBot also returns a distinct error level.
2022-09-16 08:41:15 -03:00
Salvador E. Tropea 252f10e8f3 Added command line option to specify warnings to be excluded.
- Useful for warnings issued before applying the global options
  (i.e during import).

Fixes #296
2022-09-16 07:48:22 -03:00
Salvador E. Tropea a8e48031c8 [Diff] Added mechanism to specify the PCB/Schematic in memory
- Now this is the default

Closes #295
2022-09-16 07:07:43 -03:00
Salvador E. Tropea 5c825151b0 [Import] Global options are now "merged"
Close #291
2022-09-15 13:27:54 -03:00
Salvador E. Tropea e49cbc2b93 [Global Ops] Added mechanism to give more priority to local globals.
- `imported_global_has_less_priority` in the KiBot section

Related to #291
2022-09-15 12:51:25 -03:00
Salvador E. Tropea 488f2dcbc2 [Global options] Now the global `dir` option also applies to the preflights
- Can be disabled using `use_dir_for_preflights`.

Closes #292
2022-09-15 09:33:57 -03:00
Salvador E. Tropea 446364fb32 [Fixed] Download datasheet abort on connection error
- Now it isn't fatal
- This is PR #290 applied to master

Closes #289
2022-09-14 10:45:06 -03:00
Salvador E. Tropea d01943ed87 Added support for 3D models aliases
- Also a global option to define them in the KiBot configuration

Related to #261
2022-09-14 09:38:47 -03:00
Salvador E. Tropea 418b74b2f3 Environment and text variables now can be used as 3D model aliases.
- Environment and text variables expansion is now recursive.
  So in `${VAR}` the *VAR* can contain `${OTHER_VAR}`

Related to #261
2022-09-14 07:30:13 -03:00
Salvador E. Tropea 08a0628eff Added some basic preprocessing
- Now you can parametrize the YAML config.

Related to #233 and #243
2022-09-13 13:31:25 -03:00
Salvador E. Tropea 4cbb7a3405 [Fixed] 2D PCB processing didn't show in 3D targets
- I.e. solder paste not removed in the 3D render.

Related to #270
2022-09-13 11:32:27 -03:00
Salvador E. Tropea 6f2c4ccf24 [Globals] Added options to control which stuff is changed on PCB variants
- cross_footprints_for_dnp
- remove_adhesive_for_dnp
- remove_solder_paste_for_dnp
- hide_excluded (default value)

Related to #270
2022-09-13 10:44:07 -03:00
Salvador E. Tropea 661677608e [Internal BoM] Added CSV aggregate
Related to #248
2022-09-13 09:25:14 -03:00
Salvador E. Tropea 1f1a56e5ac Added support for changing text variables with variants
- During outputs creation.
- Option `set_text_variables_before_output`.

Related to #233
2022-09-12 13:35:40 -03:00
Salvador E. Tropea 9a70f2e141 New output copy_files
Closes #279
2022-09-12 10:39:44 -03:00
Salvador E. Tropea 70a2788df0 [Render 3D] Added options to control render aspects
- To disable some technical layers
- To control the silkscreen clipping

Closes #282
2022-09-12 08:25:32 -03:00
Salvador E. Tropea e871efe4bd [Diff] Option to use variant's file_id for the link
- Also changed None by Current/FILE
2022-09-09 13:09:56 -03:00
Salvador E. Tropea 6cf6b08450 [SCH Variant] Added option to change the title
- Similar to PCB Variant
2022-09-09 12:51:51 -03:00
Salvador E. Tropea 11cba00a1f [SCH Variant] Added option to copy the project
- May contain text variables
2022-09-09 11:33:40 -03:00
Salvador E. Tropea 584ef5354b [Diff] Added mechanism to compare using a variant
Related to #278
2022-09-09 09:42:06 -03:00
Salvador E. Tropea 4dc93da42b [PCB Variant] Implemented the 3D filtering
- The PCB filtering code was moved to make it, some errors could be
  introduced
2022-09-09 08:57:05 -03:00
Salvador E. Tropea b0b7c6c041 [Netlist] Problems to compress
Fixes #287
2022-09-09 06:51:38 -03:00
Salvador E. Tropea 42aa142a56 [Report] Added support for Eurocircuits drill adjust to fix small OARs.
Closes #227
2022-09-08 11:37:58 -03:00
Salvador E. Tropea 9fdbfa5411 Bumped version to 1.3.0 2022-09-08 09:05:59 -03:00
Salvador E. Tropea 241eca63ff [PCB Print] Added option to customize the page numbers
Related to #283
2022-09-08 07:24:56 -03:00
Salvador E. Tropea 2f37a5c6b4 [3D models] Various small details about missing models
- Fail to expand a VAR is reported once. Not for every model.
- Warnings no longer printed if the model is missing but we can
  download it. It confuses people when the problem is solved.
- When we fail to expand a VAR and the result is "${VAR}..."
  we tried to make it an absolute path creating a path that was
  confusing. Now we keep the original name.
2022-09-07 14:15:31 -03:00
Salvador E. Tropea 835920810e [Install Checker] Added option to show the paths 2022-09-07 12:45:02 -03:00
Salvador E. Tropea ba5164ffa4 [PCB Print] Added option to move the page number to the extension
- page_number_as_extension
- Can be used to easily create custom output names

Related to #283
2022-09-07 09:46:57 -03:00
Salvador E. Tropea 3684889060 [PCB Print] Changed the conversion strategy
- Now we can control the resolution
- Added option for this

Related to #259
2022-09-07 08:40:18 -03:00
Salvador E. Tropea 22d618a425 [PCB Print] Added option to configure the forced edge color.
Closes #281
2022-09-06 11:06:44 -03:00
Salvador E. Tropea 795e56b6d7 [PCB_Print] Text vars generated in the same run didn't show up
Fixes #280
2022-09-05 10:05:05 -03:00
Salvador E. Tropea 01536726a1 New output "Info": collects info about the environment.
Related to #209
2022-09-05 09:07:08 -03:00
Salvador E. Tropea 61bee6e9cc [QR_Lib][Fixed] Problems when moving the footprint to the bottom.
- The updated drawings always used the top layer

Fixes #271
2022-09-01 10:29:28 -03:00
Salvador E. Tropea a0075d12c7 [Compress] Added option to store symlinks. 2022-08-31 13:36:20 -03:00
Salvador E. Tropea 49d20fdeeb [Fixed][Text variables] when using an empty text
Fixes #268
2022-08-31 09:18:19 -03:00
Salvador E. Tropea bc793c8637 [Fixed] Internal netlist generation when no lib
Related to #242
2022-08-29 08:37:12 -03:00
Salvador E. Tropea 464b72e8f1 New output to compute differences between PCBs and SCHs.
Fixes INTI-CMNB/KiAuto#14
2022-08-25 13:02:02 -03:00
Salvador E. Tropea bc0011470b [Fixed][PCB_Print] Problems with `hide_excluded: true`
- For components not in the SCH
Fixes #258
2022-08-23 07:18:12 -03:00
Salvador E. Tropea 85538b0b27 [Global options] Restore the project at exit
Related to #250
2022-08-19 09:39:25 -03:00
Salvador E. Tropea 0180136fd6 [DRC] Another workaround for KiCad lack of exclusions support in Python
- Saving the project can remove them, so `fill_zones` removed them

Fixes #250
2022-08-17 13:33:57 -03:00
Salvador E. Tropea b8c4fadf07 [KiBot Checker] Fixed problems to detect iBoM version
- For the unpatched version you install from the PCM
2022-08-12 13:38:23 -03:00
Salvador E. Tropea 553d47f533 [BoM] Added support for text variables expansion
- Is done using a filter, the expansion is done at the end, but
  the filter can be applied at any point in the filter/variant
  chain.
Fixes #247
2022-08-12 09:09:09 -03:00
Salvador E. Tropea 5785fd3e0f [SCH Print][Netlist][Fixed] Problems with name collisions
- When the name chosen by KiCad was an alredy existing file (from
  another output) it was removed by KiAuto. So then KiCad created
  the file, we renamed it to what the user selected and ... well,
  the original file was lost. Now KiAuto takes care of this.
Fixes #244
2022-08-11 13:31:26 -03:00
Salvador E. Tropea c5a6d894c9 [DRC] Added Workaround for problems with DRC exclusions
- Global option: `drc_exclusions_workaround`
- KiCad bug [11562](https://gitlab.com/kicad/code/kicad/-/issues/11562)
Fixes INTI-CMNB/KiAuto#26
2022-08-10 14:01:32 -03:00
Salvador E. Tropea 3b6c9e7d8b [iBoM] Added support for variants that change component fields
Closes #242
2022-07-30 10:39:48 -03:00
Salvador E. Tropea 6bd8ff9c6b [DOCs] Updated changelog and credits 2022-07-26 07:58:30 -03:00
Salvador E. Tropea b5fc7e8c55 [Report] Fixed converted file wasn't stored at `dir`
Closes #238
2022-07-25 11:40:24 -03:00
Salvador E. Tropea 41de5bf01d [DOCs] Updated changelog
- Aabout new print SCH option
2022-07-25 11:16:10 -03:00
Salvador E. Tropea 95a48a8922 Added `--dont-stop` command line option
- To try to continue even on errors

Related to #209
2022-07-21 13:54:42 -03:00
Salvador E. Tropea 0e7121dc3d Now configuration sections are parsed in a fixed order
- This allows a predictable behavior, the YAML is converted to a dict,
  so you can't trust in the order of the keys.
- It avoids misstakes
- Allows using %V/v in preflights, even if globals are declared latter.

Fixes #234
2022-07-21 13:11:24 -03:00
Salvador E. Tropea 175af3c0c4 [DOCs] Updated the changelog (last fix about zones) 2022-07-19 09:43:18 -03:00
Salvador E. Tropea 3e922b6009 [PCB_Print] Fixed problems with filtered/modified PCBs 2022-07-14 18:52:31 -03:00
Salvador E. Tropea c4b1d6b8ad [Position] Fixed problems with repeated references
- Happens when doing manual panelization

Closes #224
2022-07-14 18:11:56 -03:00
Salvador E. Tropea 037e242660 [DOCs] Added reference to OAR computaion PR 2022-07-14 17:46:23 -03:00