From 0eafc93fa8d328f79fb5257f59260322b35b0383 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Wed, 1 Jun 2022 11:31:55 -0300 Subject: [PATCH] Fixed GenCAD output targets. - Also added a category --- CHANGELOG.md | 7 +++++-- kibot/out_gencad.py | 4 ++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7aa84ada..75b43341 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,11 +5,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] -### Fixed -- Components with mounting hole where excluded (#201) +### Added - New outputs: - `navigate_results` creates web pages to browse the generated outputs. +### Fixed +- Components with mounting hole where excluded (#201) +- GenCAD output targets. + ### Changed - KiCad environment variables: more variables detected, native KiCad 6 names, all exported to the environment (#205) diff --git a/kibot/out_gencad.py b/kibot/out_gencad.py index 1e70124c..c20e337e 100644 --- a/kibot/out_gencad.py +++ b/kibot/out_gencad.py @@ -35,6 +35,9 @@ class GenCADOptions(BaseOptions): self._expand_id = 'gencad' self._expand_ext = 'cad' + def get_targets(self, out_dir): + return [self._parent.expand_filename(out_dir, self.output)] + def run(self, name): check_script(CMD_PCBNEW_GENCAD, URL_PCBNEW_GENCAD, '1.6.5') # Output file name @@ -70,6 +73,7 @@ class GenCAD(BaseOutput): # noqa: F821 manufacturers """ def __init__(self): super().__init__() + self._category = 'PCB/export' with document: self.options = GenCADOptions """ [dict] Options for the `gencad` output """