KiCad PCB Editor 5.1
pcb.GetDrawings(): if type(item) is TEXTE_PCB: print "* Text: '%s' at %s"% (item.GetText(), item.GetPosition()) elif type(item) is DRAWSEGMENT: print "* Drawing: %s"%item.GetShapeStr() re.sub("\$date\$ [0-9] {4}-[0-9]{2}-[0-9]{2}", "$date$", draw.GetText()) if txt == "$date$": draw.SetText("$date$ %s"%datetime.date0 码力 | 279 页 | 3.02 MB | 1 年前3KiCad PCB Editor 5.1
DRAWINGS:" for item in pcb.GetDrawings(): if type(item) is TEXTE_PCB: print "* Text: '%s' at %s"%(item.GetText(), item.GetPosition()) elif type(item) is DRAWSEGMENT: print "* Drawing: %s"%item.GetShapeStr() draw.GetClass() == 'PTEXT': txt = re.sub("\$date\$ [0-9]{4}-[0-9]{2}-[0-9]{2}", "$date$", draw.GetText()) if txt == "$date$": draw.SetText("$date$ %s"%datetime.date.today()) text_by_date().register()0 码力 | 166 页 | 3.28 MB | 1 年前3KiCad PCB 编辑器 5.1
pcb.GetDrawings(): if type(item) is TEXTE_PCB: print "* Text: '%s' at %s"% (item.GetText(), item.GetPosition()) elif type(item) is DRAWSEGMENT: print "* Drawing: %s"%item.GetShapeStr() re.sub("\$date\$ [0-9] {4}-[0-9]{2}-[0-9]{2}", "$date$", draw.GetText()) if txt == "$date$": draw.SetText("$date$ %s"%datetime.date0 码力 | 304 页 | 3.02 MB | 1 年前3KiCad PCB 编辑器 5.1
DRAWINGS:" for item in pcb.GetDrawings(): if type(item) is TEXTE_PCB: print "* Text: '%s' at %s"%(item.GetText(), item.GetPosition()) elif type(item) is DRAWSEGMENT: print "* Drawing: %s"%item.GetShapeStr() draw.GetClass() == 'PTEXT': txt = re.sub("\$date\$ [0-9]{4}-[0-9]{2}-[0-9]{2}", "$date$", draw.GetText()) if txt == "$date$": draw.SetText("$date$ %s"%datetime.date.today()) text_by_date().register()0 码力 | 175 页 | 4.56 MB | 1 年前3KiCad 8.0 PCB Editor
for item in pcb.GetDrawings(): if type(item) is PCB_TEXT: print(f"* Text: '{item.GetText()}' at {ToMM(item.GetPosition())}") elif type(item) is PCB_SHAPE: print(f"* Drawing: = re.sub("\$date\$ [0-9]{4}-[0-9]{2}-[0-9]{2}", "$date$", item.GetText()) if txt == "$date$": item.SetText("$date$ %s" % datetime0 码力 | 204 页 | 6.90 MB | 1 年前3KiCad 8.0 PCB Editor
for item in pcb.GetDrawings(): if type(item) is PCB_TEXT: print(f"* Text: '{item.GetText()}' at {ToMM(item.GetPosition())}") elif type(item) is PCB_SHAPE: print(f"* Drawing: = re.sub("\$date\$ [0-9]{4}-[0-9]{2}-[0-9]{2}", "$date$", item.GetText()) if txt == "$date$": item.SetText("$date$ %s" % datetime0 码力 | 205 页 | 6.78 MB | 1 年前3KiCad 8.0 PCB 编辑器
for item in pcb.GetDrawings(): if type(item) is PCB_TEXT: print(f"* Text: '{item.GetText()}' at {ToMM(item.GetPosition())}") elif type(item) is PCB_SHAPE: print(f"* Drawing: = re.sub("\$date\$ [0-9]{4}-[0-9]{2}-[0-9]{2}", "$date$", item.GetText()) if txt == "$date$": item.SetText("$date$ %s" % datetime0 码力 | 194 页 | 8.27 MB | 1 年前3KiCad PCB Editor 4.0
pcb.GetDrawings(): if type(item) is TEXTE_PCB: print "* Text: '%s' at %s"% (item.GetText(), item.GetPosition()) elif type(item) is DRAWSEGMENT: print "* Drawing: %s"%item.GetShapeStr()0 码力 | 268 页 | 2.81 MB | 1 年前3KiCad PCB Editor 4.0
DRAWINGS:” for item in pcb.GetDrawings(): if type(item) is TEXTE_PCB: print ”* Text: ’%s’ at %s”%(item.GetText(), item.GetPosition()) elif type(item) is DRAWSEGMENT: print ”* Drawing: %s”%item.GetShapeStr()0 码力 | 153 页 | 3.10 MB | 1 年前3
共 9 条
- 1