[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: gEDA-user: Subnets
> Does what's pasted from the buffer stay selected?
Yes. I used it with a pcb script on the powermeter board. Each
renumber adds 10 to whatever's in the buffer...
LoadFrom(Layout,powermeter-blank.pcb)
LoadFrom(LayoutToBuffer,channel1.pcb)
# left upper, first one already there
# First is at 200,0
PasteBuffer(ToLayout,0,30000)
RenumberBuffer(0,10)
PasteBuffer(ToLayout,0,80000)
RenumberBuffer(0,10)
PasteBuffer(ToLayout,0,130000)
RenumberBuffer(0,10)
PasteBuffer(ToLayout,0,180000)
# Now skip 300 more for the next five
RenumberBuffer(0,10)
PasteBuffer(ToLayout,0,280000)
RenumberBuffer(0,10)
PasteBuffer(ToLayout,0,330000)
RenumberBuffer(0,10)
PasteBuffer(ToLayout,0,380000)
RenumberBuffer(0,10)
PasteBuffer(ToLayout,0,430000)
# Other side
pastebuffer(Rotate,2)
RenumberBuffer(0,10)
PasteBuffer(ToLayout,290000,110000)
RenumberBuffer(0,10)
PasteBuffer(ToLayout,290000,160000)
RenumberBuffer(0,10)
PasteBuffer(ToLayout,290000,210000)
RenumberBuffer(0,10)
PasteBuffer(ToLayout,290000,260000)
# skip
RenumberBuffer(0,10)
PasteBuffer(ToLayout,290000,360000)
RenumberBuffer(0,10)
PasteBuffer(ToLayout,290000,410000)
RenumberBuffer(0,10)
PasteBuffer(ToLayout,290000,460000)
RenumberBuffer(0,10)
PasteBuffer(ToLayout,290000,510000)
djopt(splitlines)
# Teardrops()
LoadFrom(Netlist,djtest.net)
SaveTo(LayoutAs,djtest.pcb)
Quit()
_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user