diff --git a/CHANGELOG.md b/CHANGELOG.md index 34514be4..0d83201c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,6 +30,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Traceback dump when Blender output contains it - KiKit - Expand text variables and KiBot %X markers in text objects (see #497) +- PCB Print: + - Support for CURRENT_DATE text variable - Populate: - Basic support for regular list items (#480) - Help for the error levels diff --git a/kibot/out_pcb_print.py b/kibot/out_pcb_print.py index 6bbb06c7..460fb5f8 100644 --- a/kibot/out_pcb_print.py +++ b/kibot/out_pcb_print.py @@ -29,6 +29,7 @@ Dependencies: # version: '2.40' # id: rsvg2 from copy import deepcopy +import datetime import re import os import subprocess @@ -479,6 +480,7 @@ class PCB_PrintOptions(VariantOptions): GS.load_pcb_title_block() for num in range(9): vars['COMMENT'+str(num+1)] = GS.pcb_com[num] + vars['CURRENT_DATE'] = datetime.datetime.now().strftime('%Y-%m-%d') vars['COMPANY'] = GS.pcb_comp vars['ISSUE_DATE'] = GS.pcb_date vars['REVISION'] = GS.pcb_rev