Commit Graph

1502 Commits

Author SHA1 Message Date
Salvador E. Tropea 2f8e416f06 [PCB/SCH Parity] Added support for bogus net codes
Fixes #410
2023-03-31 07:43:31 -03:00
Salvador E. Tropea 158f267eb5 Support for extra data in the Value field
- Currently we just use the tolerance for the 3D resistors
- Uses a port of the JavaScript Electro-Grammar
2023-03-30 12:39:36 -03:00
Salvador E. Tropea 9f2564b80c [Diff][Fixed] Problems when using an output and no variant specified 2023-03-29 07:03:23 -03:00
Salvador E. Tropea 895d852ed2 [Cosmetic] unkown -> unknown 2023-03-28 11:22:19 -03:00
Salvador E. Tropea 921f5260c5 [Any Layer] Reverted the error on unknown
- An old option we keep for compatibility
2023-03-28 11:17:07 -03:00
Salvador E. Tropea 1d91a3e80a [Cosmetic] Moved code to GS
- To concentrate KiCad nuisances there
2023-03-28 10:48:31 -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 bb475ad75a [Any Layer] Enabled scaling for most plot outputs
- Only the gerber is excluded
- The new `individual_page_scaling` option is also available
- Now unknown options are treated as errors
2023-03-28 08:39:25 -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 71ff354b9b [PcbDraw][Fix] Variable collision in last patch 2023-03-27 11:21:40 -03:00
Salvador E. Tropea 5f416063be [PcbDraw][Fixed] Support for 7.0.1 polygons
- Now KiCad generates polygons in the SVG
Fixes the problem reported in upstream: yaqwsx/PcbDraw#142
2023-03-27 10:53:33 -03:00
Salvador E. Tropea d9cca11384 [Dependency Downloader][Fixed] Problems with Ghostscript 10 release
- No Linux binaries are currently available
2023-03-27 09:20:03 -03:00
Salvador E. Tropea 762d96d0e8 [Download Datasheet] Better message warnings
- Unified
2023-03-27 08:51:55 -03:00
Salvador E. Tropea f7d52f3d09 [Datasheet dowload] Catch requests.exceptions.TooManyRedirects
Closes #408
2023-03-27 08:22:39 -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 c94b03042c [PcbDraw][KiCad 5] Disable tolerance look-up
- No properties in footprints
2023-03-21 06:53:09 -03:00
Salvador E. Tropea 05105cdc9a [3D] colored 3D models for THT resistors 2023-03-20 14:26:09 -03:00
Salvador E. Tropea e6ee30a004 [DOCs] Documented the PcbDraw changes 2023-03-20 14:19:53 -03:00
Salvador E. Tropea 0361c38d9d [PcbDraw] Various changes in resistor color bands
- Added support for values between 0.01 and 10 ohms
- Avoid crash for R<0.01 ohms
- Added support for 20% tolerance
- Added support for tol/tolerance property
- Fixed Decimal division by float
- Changed default tolerance to 20%. I know this isn't reality,
  but if we don't know the tolerance is better to just let it
  blank (20% is this).
2023-03-20 14:15:46 -03:00
Salvador E. Tropea 2d39890482 [KiKit present][Fixed] Crash when no boards specified
Fixes #402
2023-03-18 19:04:59 -03:00
Salvador E. Tropea a9ca2f3f11 [Makefile][Fixed] don't skip all preflights on each run
- Just the ones we generate as targets.

Fixes #405
2023-03-18 18:41:15 -03:00
Salvador E. Tropea 3a5519c0e5 Bumped version to 1.6.2
- Just to make it different
2023-03-17 10:47:26 -03:00
Salvador E. Tropea d88830948f [DOCs] Blender export needs KiCad 6 or newer
- Also checks in the code
2023-03-16 09:26:54 -03:00
Salvador E. Tropea 2ebaea16ab Added errors and warnings about KiCad 7 bugs 2023-03-16 07:19:59 -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 3e283c9906 Avoid courtyard warnings
- When the user explicitly said the component doesn't have it
  New on KiCad v7
2023-03-08 10:21:41 -03:00
Salvador E. Tropea 367a00334d [Dependency checker] Bumped KiKit version to 1.3.0.4
- Upstream 1.3.0 is severely broken
2023-03-06 13:47:38 -03:00
Salvador E. Tropea e27753a8d6 [Tests] Added KiKit tests
- stencil 3D, steel stencil and panel
- Bumped dependency to 1.3.0, needed for KiCad v7
  A patched version is needed ...
2023-03-03 10:53:23 -03:00
Salvador E. Tropea d656b338b2 Abort when a .sch and .kicad_sch of the same name are detected
Closes #397
2023-03-02 11:11:43 -03:00
Salvador E. Tropea 957c398500 [DOCs] Made clear we support .sch and .kicad_sch 2023-03-02 11:11:02 -03:00
Salvador E. Tropea f946d75fdb [PcbDraw] Updated to match v1.1.2 (libs) 2023-03-01 09:10:45 -03:00
Salvador E. Tropea 818b431cac Fixed worksheet import
- Moved functions to sexp_helpers
2023-02-28 14:13:53 -03:00
Salvador E. Tropea 70d716e561 [3D Models] Added support for models relative to libs
- New on KiCad v7, but will work for olders
2023-02-28 14:00:55 -03:00
Salvador E. Tropea 6c46b240cf [Config] Fixes get_fp/sym_lib_aliases usage for fname=None 2023-02-28 13:58:43 -03:00
Salvador E. Tropea 12227608c4 Added missing files 2023-02-28 13:57:57 -03:00
Salvador E. Tropea 74a27b3036 [Config] More robust sym-lib-table parser
- Now loads on-the-fly (not needed for KiCad v6+)
- Uses s-expressions parser, no regex
- Can recreate the global table for KiCad v6+
2023-02-28 13:33:41 -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 b16bb533ea [PCB Print] Simplified the mechanism to hide zones
- Just UnFill() them
2023-02-27 10:46:52 -03:00
Salvador E. Tropea 6693d29309 Merge branch 'dev' of https://github.com/INTI-CMNB/KiBot into dev 2023-02-27 10:31:02 -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 774cb7a673 [Windows] Use os.pathsep instead of ':'
- Good idea by MDW mentioned in #392
2023-02-25 14:50:24 -03:00
Salvador E. Tropea 94264726d7 [DRC] Ensure KiCad 7 vars are defined before DRC 2023-02-24 18:46:43 -03:00
Salvador E. Tropea 3707db83a9 [KiCad 7] Allow using KICAD6_ and KICAD7_ 2023-02-24 14:01:12 -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 453d3482fe [DOCs] Added more clarification to the print outputs
- Marked PDF/SVG PCB Print as deprecated. They work even worst on
  KiCad 7 and the problems are OS dependent.
- Made clear that "SVG Schematic Print" is a "Plot"
- Updated dependencies
2023-02-22 13:40:24 -03:00
Salvador E. Tropea fe26f1ab6a Problems to detect the SCH under very particular constraints
Fixes #394
2023-02-22 13:04:45 -03:00
Salvador E. Tropea 3ddca189f2 [Schematic][KiCad 7][Added] Support for do_not_autoplace and show_name
- New field (properties) options
2023-02-17 11:19:06 -03:00
Salvador E. Tropea 37e5e5fe95 [Report] Adapted to the new color names
- Much longer because they are the dielectric name
2023-02-17 10:50:47 -03:00
Salvador E. Tropea 12dbd16983 [Schematic][KiCad 7][Added] Support for arc, circle, rectangle and text_box 2023-02-17 10:15:53 -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 28ef08c00a [Update XML][KiCad 7] Enabled the board parity check
- Needs a patched KiCad, waiting for patch aproval (Bug 13921)
2023-02-16 09:16:52 -03:00
Salvador E. Tropea 4a440078ae Moved all IU -> SVG stuff to GS 2023-02-15 10:07:49 -03:00
Salvador E. Tropea ca3f76f3b8 [SVG][KiCad 7] Fixed viewbox adjust
- Must be float values as they are mm now
2023-02-15 06:58:04 -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 6b5782c3ab [SVG][KiCad 7] Adapted to v7 API 2023-02-14 14:11:04 -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 68e6e5f825 [Worksheet][KiCad 7] Adapted image scale (to mm) 2023-02-14 12:45:36 -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 55086c5def [Worksheet] Adapted polypoints to v7 arguments 2023-02-14 12:29:38 -03:00
Salvador E. Tropea f84b49bd2a [Preflight][KiCad 7] Updated preflight references and tests
- Disabled PCB parity, API broken
2023-02-14 12:28:07 -03:00
Salvador E. Tropea 28390c9f6f [PCBDraw] Fixed KiCad 5 problems
- pcbnewTransition 0.3.2 wasn't fully coimpatible with v5
2023-02-14 08:17:29 -03:00
Salvador E. Tropea b41991edde [PCBDraw] Added missing pcbnewTransition file 2023-02-14 07:35:32 -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 c65037be0b [PCBDraw][KiCad v7] Applied upstream patches 2023-02-14 07:06:49 -03:00
Salvador E. Tropea 2dc3207201 [KiCad 7] Added support for the new VECTOR_FP_3DMODEL 2023-02-13 13:45:19 -03:00
Salvador E. Tropea 510909c96b [Diff] Added KiCad 7 support
- I'm not satisfied with the current results
2023-02-13 13:11:17 -03:00
Salvador E. Tropea e2cb506094 [Worksheet][KiCad 7] Adapted for the new VECTOR2I 2023-02-13 11:19:42 -03:00
Salvador E. Tropea aeeba4f006 [Report][KiCad 7] Blind/Micro vias doesn't seem to be available 2023-02-13 11:17:17 -03:00
Salvador E. Tropea f3a003dc04 [Worksheet] Adapted to the new justify constants 2023-02-13 10:38:19 -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 f0f889ec43 [QR Lib] Added support to detect KiCad 7 subsheets
- Stupid name change
2023-02-13 10:32:48 -03:00
Salvador E. Tropea 9fd92c7361 Removed extra debug log 2023-02-13 09:51:12 -03:00
Salvador E. Tropea 2d9f7b702f [Any Layer] Added support for reading edge on all layers in KiCad 7 2023-02-13 08:31:16 -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 6bb9a0796e [Any Layer][Fixed] KiCad 7 doesn't have SetExcludeEdgeLayer
- The alternative doesn't work
2023-02-10 12:54:32 -03:00
Salvador E. Tropea b97c180d15 [Fixed] Symbol instances in sub-sheets 2023-02-10 10:15:33 -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 1c8042dd1e [Fixed] KiCad units must be integers 2023-02-10 10:10:53 -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 0b748e1d9d [Added] Basic support reading and writing v7 schematics 2023-02-10 09:12:59 -03:00
Salvador E. Tropea e92da81882 [KiCad 7] Added KICAD7_* variables expansion 2023-02-09 09:29:06 -03:00
Salvador E. Tropea 7d597b3629 [KiCad 7] Added support for the version in sym-lib-table 2023-02-09 09:23:33 -03:00
Salvador E. Tropea b7897baf87 Added KiConfError error handling during output generation 2023-02-09 09:12:21 -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 cb0465bcde Bumped version to 1.6.1
- Just to make it different
2023-02-06 13:15:46 -03:00
Salvador E. Tropea 943d6008d0 Bumped version to 1.6.0
- Updated the docs
2023-02-06 09:12:36 -03:00
Salvador E. Tropea 129889a0f5 [Dependency Downloader] Fixed last patch (arguments) 2023-02-06 07:22:12 -03:00
Salvador E. Tropea aa7c8145dd [Tests][Dependency Downloader] Added retries on 403
- GitHub randomly generates it
2023-02-06 07:01:06 -03:00
Salvador E. Tropea 624f7ff68f [3D download] Fixed cases where we have no components from the SCH 2023-01-31 13:31:59 -03:00
Salvador E. Tropea df085fa8bc Added mechanism to download 3D models from EasyEDA
- Using LCSC codes

Closes #380
2023-01-31 13:12:06 -03:00
Salvador E. Tropea 305bfb7d0c [PCB2Blender] Fixed problems with components with some values
- That includes invalida characters for a file name
2023-01-31 13:03:43 -03:00
Salvador E. Tropea fd6f225a72 [K6 3D Model aliases] Avoid confusing the Windows drive letter
- C:.... looks like ALIAS = C
2023-01-31 13:02:35 -03:00
Salvador E. Tropea 4db3788830 [LCSC field] Fixed the detection
- Randomly confused the reference
2023-01-31 13:00:58 -03:00
crides 6b89f42399 don't show warning if footprint has attribute "not in schematics" 2023-01-30 08:43:33 -03:00
Robin Modisch 353614a6ab fix typo 2023-01-30 08:41:14 -03:00
Salvador E. Tropea 71f72f2746 [KiBoM] Fixed the column name in last patch 2023-01-28 18:24:16 -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 aa56322241 [3D][Changed] Downloaded 3D models are no longer discarded
- They are stored in ~/.cache/kibot/3d
- You can change the directory using KIBOT_3D_MODELS
2023-01-28 11:26:34 -03:00
Salvador E. Tropea 96822923b4 [3D][Added] A mechanism to cache downloaded 3D models 2023-01-27 12:12:16 -03:00
Salvador E. Tropea 5e34697471 [DOCs] Added link to KiCOst CI/CD example 2023-01-27 11:38:31 -03:00
Salvador E. Tropea 9f0c527667 [Blender Export] Fixed when no camera 2023-01-27 11:34:19 -03:00
Salvador E. Tropea d0c63f8a59 [Blender Export][DOCs] More clear how to get auto position 2023-01-27 11:33:41 -03:00
Salvador E. Tropea 193f1e3a53 [Blender export] Added orthographic camera 2023-01-27 11:20:54 -03:00
Salvador E. Tropea 9d7426f3a2 [VRML] Also download the WRL
- When we download a STEP file
2023-01-27 00:20:30 -03:00
Salvador E. Tropea 171eeae099 [Blender Export] Remove solder paste for "not shown" components
- Can be disabled
2023-01-26 23:13:51 -03:00
Salvador E. Tropea e16086ca70 [Blender Export] Now can be used as renderer
- Tested with kikit_present and populate
- Also added `auto_crop`
2023-01-26 18:13:38 -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 19588f1d61 [Blender Export] Some fixes to the targets and dependencies 2023-01-24 21:25:42 -03:00
Salvador E. Tropea a7063ea937 [Blender Export] Multiple Point of Views
- Moved the POV options to a separated section
- Allowed to have more than one POV
2023-01-24 20:29:08 -03:00
Salvador E. Tropea f860b7eb11 [Blender Options] Moved the point of view options to Render Options
- So we can have more than one
2023-01-24 18:05:25 -03:00
Salvador E. Tropea bf5ae1a3fd [Blender Export][Fixed] Main options must inherit from BaseOptions 2023-01-24 17:48:59 -03:00
Salvador E. Tropea f6251deb86 [Blender Export] Fixed file ID
- Now we don't inherit from 3D base
2023-01-24 16:18:07 -03:00
Salvador E. Tropea 87aa2565d0 Moved some repeated code to kiplot.py 2023-01-24 16:13:16 -03:00
Salvador E. Tropea 4e194306d1 [Blender Export] Added PCB3D generation
- Also control over which components are included
- Also highlight components
2023-01-24 16:00:49 -03:00
Salvador E. Tropea 72eb6e9f90 [VRML] Added options to select and highlight components
- Uses the same code as render_3d
2023-01-23 18:44:17 -03:00
Salvador E. Tropea 525deaadff [DRC] Changed "errors" to "violations"
- Because they include warnings
2023-01-23 14:44:30 -03:00
Salvador E. Tropea 910777735f [DOCs] Clarified how KiCad 6 warnings are counted
Closes #374
2023-01-23 14:20:38 -03:00
Salvador E. Tropea b0a2c7af88 [Navigate Results] Added blender icons
- Also moved pads information to an "Auxiliar" section
2023-01-20 14:19:25 -03:00
Salvador E. Tropea 47bdc26154 [Report][Added] Expansion for KiCad text variables and environment variables 2023-01-19 21:05:32 -03:00
Salvador E. Tropea 2ba55ba817 [Blender Export] Moved the Z position of auto-camera
- 10% to avoid going too close for small PCBs
2023-01-18 20:18:29 -03:00
Salvador E. Tropea 02608daed8 [Blender Export] 30deg -> _30deg in ID 2023-01-18 20:17:42 -03:00
Salvador E. Tropea 43746ed801 [Blender Export] Added blender file to quick-start
- For easier debug
2023-01-18 20:13:53 -03:00
Salvador E. Tropea eaa61b7c08 [Blender Export] Fixed %i value
- Must include the View like in render_3d
2023-01-18 20:12:59 -03:00
Salvador E. Tropea 9f436a5294 [Presentation] Fixed file permissions
- When creating using a local render
2023-01-18 19:50:13 -03:00
Salvador E. Tropea b6240d5fea [Copy Files][Fixed] Problems when using with `compress`
- Wrong targets and dependencies.
2023-01-18 15:09:10 -03:00
Salvador E. Tropea b868a55d20 [Copy files][Added] Error message when copying files over itself 2023-01-18 14:13:17 -03:00
Salvador E. Tropea e182ab75b8 Added debug for case sensitive differences in file name
Related to #366
2023-01-18 13:50:21 -03:00
Salvador E. Tropea d61cd013b2 [Blender export][Fixed] get_target 2023-01-17 20:59:39 -03:00
Salvador E. Tropea 2f2ac6f8ae [VRML][Fixed] Problems with missing 3D models and targets 2023-01-17 20:35:21 -03:00
Salvador E. Tropea 16e61e6f23 [DOCs] Added examples and warnings about spaces in names
- For the replace pre-flights

Related to #366
2023-01-17 15:40:32 -03:00
Salvador E. Tropea eb8c04f870 [Blender Export] Added Blender render
- Impressive quality thanks to the pcb2blender plug-in
2023-01-16 23:42:52 -03:00
Salvador E. Tropea e6059c6508 [DOCs] Added warning about PcbDraw and complex PCBs 2023-01-16 20:37:37 -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 b8529e7b6f [Set Text Variables] Added more debug information 2023-01-16 12:48:31 -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 de1bdb6cf7 [Patterns expansion] Added %C5 to %C9 to the list of detected 2023-01-12 18:34:18 -03:00
Salvador E. Tropea 6554393bd9 [PCB_Print][Fixed] Problems when trying to use groups of layers
- i.e. copper
2023-01-12 17:18:47 -03:00
Salvador E. Tropea f8eb021098 [SCH_Print] Added PS, DXF and HPGL formats 2023-01-12 00:30:38 -03:00
Salvador E. Tropea 0f5ada05ee [SCH_Print] Added color theme and color background options
See #362
2023-01-11 20:11:53 -03:00
Salvador E. Tropea 7fc02734b8 [Tests][Fixed] Missing fix in optionable 2023-01-10 15:11:05 -03:00
Salvador E. Tropea db6fa6767a [DOCs][Fixed] annotate_pcb docs and example
- Missing options in docs
- Wrong example

Fixes #360
2023-01-10 15:05:05 -03:00
Salvador E. Tropea c35e218857 [Blender] Added script to load the PCB3D and export various formats 2023-01-09 16:16:17 -03:00
Salvador E. Tropea 62cce4da92 [PCB2Blender] Added support for @Haschtl fork variant 2023-01-07 18:01:45 -03:00
Salvador E. Tropea 1387bbbb49 [PCB2Blender_tools][Fixed] Name for the SilkS SVGs
- Must be the old KiCad 5 name
- Otherwise the importer aborts
2023-01-07 11:34:55 -03:00
Salvador E. Tropea f66f34aebc [PCB2Blender_tools][Fixed] The boards dir must be included
- Even when empty
- Otherwise we get an error from the importer
2023-01-07 11:33:22 -03:00
Salvador E. Tropea 54e4279c5f [PCB2Blender_tool] Added support for board definitions
- This is a sub-PCB mechanism
2023-01-06 19:14:43 -03:00
Salvador E. Tropea e51d59d805 [Fixed] Missleading error on run_with_retry
- The code was intended to run on exit
2023-01-06 19:12:32 -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 f49d679b7c [PCB2Blender_tools][Added] Stackup support 2023-01-06 16:32:58 -03:00
Salvador E. Tropea 466f97a0e3 [PCB2Blender][Fixed] SVGs must be generated without drill marks 2023-01-06 13:39:48 -03:00
Salvador E. Tropea 76bf264350 [Added] PCB2Blender_2_1 template
- Generates pcb2blender 2.1 files to import on Blender
2023-01-06 13:31:55 -03:00
Salvador E. Tropea 59b90283ed [Compress][Added] Option to use the output's `dir` as reference
- `from_output_dir`
2023-01-06 13:16:48 -03:00
Salvador E. Tropea 42f5dcd8d6 [SVG][Added] Options to limit the view box to the used area. 2023-01-05 19:29:31 -03:00
Salvador E. Tropea b2f5612b77 [Filters] Moved _only_smd to be truly internal
- Defined _only_tht and _only_virtual
- Simplified the internal filters generation
2023-01-05 17:52:02 -03:00
Salvador E. Tropea bda5c159ae [Quick-Start] Changes in variants use
- Avoid importing PCB/SCH stuff that isn't needed
- We no longer use variants in Quick-Start, just filters
2023-01-05 14:16:19 -03:00
Salvador E. Tropea 315a089300 [Fixed][BoM] pre_transform filers can't be logic filters 2023-01-05 14:15:25 -03:00
Salvador E. Tropea cb9b353220 [Templates] Added MacroFab XYRS 2023-01-05 14:13:03 -03:00
Salvador E. Tropea d274ada385 [Quick-Start] Recycled the templates for gerbers
- Now we use the internal templates for the Gerber examples
2023-01-05 13:08:49 -03:00
Salvador E. Tropea 1ff0a48596 [Fixed] Import separated code (missing dir) 2023-01-05 10:48:25 -03:00
Salvador E. Tropea c9437e244d [Import] Simplified the templates import
- Now we detect if the name is internal
- A mechanism to skip the detection was added, just in case
2023-01-05 09:33:15 -03:00
Salvador E. Tropea 745e8758ad Added correct detection for unknown outputs/groups inside groups 2023-01-05 08:37:55 -03:00
Salvador E. Tropea 1202351fed [Templates] Moved JLCPCB+stencil to a separated import
- So now the compress target includes the stencil
2023-01-05 08:36:17 -03:00
Salvador E. Tropea bdffcfa508 [Internal templates] Added for all the known manufacturers 2023-01-04 13:47:03 -03:00
Salvador E. Tropea c8ae01c374 [Import] Marked filters from internal imports as internal
- Allows using _* as name
2023-01-04 13:45:17 -03:00
Salvador E. Tropea 5a5967c6b3 [Added] Support for internal imports
- A mechanism to implement templates
- Also fixed some groups import issues
2023-01-04 11:39:48 -03:00
Salvador E. Tropea 17aacf8daf [Added] Support for `groups` of `outputs` 2023-01-04 08:38:21 -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 cfee399110 [Sub-PCB][Added] KiCad 5 workaround
- The GetBoundingBox member returns values with 1 IU of error (1 fm)
- So now we use at least 2 fm of tolerance
2023-01-02 10:42:19 -03:00
Salvador E. Tropea 16cb739ae4 [Copy_Files][Fixed] Problems on KiCad 5
- No 3rd party dir

Fixes #357
2023-01-02 09:47:07 -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 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
Salvador E. Tropea 356c16de83 [Sub-PCBs] When using KiKit now we use preserveArcs 2022-12-28 09:57:38 -03:00
Salvador E. Tropea 728bded7ad [Sub-PCBs] Implementad annotation removal 2022-12-28 09:44:44 -03:00
Salvador E. Tropea 002dba631d [sub-PCB] Implemented the `tolerance` 2022-12-28 09:23:50 -03:00
Salvador E. Tropea 1e3962762c [sub-PCB] Added some comments for the members 2022-12-28 08:54:45 -03:00
Salvador E. Tropea 081932f8bb [sub-PCB] Now you can choose between internal implementation and KiKit 2022-12-28 08:48:50 -03:00
Salvador E. Tropea ae035a4c0e [sub-PCBs] Implemented annotations mode
- Most of the algorithm is an adaptation of what KiKit does, just
  adapted to what we really need here.
- Now separating boards is really fast.
2022-12-28 08:05:18 -03:00
Salvador E. Tropea 983c91be1d [Fixed] Problems when no pcbnew installed
- New code interference with proper detection
2022-12-27 13:45:15 -03:00
Salvador E. Tropea 10accfa4ff [sub-PCBs][Fixed] Problems when we don't have components 2022-12-27 12:48:44 -03:00
Salvador E. Tropea b8dff52fa3 [sub-PCBs] Implemented the rectangle separation
- Notably faster
2022-12-27 12:37:33 -03:00
Salvador E. Tropea 6b432f3de6 [sub-PCBs] Just a debug message when we restore excluded components 2022-12-27 09:10:50 -03:00
Salvador E. Tropea 41c5701d33 [sub-PCB] Avoided saving the PCB before separate
- Now isn't needed because we filter stuff after it
2022-12-27 09:07:33 -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 7760019bf0 [Position] Added support for sub-PCBs 2022-12-26 13:40:47 -03:00
Salvador E. Tropea 89be5dacdd [Populate] Added support for sub-PCBs
- Fixed problems when using variants and sub-PCBs, some changes
  reverted during separation.
2022-12-26 13:04:49 -03:00
Salvador E. Tropea 9da30b2c5e [Panelize] Added sub-PCBs support 2022-12-26 11:06:46 -03:00
Salvador E. Tropea 819555e668 [Netlist] Added support for sub-PCBs 2022-12-26 11:00:06 -03:00
Salvador E. Tropea 3f74105c82 [KiBoM] Added one more warning about variants
- They aren't KiBot variants
2022-12-26 10:48:30 -03:00
Salvador E. Tropea e82049cdea [iBoM] Changed to use will_filter_pcb_components 2022-12-26 10:45:54 -03:00
Salvador E. Tropea 2282334986 [GenCAD] Added support for sub-PCBs. 2022-12-26 10:38:19 -03:00
Salvador E. Tropea c2924ed503 Updated (c) year 2022-12-26 10:36:37 -03:00
Salvador E. Tropea 4d5152032d [Copy Files] Added support for sub-PCBs 2022-12-26 09:48:17 -03:00
Salvador E. Tropea 5dacb969b1 [BoardView] Added sub-PCBs support 2022-12-26 09:33:04 -03:00
Salvador E. Tropea 71f2894ef4 [PDF/SVG PCB Print] Implemented sub-PCBs 2022-12-26 09:06:37 -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 ebabc0b37b [Windows] Fixed problems with os.rename
- Now using os.replace
- It removes the target if already there
2022-12-26 08:02:14 -03:00
Salvador E. Tropea cd89f8b235 [KiBoM][Fixed] Its variants has nothing to do with KiBot 2022-12-22 13:41:01 -03:00
Salvador E. Tropea c9aab5d4cc [Any layer] Added support for sub-PCBs 2022-12-22 13:22:36 -03:00
Salvador E. Tropea ed33913327 [Fixed][Sub-PCBs] Unfilter must be applied even if no _comps 2022-12-22 13:06:16 -03:00
Salvador E. Tropea b4fa74e774 [Fixed] Missing sub-PCB name resolve for pre-flights 2022-12-22 13:00:20 -03:00
Salvador E. Tropea 421dcf34b7 [Added] Sub-PCB support to drill outputs 2022-12-22 12:42:21 -03:00
Salvador E. Tropea b2b528e4ec [Fixed] Some times we need %V, %v, %S before full config
- So now we solve the variant on-the-fly
2022-12-22 12:40:12 -03:00
Salvador E. Tropea 7aac98a239 [PCB variant] Fixed title for sub-PCBs
- Must be applied after filtering
2022-12-22 10:12:32 -03:00
Salvador E. Tropea 6790ccc547 [% patterns] Added %S to get the sub-PCB name 2022-12-22 10:11:46 -03:00
Salvador E. Tropea 11773e920d [Windows][Fixed] Avoid asuming bash is part of the system
Related to #325
2022-12-22 08:44:46 -03:00
Salvador E. Tropea c1f7b8dcff [Windows] Fixed use of /dev/null
- Now using os.devnull
Related to #325
2022-12-22 08:23:56 -03:00
Salvador E. Tropea 648bf49834 [DOCs] Clarified what `multivar` needs in the `diff` output
Related to #353
2022-12-22 07:10:46 -03:00
Salvador E. Tropea 5594fa0b7c [iBoM][Fixed] Variant changes to the *.Fab weren't exported
- Now all 2D variant stuff is applied before calling iBoM

Closes #350
2022-12-19 13:22:11 -03:00
Salvador E. Tropea ccaefd7e90 [iBoM][Added] `hide_excluded` to hide excluded *.Fab drawings. 2022-12-19 13:18:08 -03:00
Salvador E. Tropea 3c501d3054 [iBoM][Fixed] Variant changes to the *.Fab weren't exported
- Now all 2D variant stuff is applied before calling iBoM

Closes #350
2022-12-19 11:26:24 -03:00
Salvador E. Tropea d4047b78c9 [iBoM][Added] `hide_excluded` to hide excluded *.Fab drawings. 2022-12-19 11:22:00 -03:00
Salvador E. Tropea 0f574705cf [Variants][Fixed] _sub_pcb initialization 2022-12-18 18:00:12 -03:00
Salvador E. Tropea da2d5f1001 [Variants] Added some limited support for `kikit separate` 2022-12-18 17:14:38 -03:00
Salvador E. Tropea fafd5d2f6d New VRML output 2022-12-17 20:55:09 -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 6b41f41e93 Bumped version to 1.5.2 2022-12-16 13:42:47 -03:00
Salvador E. Tropea bb4047e748 Changed the system look-up resources patch
- Slightly more portable, not really much
2022-12-16 13:40:35 -03:00
Salvador E. Tropea c1a646aba8 [Fixed] Missing / in system level look-up
- Bumped version to 1.5.1
2022-12-16 12:47:52 -03:00
Salvador E. Tropea b8cb51a996 Bumped version to 1.5.0
- Updated docs
- Fixed Debian dependency
2022-12-16 09:58:42 -03:00
Salvador E. Tropea fe56d5ba64 [KiKit Present][Fixed] Temporal .md is now removed 2022-12-16 09:06:31 -03:00
Salvador E. Tropea 8cc3ff7237 [KiKit Present] Check for markdown2
- Also added as dependency for PyPi
2022-12-16 07:07:56 -03:00
Salvador E. Tropea 52fc3e610f [DOCs] Added example of how to hide KiCost secrets on CI/CD 2022-12-15 14:22:57 -03:00
Salvador E. Tropea 302a762e7a [KiCost] Log version of the imported module 2022-12-15 09:37:06 -03:00
Salvador E. Tropea ae450b15a4 [KiKit Present] Now using the detected git binary
- Also added repository URL detection
2022-12-06 13:36:35 -03:00
Salvador E. Tropea 6b253d3c52 [KiKit Present] Added quick start support
- Also added mechanism to embed the markdown description
- Some adjusts to the help
2022-12-06 12:58:59 -03:00
Salvador E. Tropea b74ed0f66b [Panelize][Fixed] Don't generate Quick Start example if no KiKit 2022-12-06 12:47:43 -03:00
Salvador E. Tropea 83684caf11 [KiKit Present] Implemented external mode and get_targets 2022-12-05 21:27:39 -03:00
Salvador E. Tropea 23593ac477 [KiKit Present] Added Template member to list resources
- To make easier the get_targets implementation
2022-12-05 21:26:16 -03:00
Salvador E. Tropea eb4514f570 [Navigate Results] Added CSS and Folders 2022-12-05 21:24:30 -03:00
Salvador E. Tropea 509f74fd31 [KiKit Present] Implemented various modes 2022-12-04 19:50:29 -03:00
Salvador E. Tropea cc53d655c0 [KiKit Present] Imported local pybars 2022-12-04 11:39:25 -03:00
Salvador E. Tropea aeaf52fd02 [KiKit Present] Removed `kikit` import
- _renderBoards must be implemented in a different way
2022-12-04 11:37:28 -03:00
Salvador E. Tropea b3d664fa94 [KiKit Present] Removed the try in boardpage
- Too broad, doesn't help
2022-12-04 11:32:58 -03:00
Salvador E. Tropea 266cf0a6a4 [KiKit Present] Removed `click` import, unused
- Also added author and license
2022-12-04 11:30:40 -03:00
Salvador E. Tropea 5cd508ac3b [PcbDraw] Added present.py
- This is from KiKit, but is very similar to populate.py
2022-12-04 11:28:16 -03:00
Salvador E. Tropea 5ad49e435d [Stencil *] Clarified the warning about using stencil.side 2022-12-04 11:21:51 -03:00
Salvador E. Tropea ae84edf1fc [Navigate Results] Added icon association for PCB/SCH files 2022-12-03 21:19:43 -03:00
Salvador E. Tropea 4ddf1772a2 [Panelize] Fixed template, now default_units is just units
- This change was done so the global default units apply here
2022-12-03 21:04:39 -03:00
Salvador E. Tropea f7dceabd0e Fixed KiCad project reload
- Otherwise KiCad SIGSEGVs when trying to plot
2022-12-03 20:48:49 -03:00
Salvador E. Tropea 4c356f14aa [Panelize] Added preview image to the targets 2022-12-03 20:48:10 -03:00
Salvador E. Tropea 2cea9925d5 [Panelize] Added preview option
- Enabled for quick start
2022-12-03 18:38:28 -03:00