Commit Graph

1572 Commits

Author SHA1 Message Date
Salvador E. Tropea d8f3b45d7c Merge branch 'dev' into kiri_integration 2023-12-05 13:23:08 -03:00
Salvador E. Tropea c60d420719 [Copy Files][Project][Fixed] Problems with locally edited syms
See #491
2023-12-05 12:39:30 -03:00
Salvador E. Tropea 02a23345dc [Fixed] GS.copy_project return value when no project
Introduced in last patch
2023-12-05 08:58:10 -03:00
Salvador E. Tropea e1cdfcc712 [QR lib][Fixed] Project options not preserved
i.e. set_text_variables failing
2023-12-05 08:42:27 -03:00
Salvador E. Tropea 110053dca1 Operations that copies the project now also copies the PRL 2023-12-05 08:40:14 -03:00
Salvador E. Tropea a8c865b921 [Global options][Added] `restore_project` now also restores the PRL 2023-12-05 08:20:49 -03:00
Salvador E. Tropea 83e15f8209 [QR Lib][Fixed] Interference with plot outputs
When used from the preflight the name of the file changed to the name
of a temporal, generating problems with the plot outputs, like
pcb_print
2023-12-05 08:20:09 -03:00
Salvador E. Tropea 2f432abc38 [QR Lib] Better attributes
- Footprints: now they are flagged with exclude from BoM and Pos, also
  with no court yard requirements for KiCad 7
- Symbols: Excluded from simulation for KiCad 7
2023-12-05 08:20:01 -03:00
Salvador E. Tropea 79d929275c [QR Lib][Fixed] Interference with plot outputs
When used from the preflight the name of the file changed to the name
of a temporal, generating problems with the plot outputs, like
pcb_print
2023-12-04 13:54:26 -03:00
Salvador E. Tropea 3a2d9680ae [QR Lib] Better attributes
- Footprints: now they are flagged with exclude from BoM and Pos, also
  with no court yard requirements for KiCad 7
- Symbols: Excluded from simulation for KiCad 7
2023-12-04 13:30:04 -03:00
Salvador E. Tropea 20dd4f25d5 [DOCs][Added] drc_exclusions_workaround mention in DRC help
See #525
2023-12-04 07:34:09 -03:00
Salvador E. Tropea e06089cfcd [KiRi] Changed to make newer green
So we get green/red like with other diff tools
2023-12-01 13:09:26 -03:00
Salvador E. Tropea a40ca80ead [KiRi] Commented out unused code
The one to generate initial files/layers
2023-12-01 13:08:20 -03:00
Salvador E. Tropea 4fb3870d12 [KiRi] Avoid including data in the HTML that will be replaced
The JS changes various things at start-up, in particular:
- List of layers
- List of sheets
2023-12-01 09:53:17 -03:00
Salvador E. Tropea a291a8fde1 [KiRi] Force image generation unless the user asked otherwise 2023-12-01 09:15:03 -03:00
Salvador E. Tropea 2737da234c [KiRi] Better layer colors solution
Now we generate a style sheet *layer_colors.css* containing the
colors.
2023-12-01 08:47:21 -03:00
Salvador E. Tropea 590c6db929 [KiRi] Patching the JS to get the selected colors
This approach isn't good, will look for a CSS solution
2023-12-01 08:06:20 -03:00
Salvador E. Tropea da30cc4445 [KiRi][Added] Option to keep generated hashes 2023-12-01 08:05:43 -03:00
Salvador E. Tropea 49ddfa505d Experimental KiRi integration
Very raw, but working
2023-11-30 11:06:32 -03:00
Salvador E. Tropea eb37077843 [Internal Templates][Added] _KIBOT_PLOT_FOOTPRINT_REFS/VALUES
For some reason JLCPCB has VALUES disabled, now the user can
choose it.

Closes #523
2023-11-30 06:36:20 -03:00
ac 3d16604f37 Base the `ori` path of a sheet off of the `ori` path of the parent sheet. 2023-11-25 21:09:36 +10:00
Salvador E. Tropea e686d9b6bb [Copy Files][Added] Mode to export the whole project
SCH, PCB, symbols, footprints, 3D models and project files

Closes #491
2023-11-24 09:09:17 -03:00
Salvador E. Tropea 46c1ff5dd1 [Copy Files][Fixed] Warnings when using the STEP and WRL files
The code tried to add their counterpart, that was already used,
generating a repetition
2023-11-23 10:50:33 -03:00
Salvador E. Tropea 2581c84d09 [Copy Files][Fixed] Missing KiConf initialization
Could make 3d_models copy fail to detect subdirs
2023-11-23 10:19:02 -03:00
Salvador E. Tropea cbc196f37a [CLI][Added] Options to list rotation and offset adjusts
Mainly oriented for JLCPCB
2023-11-22 12:47:48 -03:00
Salvador E. Tropea a76b4771c4 [Rotation Filter][Added] rotations_and_offsets option
Implements a more flexible mechanism to select rotations and offsets.
So you can have two different rotations applied to the same footprint,
i.e. different components with the same footprint but different
orientation in the reel.
2023-11-17 10:46:59 -03:00
Salvador E. Tropea 623231be8d [Fixed] Missing implementation of include_components_from_pcb 2023-11-17 10:43:03 -03:00
Salvador E. Tropea 1c5dc60e43 [Rotation Filter][Fixed] Double rotation
- From field and database
- Also added much more detailed debug information when using level >= 2
2023-11-17 08:55:15 -03:00
Salvador E. Tropea 8dbf37f479 [Globals][Added] include_components_from_pcb
To get the old behavior that ignores components that are only in the
PCB
2023-11-17 08:17:46 -03:00
Salvador E. Tropea e49f6702ff [Rotation Filter][DOCs] Documented how angles and offsets are interpreted 2023-11-17 08:10:55 -03:00
Salvador E. Tropea 407f7b0508 [Rotation Filter][Fixed] Offset sign when using fields
To match the plugin we are using as reference
2023-11-17 07:45:51 -03:00
Salvador E. Tropea a142a76585 [Fixed][KiCad 5] No footprint properties are available 2023-11-16 13:05:57 -03:00
Salvador E. Tropea cd447710ae [Templates][JLCPCB] Added DNF filter for the position
Used to exclude KiKit panel components

See #516
2023-11-16 12:35:17 -03:00
Salvador E. Tropea ff03417926 [Fixed] Missing data in components added from PCBs 2023-11-16 11:24:23 -03:00
Salvador E. Tropea b8db64e6e7 Cosmetic comment change
Environment variable in ``
2023-11-16 11:16:16 -03:00
Salvador E. Tropea a53f123939 [Variants and Filters] Include components from the PCB
When a component is in the PCB, but not in the schematic, it can be
now processed by the filters.
2023-11-16 09:01:10 -03:00
Salvador E. Tropea 91e6e14a88 [Position][Removed] exclude_strange_footprints option
- It doesn't allow granular control over what is excluded
- Another mechanism is needed
2023-11-16 08:49:58 -03:00
Salvador E. Tropea a2607450a1 [DOCs][Fixed] Typo in panelization output
From #517
2023-11-15 13:41:22 -03:00
Salvador E. Tropea 45c5d2c7eb [DOCs][Added] backticks to text replacement variables
This is based on the #517 PR, but applied to the source code
2023-11-15 13:39:54 -03:00
Salvador E. Tropea d06dbbdf78 Avoid warnings about KiKit auxiliary footprints
They will never be part of the schematic, even when they aren't marked
as excluded from the schematic
2023-11-15 12:51:40 -03:00
Salvador E. Tropea 37f8a7067c [Position][Added] Option to remove KiKit auxiliary footprints
- Enabled by default
- KiKit is failing to mark them properly

Solves #516
2023-11-15 12:47:33 -03:00
Salvador E. Tropea 05ca6f72bd [Rotation Filter][Added] Support for offsets
- In the database
- Specified in the YAML
2023-11-15 09:53:14 -03:00
Salvador E. Tropea 6b040af849 [Rotation Filter][Added] More comments about rotations 2023-11-15 07:26:14 -03:00
Salvador E. Tropea 96dcaa1c28 [Rotatio filter][Added] More rotations
From the current https://github.com/matthewlai/JLCKicadTools/blob/master/jlc_kicad_tools/cpl_rotations_db.csv
2023-11-14 13:37:47 -03:00
Salvador E. Tropea 08b1e5f7b8 [Rotation Filter] Fixes and extensions for JLCPCB
- Fixed the JLCPCB template to apply correct rotations to the bottom
  components
- Added options to specify rotations and offsets using fields
- Added an option to mirror the bottom rotation angles
- Needs verifications for the offset stuff

Related to #510
2023-11-14 11:07:12 -03:00
Salvador E. Tropea a398b7b0bc [Position][Fixed] Problems when using NET_NAME(n) for a value
Fixes #511
2023-11-08 10:13:32 -03:00
Salvador E. Tropea a98b46195c [3D models][Download] Catch Easy EDA errors
- Print an error and continue
Fixes #515
2023-11-07 09:48:51 -03:00
Salvador E. Tropea 76f168fb45 [SCH][Added] Save of unit_name attribute 2023-11-06 13:27:29 -03:00
ac 54c8c4d3ee Unit name handler added for v6_sch module. 2023-11-06 13:14:25 -03:00
Salvador E. Tropea a8c0a207ef [Added] Support for STEP files downloaded from EasEDA
Related to uPesy/easyeda2kicad.py#82
2023-10-19 12:34:34 -03:00
Salvador E. Tropea ad361fda12 [Fixed] Removed debug print 2023-10-18 12:48:25 -03:00
Salvador E. Tropea 3cd644d19d [Blender export][Added] Support for pcb2blender 2.7
- Solder mask and silk screen color
- PCB finish
- PCB thickness
2023-10-11 13:08:10 -03:00
Salvador E. Tropea f3ef187520 [Fixed] Another missing case in the last patch 2023-10-09 10:21:50 -03:00
Salvador E. Tropea a20ba7aaa8 [Fixed] Check for global option in last patch 2023-10-09 10:05:44 -03:00
Salvador E. Tropea 1a5b52dacf [Global options][Added] `layer_defaults`
- To specify the default suffix and description.

Closes #504
2023-10-09 09:51:35 -03:00
Salvador E. Tropea d67f7aa3b4 [Blender Export][Fixed] Extra space in light type names
Fixes #505
2023-10-09 06:40:19 -03:00
Salvador E. Tropea d0c489e2cc [Position][Added] Experimental support for gerber position files
Closes #500
2023-10-02 12:36:16 -03:00
Salvador E. Tropea bd081609d5 [QR Lib][Added] Clarification about the output name 2023-10-02 12:29:43 -03:00
Salvador E. Tropea c216d4bfde [Sub PCBs][Fixed] Using annotation method
- For some edeges and KiCad versions

Closes #496
2023-10-02 10:05:33 -03:00
Salvador E. Tropea 12151a7356 [QR Lib][Added] Error when the symbol and footprint libs collide
- Also more detailed explanation for the output option

Related to #483
2023-09-28 13:17:15 -03:00
Salvador E. Tropea dc3628eaa1 [BoM][Added] `parse_value` can be used to disable the *Value* parser
- Better explanation about what affects group_fields
- Added warning about extra information in the value

See #494
2023-09-28 11:18:49 -03:00
Salvador E. Tropea 549385a139 [3D outputs][Added] Option to disable LCSC 3D model download
- `download_lcsc`
 See #415
2023-09-24 19:50:30 -03:00
Salvador E. Tropea e6a8677cef [Fixed] The --log/-L didn't enabled full debug for all messages
- Only GS.debug_level changed, but not the internal log.debug_level
2023-09-24 17:23:01 -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 b6815b6a94 [Panelize][Added] Expand text variables and KiBot %X markers
- in text objects

Related to #497
2023-09-24 17:13:33 -03:00
Salvador E. Tropea 9ce2321890 [BoM][Fixed] LCSC links
- Missing .html
2023-09-12 13:44:00 -03:00
Salvador E. Tropea e88df7f595 [Internal Templates][Added] 4 templates for simple 3D render using Blender 2023-09-08 13:08:05 -03:00
Salvador E. Tropea 6c2ec777a3 [Blender export][Added] Traceback when Blender provides it 2023-09-08 12:52:42 -03:00
Salvador E. Tropea 16d0aef8a0 [Fixed] Missing warning 132 definition 2023-09-08 11:22:39 -03:00
Salvador E. Tropea 565c3152d9 [Added] Warning for wrong dir/output separation
Seen on #493
2023-09-08 10:52:10 -03:00
Salvador E. Tropea ca3860c784 [Dependencies] Made KiKit point to our fork
- The release has bugs and is 1.3.0 < 1.3.0.8
2023-09-06 12:51:33 -03:00
Salvador E. Tropea e5e9c370ae [Added] Suffix for disabled layers when reporting them 2023-09-05 13:25:58 -03:00
Salvador E. Tropea 694fa02c6b [Dep Download][Fixed] Problems when connection timed-out
- Missing return variable
2023-09-05 06:52:21 -03:00
Salvador E. Tropea 92ea7ea193 [Added] Message to clarify which KiCad 5 files are mixed
with the KiCad 6+ files
2023-09-04 13:43:07 -03:00
Salvador E. Tropea 390da80f7c [BoM][Added] LCSC links
From SchrodingersGat/KiBoM#190
2023-09-01 13:51:15 -03:00
Salvador E. Tropea 91f5bb81da [DOCs] Added a very visible warning about `-s all`
- In the set_text_variables
2023-09-01 13:45:29 -03:00
Salvador E. Tropea 32fff15a5c Added help for the error levels 2023-08-30 13:59:35 -03:00
Salvador E. Tropea 572204a5b2 [Update XML][Fixed] Error when using "Exclude from BoM" (KiCad 6)
- Parity for these components can't be checked. KiCad 7 fixes it.
  Now we just print a warning.
- Also fixes *exclude_from_bom* mismatch on KiCad 7
- Also fixes *Sheetfile* mismatch on KiCad 7 when testing from different
  directory

Fixes #486
2023-08-30 09:22:01 -03:00
Salvador E. Tropea 575eade044 [DOCs] Fixed missing f-string marker 2023-08-29 13:29:22 -03:00
Simon 94507fb7df [Panelize][Add] Dimensions 2023-08-29 13:22:14 -03:00
Salvador E. Tropea 9915bbd7ae [Help] Small fixes
- To keep the output similar to previous behavior
- Also adapted some tests to new markup
2023-08-29 09:45:17 -03:00
Salvador E. Tropea dacd98fbc4 Removed debug print 2023-08-29 09:09:37 -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 916dab395e [DOCs][DXF] Made the docstring indentation coherent
Now is the same as other "any layer" docstrings
2023-08-29 07:50:37 -03:00
Salvador E. Tropea 5c9d6a22cf [DOCs][KiBoM] Removed bogus link (see '') 2023-08-29 07:49:42 -03:00
Salvador E. Tropea 0a5ab281fe [DOCs][Update XML] KiCad 6 -> KiCad 6+
Related to #486
2023-08-29 07:48:07 -03:00
Salvador E. Tropea 5bffb57b73 [DOCs][Filters][Added] Descriptive name 2023-08-22 09:36:57 -03:00
Salvador E. Tropea 9e8c346d35 [Blender Export][Added] Camera option to set the clip start
- Note that this is also a fix because now we compute the clip start
  for cameras with automatic position.

Closes #484
2023-08-22 09:04:37 -03:00
Salvador E. Tropea ffba8566fd [DOC][Filter][Spec to Field][Fixed] Important mark for spec/s
The `*` was in the wrong position
2023-08-22 09:00:21 -03:00
Salvador E. Tropea 17df07c243 [Blender export][Fixed] Call to get_output_filename
- Missing order argument
2023-08-16 14:04:07 -03:00
Salvador E. Tropea 948a40fb91 [Blender Export][Added] Options useful to generate simple animations
- The resulting PNGs can be converted to MP4 using ffmpeg
2023-08-16 13:36:19 -03:00
Salvador E. Tropea 4202f01c01 [Populate][Added] Basic support for regular list items
Closes #480
2023-08-15 12:45:00 -03:00
Salvador E. Tropea 49973b49cb [Flake8] Small changes suggested by flake8 5.0.4 2023-08-11 13:33:54 -03:00
Salvador E. Tropea 6f3dd0cabc [Blender Export] Added support for pcb2blender 2.6
- This is for Blender 3.5.1
2023-08-11 13:32:35 -03:00
Salvador E. Tropea cce2ba27ef [Dep Downloader][Added] Partial workaround for broken pip
- On Debian 12 pip installs to _root_/_prefix_/*local*/_dir_
  and not _root_/_prefix_/_dir_.
2023-08-10 12:51:04 -03:00
Salvador E. Tropea 7bc3f11a2b [Dep Downloader] Added support for PEP668 compliant Debian pip 2023-08-10 09:20:02 -03:00
Salvador E. Tropea 73097d7963 Dropped Python 2.x support in included libs
There is no point in having it and complicates the compatibility
detection.
2023-08-08 12:27:06 -03:00
Salvador E. Tropea 98346bcf39 Fixed use of Python 3.9 in populate.py 2023-08-08 11:25:54 -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 973522d462 [Global options][Fixed] Solder mask restore for graphics 2023-08-04 12:37:09 -03:00