Copy X Y (or dx dy) to clipboard

At times it would be useful to be able to copy X, Y (also dX, dy) to the clipboard.

The image shows I’m joining two arcs, and the ‘Edit Dialog’ for the top arc does not explicitly give the coordinates I need.

Therefore I have to manually copy the information (-14.913021, -10.230434).

I have also needed to do this ‘manual copy’ in other circumstances.

Application: Pcbnew
Version: (5.1.6)-1, release build
Libraries:
wxWidgets 3.0.4
libcurl/7.66.0 OpenSSL/1.1.1d (Schannel) zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.1.1) nghttp2/1.39.2
Platform: Windows 7 (build 7601, Service Pack 1), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8)
Boost: 1.71.0
OpenCASCADE Community Edition: 6.9.1
Curl: 7.66.0
Compiler: GCC 9.2.0 with C++ ABI 1013

Build settings:
USE_WX_GRAPHICS_CONTEXT=OFF
USE_WX_OVERLAY=OFF
KICAD_SCRIPTING=ON
KICAD_SCRIPTING_MODULES=ON
KICAD_SCRIPTING_PYTHON3=OFF
KICAD_SCRIPTING_WXPYTHON=ON
KICAD_SCRIPTING_WXPYTHON_PHOENIX=OFF
KICAD_SCRIPTING_ACTION_MENU=ON
BUILD_GITHUB_PLUGIN=ON
KICAD_USE_OCE=ON
KICAD_USE_OCC=OFF
KICAD_SPICE=ON

KiCad V5.1.6 Ouwtch, that’s old. (But probably does not matter much for this particular case)

KiCad V6 is very close now and it uses the clipboard in a different way. It uses the same (or very similar?) format as in it’s files.
For example, you can select an arc in Pcbnew and then copy it:

… and then paste it in a text editor (or below, as I did).

(kicad_pcb (version 20211014) (generator pcbnew)

(layers
  (0 "F.Cu" signal)
  (31 "B.Cu" signal)
  (32 "B.Adhes" user "B.Adhesive")
  (33 "F.Adhes" user "F.Adhesive")
  (34 "B.Paste" user)
  (35 "F.Paste" user)
  (36 "B.SilkS" user "B.Silkscreen")
  (37 "F.SilkS" user "F.Silkscreen")
  (38 "B.Mask" user)
  (39 "F.Mask" user)
  (40 "Dwgs.User" user "User.Drawings")
  (41 "Cmts.User" user "User.Comments")
  (42 "Eco1.User" user "User.Eco1")
  (43 "Eco2.User" user "User.Eco2")
  (44 "Edge.Cuts" user)
  (45 "Margin" user)
  (46 "B.CrtYd" user "B.Courtyard")
  (47 "F.CrtYd" user "F.Courtyard")
  (48 "B.Fab" user)
  (49 "F.Fab" user)
  (50 "User.1" user)
  (51 "User.2" user)
  (52 "User.3" user)
  (53 "User.4" user)
  (54 "User.5" user)
  (55 "User.6" user)
  (56 "User.7" user)
  (57 "User.8" user)
  (58 "User.9" user)
)

(net 0 "")
(net 1 "Net-(J1-Pad1)")
(net 2 "Net-(J1-Pad2)")
(net 3 "Net-(J1-Pad3)")
(net 4 "Net-(J1-Pad4)")
(net 5 "Net-(J1-Pad5)")
(net 6 "Net-(J1-Pad6)")
(net 7 "Net-(J1-Pad7)")
(net 8 "Net-(J1-Pad8)")
(net 9 "Net-(J1-Pad9)")
(net 10 "Net-(J1-Pad10)")


  (gr_arc (start -7.228408 6.559503) (mid 0 0) (end 9.74316 0.589738) (layer "F.Cu") (width 0.2) (tstamp d692b5e6-71b2-4fa6-bc83-618add8d8fef))

)

And this works both ways. You can for example modify the text (or generate it via a script), then place it on the clipboard, and paste it in Pcbnew.

Thanks Paul.

I kept with the old version partly because I prefer the F9 routing when actually laying tracks (feels better and pressing ‘V’ for via automatically swaps top to bottom layer). I keep swapping F9/F11 as certain features are preferable to me in each interface.

What you show here is somewhat useful - but I think it still fails to get me the desired (X Y) and (dx dy)?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.