[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gEDA-dev: Patch to gsch2pcb
Hi,
I wounder if someone might be able to review and apply this simple patch
to gnet-gsch2pcb.scm.in.
It resets the cursor position in gsch2pcb's output to "0,0".
This enables me to script loading new elements from a foo.new.pcb file
into the pastebuffer, and paste at "0,0" or a little in, say: "10,
10" (mils) and get the new components appear in the corner of the
schematic, not off the top left of the page.
The alternative is for me to code my automation to paste at "10+x, 270
+y", which seems like a shame. (The cursor line seems to be taken as the
origin when scripting a load into the pastebuffer).
I intend to apply this to the CUED cd release unless anyone knows of a
good reason why I ought not.
Regards
Peter Clifton
--- cvs_geda.clean/geda/gaf/gnetlist/scheme/gnet-gsch2pcb.scm.in 2006-08-30 03:30:38.000000000 +0100
+++ gnet-gsch2pcb.scm.in 2006-09-07 17:20:14.000000000 +0100
@@ -31,7 +31,7 @@
(display "# release: pcb 1.6.3\n" port)
(display "PCB(\"\" 6000 5000)\n" port)
(display "Grid(10 0 0)\n" port)
- (display "Cursor(10 270 3)\n" port)
+ (display "Cursor(0 0 3)\n" port)
(display "Flags(0x000000d0)\n" port)
(display "Groups(\"1,2,3,s:4,5,6,c:7:8:\")\n" port)
(display "Styles(\"Signal,10,40,20:Power,25,60,35:Fat,40,60,35:Skinny,8,36,20\")\n" port)))
_______________________________________________
geda-dev mailing list
geda-dev@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev