From 6315728692fc6760aa853ef9ca61b68dd55bb66d Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Tue, 30 Jan 2024 12:35:37 -0300 Subject: [PATCH] [KiCanvas] Multiple sheets fix Sort of ... looks like you must explicitly list the sub-sheets, but it has various drawbacks, look here: theacodes/kicanvas#77 Should fix the issue mentioned by @bluespider42 in #572 --- kibot/out_kicanvas.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/kibot/out_kicanvas.py b/kibot/out_kicanvas.py index a250e879..7c113e4b 100644 --- a/kibot/out_kicanvas.py +++ b/kibot/out_kicanvas.py @@ -149,12 +149,13 @@ class KiCanvasOptions(VariantOptions): f.write(f' \n') for s in self.source: if s == 'pcb': - source = GS.pcb_fname + f.write(f' \n') elif s == 'schematic': - source = GS.sch_fname + GS.sch_dir + for s in sorted(GS.sch.all_sheets, key=lambda x: x.sheet_path_h): + f.write(f' \n') else: - source = GS.pro_fname - f.write(f' \n') + f.write(f' \n') f.write(' \n') f.write(' \n') f.write('\n')