KiCad PCB Editor 5.1line segments and polygons. Draw circles. Draw circular arcs. Add graphical text (fields are not managed by this tool). Position the footprint anchor. Delete elements. Grid origin. (grid offset). Useful 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 年前3
KiCad PCB Editor 5.1line segments and polygons. Draw circles. Draw circular arcs. Add graphical text (fields are not managed by this tool). Position the footprint anchor. Delete elements. Pcbnew 123 / 154 Grid origin. 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 年前3
KiCad PCB Editor 4.0line segments and polygons. Draw circles. Draw circular arcs. Add graphical text (fields are not managed by this tool). Position the footprint anchor. Delete elements. Grid origin. (grid offset). Useful 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 年前3
KiCad PCB Editor 4.0line segments and polygons. Draw circles. Draw circular arcs. Add graphical text (fields are not managed by this tool). Position the footprint anchor. Pcbnew 115 / 142 Delete elements. Grid origin. 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
KiCad 8.0 PCB Editorfiles when making backups or committing to a version control system. NOTE The kicad_dru file is managed automatically by KiCad and should not be edited with an external text editor. Always use the Custom 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 年前3
KiCad 8.0 PCB Editorfiles when making backups or committing to a version control system. NOTE The kicad_dru file is managed automatically by KiCad and should not be edited with an external text editor. Always use the Custom 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 年前3
KiCad 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 年前3
KiCad 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 年前3
KiCad 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 年前3
KiCad 5.1 Reference manualaccessed using a symbol (referred to as components in version 4) look up list. Symbol libraries are now managed by a symbol library table that behaves similarly to the footprint library table. This change is a0 码力 | 39 页 | 254.10 KB | 1 年前3
共 23 条
- 1
- 2
- 3













