I'm trying to make a board with a moderate number of LEDs arranged in concentric circles. To do this, I am trying to formulate a pcb command script that will perform all the necessary operations to do this.
The basics are working, but I cannot figure out how to indicate the "reference point" when I'm cutting an element to the paste buffer. I think the script commands are using my mouse position as the reference point... ? Here's the basic sequence of commands I have generated (through a spreadsheet) to place each LED. Initially, the LEDs are just dispersed randomly on the layout. Then the script will find and properly place each LED based on its refdes. ----- Select(ElementByName, D202) PasteBuffer(Clear) PasteBuffer(AddSelected) RemoveSelected() FreeRotateBuffer(330.00) PasteBuffer(ToLayout, 5059, 2600, mil) ----- What I can't figure out is how to cause the "PasteBuffer(AddSelected)" command to use the center of the component that was found by "Select(...)" as the reference point that will be used to allow it to be pasted at exactly the point (5059 mil, 2600 mil). You can see the problem if you manually execute the commands before PasteBuffer(ToLayout,...) and then choose the Buffer tool, the element is way far away from where you place the mouse cursor. The closest thing I've found in the pcb manual to what I need is the gtk HID command "Cursor" but I see no way to have it put the cursor at the position of Select()'ed element. Thanks! Regards, Colin _______________________________________________ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user