Mail Archives: geda-user/2018/11/17/05:01:23
Hi Alexey,
On Sat, 17 Nov 2018, Alexey Shaposhnikov (canisdirusleidy AT yandex DOT ru) [via geda-user AT delorie DOT com] wrote:
>
>Is there a way to set origin point for of PasteBuffer(ToLayout, ...)
>action then using relative coordinates (+X, +Y)? Or it's impossible
>without rewriting source code?
Relative to what? If the crosshair, in pc-rnd this works:
Cursor(pan, X, Y, mm)
PasteBuffer(ToLayout, Crosshair)
it's a cheat: it really moves the crosshair and then places the buffer at
the new location.
Please note that Cursor() is a rather old action and has calling
conventions that are not in line with the conventions of modern actions.
For example Y is flipped, positive goes up, not down (when looked from the
top), and the unit needs to be specified in a separate arg.
We do have provisions in the code for relative placement in PasteBuffer(),
but I couldn't decide what it should be relative to, so it's relative to
0;0 -- which means absolute. We can easily change that if we figure what
exactly it should do and why.
HTH,
Igor2
- Raw text -