Commit Graph

136 Commits

Author SHA1 Message Date
Salvador E. Tropea 67ae12bf1d Made shlex.join use optional
Introduced in Python 3.8
2023-08-08 11:19:47 -03:00
Salvador E. Tropea abeea7ec03 [Global options][Add] Option to remove solder mask apertures
`remove_solder_mask_for_dnp` similar to `remove_solder_paste_for_dnp`
but applied to the solder mask apertures.

Closes #476
2023-08-04 12:31:17 -03:00
Salvador E. Tropea 055e832670 [BoM][Added] Support for ${field} expansion
Closes #471
2023-07-31 11:15:37 -03:00
Salvador E. Tropea 7ff35563e6 [Fixed] Rotated text in worksheet for KiCad 7
Fixes #466
2023-07-21 19:43:21 -03:00
Salvador E. Tropea 7a7beff556 [Diff] Changed repo protection to worktree mechanism
- As suggested by @matthijskooijman on #443
- This is cleaner than trying to use stash push/pop
- The old method is available
2023-06-06 12:53:19 -03:00
Salvador E. Tropea d6e008ff48 [PCB][Added] Invalidate the text variables cache
- Only when `set_text_variables` is used
- Can be controlled by global option `invalidate_pcb_text_cache`
- Not even the KiCad developers agree about if the cached
  values should be reset or not, see
  https://gitlab.com/kicad/code/kicad/-/issues/14360
  But if we don't reset them the user will think KiBot is failing
  to set them.
  As using `set_text_variables` is a clear intention of change
  I think this is the right behavior.

Closes #441
2023-05-18 10:47:23 -03:00
Salvador E. Tropea 7576bbd3b4 [Added] Human readable error when we get a corrupted project 2023-05-17 11:09:24 -03:00
Matthijs Kooijman f3c1865d00 [Diff][Schematic] Add debug prints about project-copies 2023-05-17 13:10:42 +02:00
Salvador E. Tropea a02999d50a [Diff][Schematic][Fixed] Project not copied to variant
- Any info related to the project wasn't applied.

Fixes #438
2023-05-16 13:28:51 -03:00
Salvador E. Tropea 577acfe574 Added stack trace to various exit cases 2023-05-16 10:56:13 -03:00
Salvador E. Tropea 61a8fe7885 [Filters][Added] `value_split`
- To extract information from the Value field and put it in separated
  fields. I.e. tolerance, voltage, etc.
2023-05-03 14:09:35 -03:00
Salvador E. Tropea 4e72af9761 [Added] OS environment expansion in ${VAR} 2023-04-28 13:46:58 -03:00
Salvador E. Tropea 124fc8e7b5 [Added] Expansion pattern **%M**
- Directory where the pcb/sch resides. Only the last component
  i.e. /a/b/c/name.kicad_pcb -> c

Closes #421
2023-04-15 19:18:26 -03:00
Salvador E. Tropea a9b91262ad [KiCad 8] We no longer need to update local coordinates 2023-04-11 11:26:38 -03:00
Salvador E. Tropea 1ea51f4908 [KiCad 8] No VECTOR2I(wxPoint) constructor 2023-04-05 13:09:03 -03:00
Salvador E. Tropea a09d62099e [KiCad 8] Added support for FP_SHAPE -> PCB_SHAPE
- Really?
2023-04-05 11:01:19 -03:00
Salvador E. Tropea 58417e428d Merge branch 'dev' of https://github.com/INTI-CMNB/KiBot into dev 2023-04-04 13:50:58 -03:00
Salvador E. Tropea 6feddd06a5 [Added] Mechanism to install fonts and colors 2023-04-04 13:49:21 -03:00
Salvador E. Tropea 1a1311dc6d [General][Added] Support for time stamp in the date
- i.e. 2023-04-02T09:22-03:00
2023-04-02 09:54:30 -03:00
Salvador E. Tropea 3221a7fe00 [PCB Print][Fixed] Problems with images in the WKS (KiCad 5/6)
- Added regression test
2023-04-01 18:07:51 -03:00
Salvador E. Tropea 0f7c8f6cf9 [PCB Print][Fixed] Vias with different center
- The patch to make the centering more coherent when scaling had a
  side effect: vias could get a different center. Now we force the
  bounding box of the plot with them.
2023-03-28 10:46:18 -03:00
Salvador E. Tropea 786c94a80c [3D] Added option to enable the colored R cache 2023-03-21 10:40:27 -03:00
Salvador E. Tropea f3645d3264 [3D] Added options to control the resistors tolerance
- `field_tolerance` field/s to look for resistor tolerance.
- `default_resistor_tolerance` which tolerance to use when none found.
2023-03-21 09:57:22 -03:00
Salvador E. Tropea 05105cdc9a [3D] colored 3D models for THT resistors 2023-03-20 14:26:09 -03:00
Salvador E. Tropea 31cf802b89 [KiCad 7] Added global option to use KiCad to cross components 2023-03-09 09:34:25 -03:00
Salvador E. Tropea 6801dfc7e2 [KiCad 7] Added some support for DNP flag
- Copied to internal `fitted`
- Can remove 3D models even when no filter/variant is applied
2023-03-08 13:13:37 -03:00
Salvador E. Tropea 4da38de4a8 [ERC][KiCad 7] Added option to specify the grid size
- `erc_grid` to specify the grid size for KiCad 7 ERC tests

See https://gitlab.com/kicad/code/kicad/-/issues/14110
2023-02-28 06:17:20 -03:00
Salvador E. Tropea 6fd97254ad [PCB Print][Fixed] KiCad crashing on some complex filled zones
- We must rebuild the conectivity data after a zone fill

Fixes #396
2023-02-27 10:30:11 -03:00
Salvador E. Tropea 659e23ae32 [Report] Added warnings and counters for buried and micro vias
- Also added a mechanism to disable them for KiCad 7 which no longer
  provides this option.
2023-02-23 08:40:40 -03:00
Salvador E. Tropea d15a97f02e [Any Layer][KiCad 7] Added support for Edge.Cuts inclusion
- Should be available in KiCad 7.0.1
- Was bug 13841, now closed
2023-02-16 09:19:33 -03:00
Salvador E. Tropea 4a440078ae Moved all IU -> SVG stuff to GS 2023-02-15 10:07:49 -03:00
Salvador E. Tropea 629c42d4b1 [PCB2Blender Tools][KiCad 7] Adapted to KiCad v7 API 2023-02-14 14:11:41 -03:00
Salvador E. Tropea aa9826fe88 [PCB Print][KiCad 7] Adapted to the new ZONE.GetFirstLayer() 2023-02-14 13:17:09 -03:00
Salvador E. Tropea c0408077fc [PCB Print][KiCad 7] Fixed the solder mask position
- Now SVG scale is mm
2023-02-14 12:30:37 -03:00
Salvador E. Tropea 86573a9e64 [KiCad 7] Added SetExcludeEdgeLayer and SetSvgPrecision to GS
- To solve API differences
2023-02-13 10:37:15 -03:00
Salvador E. Tropea 2f903633e6 Added support to cross components on KiCad 7 PCBs
- Not the most elegant solution, but the less impact
2023-02-10 13:24:23 -03:00
Salvador E. Tropea 8ff1cba906 [Drill] Support for KiCad v7
- Point -> Vector
- Rect -> Box
2023-02-10 10:11:44 -03:00
Salvador E. Tropea a8a2175d73 Fixed missing pcbnew detection 2023-02-10 09:56:26 -03:00
Salvador E. Tropea 3d408d70cf [Report] Fixed new conversion to inches 2023-02-10 09:39:32 -03:00
Salvador E. Tropea 23175f8500 [KiCad 7] Solved drill marks constants rename 2023-02-09 09:02:37 -03:00
Salvador E. Tropea ebbfbb7b62 [KiCad 7] Solved UI_PER_MM and UI_PER_MILS changes 2023-02-09 08:47:21 -03:00
Salvador E. Tropea c39d21f3cf [Global Options] Added field_lcsc_part: to select the LCSC/JLCPCB part field 2023-01-28 17:59:23 -03:00
Salvador E. Tropea 8506fb78db [Report][Fixed] Computed size
- When using circles and some arcs in the PCB edge

Closes #375
2023-01-25 11:05:01 -03:00
Salvador E. Tropea edfc2e80f1 Added the kicad_prl back-up to the list of files to remove 2023-01-16 20:35:28 -03:00
Salvador E. Tropea d469d846fc Added the .kicad_pro-bak to the list of files to clean 2023-01-06 19:11:46 -03:00
Salvador E. Tropea 12b3f1e5de Simplified exec_with_retry use
- No need to call remove_temporals
- We keep temporals when using debug and got a crash
- Temporals removed on crash
- We inform is temoprals were kept
2023-01-03 11:29:45 -03:00
Salvador E. Tropea f7b9092a2a Simplified the KiAuto use
- Temporal video remove
- Other temporals
- Messages on execution error
2023-01-03 10:04:44 -03:00
Salvador E. Tropea 1fdb8a6c4b Merge branch 'subpcb' into dev 2022-12-28 13:33:42 -03:00
Salvador E. Tropea 284b9df12a [Any Layer][Added] Support for sketch_pads_on_fab_layers
Related to #356
2022-12-28 13:06:39 -03:00
Salvador E. Tropea 27247c17b6 [Sub-PCBs] Implemented centered PCB
- Also added option to disable it, at least for the internal tool
- KiKit 1.1.2 is not centering, but using top-left ... but the docs
  says it should center.
2022-12-28 11:07:27 -03:00