 KiCad PCB Editor 5.1for draw in pcb.GetDrawings(): if draw.GetClass() == 'PTEXT': txt = re.sub("\$date\$ [0-9] {4}-[0-9]{2}-[0-9]{2}", "$date$", draw.GetText())0 码力 | 279 页 | 3.02 MB | 1 年前3 KiCad PCB Editor 5.1for draw in pcb.GetDrawings(): if draw.GetClass() == 'PTEXT': txt = re.sub("\$date\$ [0-9] {4}-[0-9]{2}-[0-9]{2}", "$date$", draw.GetText())0 码力 | 279 页 | 3.02 MB | 1 年前3
 KiCad PCB Editor 5.1Run(self): pcb = pcbnew.GetBoard() for draw in pcb.GetDrawings(): if 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$0 码力 | 166 页 | 3.28 MB | 1 年前3 KiCad PCB Editor 5.1Run(self): pcb = pcbnew.GetBoard() for draw in pcb.GetDrawings(): if 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$0 码力 | 166 页 | 3.28 MB | 1 年前3
 KiCad PCB 编辑器 5.1
for draw in pcb.GetDrawings(): if draw.GetClass() == 'PTEXT': txt = re.sub("\$date\$ [0-9] {4}-[0-9]{2}-[0-9]{2}", "$date$", draw.GetText())0 码力 | 304 页 | 3.02 MB | 1 年前3 KiCad PCB 编辑器 5.1
for draw in pcb.GetDrawings(): if draw.GetClass() == 'PTEXT': txt = re.sub("\$date\$ [0-9] {4}-[0-9]{2}-[0-9]{2}", "$date$", draw.GetText())0 码力 | 304 页 | 3.02 MB | 1 年前3
 KiCad PCB 编辑器 5.1
Run(self): pcb = pcbnew.GetBoard() for draw in pcb.GetDrawings(): if 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$0 码力 | 175 页 | 4.56 MB | 1 年前3 KiCad PCB 编辑器 5.1
Run(self): pcb = pcbnew.GetBoard() for draw in pcb.GetDrawings(): if 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$0 码力 | 175 页 | 4.56 MB | 1 年前3
 KiCad 8.0 PCB Editoritem in pcb.GetDrawings(): if item.GetClass() == "PCB_TEXT": txt = re.sub("\$date\$ [0-9]{4}-[0-9]{2}-[0-9]{2}", "$date$", item.GetText())0 码力 | 204 页 | 6.90 MB | 1 年前3 KiCad 8.0 PCB Editoritem in pcb.GetDrawings(): if item.GetClass() == "PCB_TEXT": txt = re.sub("\$date\$ [0-9]{4}-[0-9]{2}-[0-9]{2}", "$date$", item.GetText())0 码力 | 204 页 | 6.90 MB | 1 年前3
 KiCad 8.0 PCB Editoritem in pcb.GetDrawings(): if item.GetClass() == "PCB_TEXT": txt = re.sub("\$date\$ [0-9]{4}-[0-9]{2}-[0-9]{2}", "$date$", item.GetText())0 码力 | 205 页 | 6.78 MB | 1 年前3 KiCad 8.0 PCB Editoritem in pcb.GetDrawings(): if item.GetClass() == "PCB_TEXT": txt = re.sub("\$date\$ [0-9]{4}-[0-9]{2}-[0-9]{2}", "$date$", item.GetText())0 码力 | 205 页 | 6.78 MB | 1 年前3
 KiCad 8.0 PCB 编辑器item in pcb.GetDrawings(): if item.GetClass() == "PCB_TEXT": txt = re.sub("\$date\$ [0-9]{4}-[0-9]{2}-[0-9]{2}", "$date$", item.GetText())0 码力 | 194 页 | 8.27 MB | 1 年前3 KiCad 8.0 PCB 编辑器item in pcb.GetDrawings(): if item.GetClass() == "PCB_TEXT": txt = re.sub("\$date\$ [0-9]{4}-[0-9]{2}-[0-9]{2}", "$date$", item.GetText())0 码力 | 194 页 | 8.27 MB | 1 年前3
共 7 条
- 1














