Ideas for displaying custom coordinates

Post questions on how to use or achieve an effect in Inkscape.
saardrimer
Posts: 2
Joined: Sun Jan 27, 2013 11:39 pm

Ideas for displaying custom coordinates

Postby saardrimer » Sun Sep 06, 2015 10:27 pm

Hello!

In PCBmodE ( http://pcbmode.com ) I generate Inkscape SVGs with Python. For the application (circuit boards), it makes sense to have the coordinate origin at the centre of the circuit-board/page. The generation code takes care of all the conversions (y-axis flip and translation of object placement coordinates to Inkscape's 'view').

(For example, if the board is 100mmx100mm and I want to place an object at mm coordinate [20,20] -- that's what's in my JSON source files used to generate the SVG -- PCBmodE will 'tell' Inkscape to place it at [70,-70] (y-axis flip included).)

Often, I move objects to their appropriate place within Inkscape and need to manually copy the coordinates to the JSON source files. I currently do this by subtracting Inkscape's coordinates displayed from the JSON coordinates to get what I need to put back in the source. This is inconvenient.

I am looking for solutions that would let me conveniently see the 'real' coordinates. Any ideas?

Return to “Help with using Inkscape”