From 6e56e11811beecfe1787a7f133a3c0b56d2ed1fd Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Mon, 11 Apr 2022 14:31:56 -0300 Subject: [PATCH] Test to add configurable title block to pcb_print - Doesn't work, KiCad can't load the wks from Python, just the default. --- tests/data/rotulo_k6_2.kicad_wks | 37 ++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 tests/data/rotulo_k6_2.kicad_wks diff --git a/tests/data/rotulo_k6_2.kicad_wks b/tests/data/rotulo_k6_2.kicad_wks new file mode 100644 index 00000000..72782ab6 --- /dev/null +++ b/tests/data/rotulo_k6_2.kicad_wks @@ -0,0 +1,37 @@ +(kicad_wks (version 20210606) (generator pl_editor) + (setup (textsize 1.5 1.5)(linewidth 0.15)(textlinewidth 0.15) + (left_margin 10)(right_margin 10)(top_margin 10)(bottom_margin 10)) + (rect (name "") (start 110 34) (end 2 2) (comment "rect around the title block") +) + (rect (name "") (start 0 0 ltcorner) (end 0 0) (repeat 2) (incrx 2) (incry 2)) + (line (name "") (start 50 2 ltcorner) (end 50 0 ltcorner) (repeat 30) (incrx 50)) + (tbtext "1" (name "") (pos 25 1 ltcorner) (font (size 1.3 1.3)) (repeat 100) (incrx 50)) + (line (name "") (start 50 2 lbcorner) (end 50 0 lbcorner) (repeat 30) (incrx 50)) + (tbtext "1" (name "") (pos 25 1 lbcorner) (font (size 1.3 1.3)) (repeat 100) (incrx 50)) + (line (name "") (start 0 50 ltcorner) (end 2 50 ltcorner) (repeat 30) (incry 50)) + (tbtext "A" (name "") (pos 1 25 ltcorner) (font (size 1.3 1.3)) (justify center) (repeat 100) (incry 50)) + (line (name "") (start 0 50 rtcorner) (end 2 50 rtcorner) (repeat 30) (incry 50)) + (tbtext "A" (name "") (pos 1 25 rtcorner) (font (size 1.3 1.3)) (justify center) (repeat 100) (incry 50)) + (tbtext "Date: ${ISSUE_DATE}" (name "") (pos 87 6.9)) + (line (name "") (start 110 5.5) (end 2 5.5)) + (line (name "") (start 110 8.5) (end 2 8.5)) + (tbtext "Rev: ${REVISION}" (name "") (pos 109 3.4002) (font bold)) + (tbtext "Size: ${PAPER}" (name "") (pos 109 6.9) (comment "Paper format name") +) + (line (name "") (start 110 12.5) (end 2 12.5)) + (tbtext "Title: ${TITLE}" (name "") (pos 109 10.7) (font (size 2 2) bold italic)) + (tbtext "File: ${FILENAME}" (name "") (pos 109 14.3)) + (line (name "") (start 110 18.5) (end 2 18.5)) + (tbtext "Sheet: ${SHEETNAME}" (name "") (pos 109 17)) + (tbtext "${COMPANY}" (name "") (pos 109 20) (font bold) (comment "Company name") +) + (tbtext "${COMMENT1}" (name "") (pos 109 23) (comment "Comment 0") +) + (tbtext "${COMMENT2}" (name "") (pos 109 26) (comment "Comment 1") +) + (tbtext "${COMMENT3}" (name "") (pos 109 29) (comment "Comment 2") +) + (tbtext "${COMMENT4}" (name "") (pos 109 32) (comment "Comment 3") +) + (line (name "") (start 90 8.5) (end 90 5.5)) +)