From 5750cfd10acf84c251aad0809e69b03c1605a21f Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Tue, 29 Nov 2022 17:04:30 -0300 Subject: [PATCH] [Panelize] Added error when using KiCad 5 and KiKit >= 1.1.0 --- kibot/out_panelize.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/kibot/out_panelize.py b/kibot/out_panelize.py index be5f5106..85a2432e 100644 --- a/kibot/out_panelize.py +++ b/kibot/out_panelize.py @@ -554,7 +554,9 @@ class PanelizeOptions(VariantOptions): return f.name def run(self, output): - cmd_kikit = self.ensure_tool('KiKit') + cmd_kikit, version = self.ensure_tool_get_ver('KiKit') + if GS.ki5 and version >= (1, 1, 0): + raise KiPlotConfigurationError("Installed KiKit doesn't support KiCad 5") super().run(output) to_remove = [] # Create the input PCB @@ -607,6 +609,9 @@ class Panelize(BaseOutput): # noqa: F821 Creates a panel to fabricate various copies of the PCB at once. It currently uses the KiKit tool, which must be available. Consult KiKit docs for detailed information. + Current versions of KiKit only support KiCad 6 and my tests using + KiKit 1.0.5 (the last to support KiCad 5) shown some + incompatibilities. Note that you don't need to specify the units for all distances. If they are omitted they are assumed to be `default_units`. The same is valid for angles, using `default_angles` """