Commit Graph

112 Commits

Author SHA1 Message Date
Salvador E. Tropea e64b3864b4 Unified the "run_command" mechanism
- Now most code calls kiplot.run_command
2024-01-08 11:25:48 -03:00
Salvador E. Tropea 190dc0a389 Unified the exit point for errors running external commands 2024-01-05 12:52:46 -03:00
Salvador E. Tropea 7ec3a1379c Unified some errors details
- Non-critical errors will stop when using -W
- More stack traces on error
- More centralized exit
2024-01-04 13:58:13 -03:00
Salvador E. Tropea 8c1fafa9b9 [Added] Warning about KiCad Bug #16418
See #533
2023-12-21 13:04:51 -03:00
Salvador E. Tropea 97f67e5bca [DOCs][PCB Print] Added remainder about alpha channel
See #531
2023-12-20 10:28:10 -03:00
Salvador E. Tropea bf5e37bc13 [PCB Print][Fixed] Regression issue
- Reverts 8194760
- Adds 0972914f to the removed code
2023-12-18 19:03:09 -03:00
Salvador E. Tropea 0972914f08 [PCB Print][Fixed] Missing edge cuts in the list of visible layers
- When forced
- This is needed and helps to avoid hitting a bug in KiCad

Fixes #532
2023-12-18 18:48:03 -03:00
Salvador E. Tropea 8194760ff6 [PCB Print] Removed redundant code 2023-12-18 18:47:34 -03:00
Salvador E. Tropea 53aa79c29b [PCB Print] Avoid warnings about SHEETPATH
- Not used for PCBs
- KiCad defines it as empty

See #532
2023-12-18 18:46:05 -03:00
Salvador E. Tropea c129c597ef [PCB Print][Added] Support for CURRENT_DATE text variable 2023-09-24 17:16:16 -03:00
Salvador E. Tropea 4c4747b729 [DOCs] Changed to reST format for most docs
- Now KiBot can generate helps in reST format
- No more huge monolithic help
- Generated stuff is in separated files and marked as generated
- Index to search stuff by category
2023-08-29 08:02:02 -03:00
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 0fa7b92039 [Quick-Start] No longer use dedicated templates
- Now we use the internal templates
- This is because now they can be configured
2023-06-14 13:24:08 -03:00
Salvador E. Tropea f9c45899e4 [DOCs] Added various mentions about the `resources_dir` variable 2023-04-05 07:53:13 -03:00
Salvador E. Tropea 895d852ed2 [Cosmetic] unkown -> unknown 2023-03-28 11:22:19 -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 eaa9569e71 [PCB Print] Added option to better control scale centering
- `individual_page_scaling`: to control if the center of the page is
  computed using all pages or individually.
2023-03-28 08:11:37 -03:00
Salvador E. Tropea ac81d18ea3 [PCB Print][Fixed] Interference with PRL and scaling
- The visible layers affected the position of the scaled image.
  This list is defined in the .kicad_prl file and the Python API
  loads it.

Fixes #407
2023-03-27 13:53:37 -03:00
Salvador E. Tropea b16bb533ea [PCB Print] Simplified the mechanism to hide zones
- Just UnFill() them
2023-02-27 10:46:52 -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 4a440078ae Moved all IU -> SVG stuff to GS 2023-02-15 10:07:49 -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 1823d3d3ce [PCB_Print] Added tolerance for small errors in page size
- PCBDraw seems to be creating pages with 297.022 mm instead of 297 mm
2023-02-14 07:33:55 -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 abb0989a2a [PCB_Print][Fixed] Missing default layer argument 2023-01-12 18:45:03 -03:00
Salvador E. Tropea 6998fd87de [PCB_Print][Added] A mechanism to create a page for each copper layer
See #365
2023-01-12 18:35:27 -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 eb911f35d1 [PCB_Print][Added] Support for sketch_pads_on_fab_layers
Closes #356
2022-12-28 13:26:15 -03:00
Salvador E. Tropea 1dbe58aab1 Moved sub-PCB specific stuff to var_base (from out_base)
- To allow more than one mechanism
- Also changed the order in which sub-PCBs are applied, will make
  things faster
- Also removed board as parameter for un/filter_pcb*
  Isn't really supported and the sub-PCBs clearly breaks it
2022-12-27 08:48:44 -03:00
Salvador E. Tropea 6d8ca3f163 [Windows] One more use of rename changed to replace 2022-12-26 09:06:00 -03:00
Salvador E. Tropea 8c3e5b982b [PCB_Print][Fixed] Images not showing in custom frames.
Closes #352
2022-12-16 13:44:12 -03:00
Salvador E. Tropea 788aabeeed [PCB_Print][Added] Margins for the autoscale mode.
Closes #337
2022-11-25 12:03:43 -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 1df9d1da46 [PcbDraw][PCB_Print] Removed all PcbDraw convert.py usage
- Currently not needed
2022-10-28 13:41:33 -03:00
Salvador E. Tropea 700bf5bff3 [PcbDraw][Print_PCB] Fixed issues when LXML isn't installed
- Moved PcbDraw import after the tool check
2022-10-28 13:03:30 -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 8ec4d481c0 [Package] Moved all resources to a central place
- All KiBot resources are now under kibot/resources
- PcbDraw resources are now in kibot/resources/pcbdraw
- All resources can be loaded relative to the script or from
  /usr/share/kibot
- The Debian package installs the resources in /usr/share/kibot
- The Python manifest includes all resources
- PcbDraw is now detected as a Python package
2022-10-19 13:05:56 -03:00
Salvador E. Tropea 4b0965fc4d [PcbDraw] Added option to control the size detection
- Now we can use the full method found in newer versions
- But we can also use simpler methods that are usable and needs
  less dependencies (also they are faster)
2022-10-19 08:05:06 -03:00
Salvador E. Tropea 801f7f5183 [PcbDraw] Avoid loading the PCB for each call to PcbDraw 2022-10-18 11:08:57 -03:00
Salvador E. Tropea c16fb7144e [PCB_Print] Replaced external PcbDraw
- Using the internal module
2022-10-18 07:53:12 -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 5d6362f620 [Install checker] Added preliminar help for Arch Linux packages
- Not yet tested
2022-09-24 20:06:08 -03:00
Salvador E. Tropea 7ed371cd50 [Pcb_Print] RSVG 2.54 seems to solve scale issues
- So now we adjust the scale according to the resulting size,
  instead of assuming RSVG will do it always wrong.
2022-09-23 12:34:54 -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 409640c681 Starting to add an output to create PCB variants
- WIP, some part is working
2022-09-08 13:54:37 -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