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')