Skip to content

Commit

Permalink
[PCB Print][Added] Support for CURRENT_DATE text variable
Browse files Browse the repository at this point in the history
  • Loading branch information
set-soft committed Sep 24, 2023
1 parent b6815b6 commit c129c59
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions kibot/out_pcb_print.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
# version: '2.40'
# id: rsvg2
from copy import deepcopy
import datetime
import re
import os
import subprocess
Expand Down Expand Up @@ -479,6 +480,7 @@ def fill_kicad_vars(self, page, pages, p):
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
Expand Down

0 comments on commit c129c59

Please sign in to comment.