Display center coordinates of an object

Post questions on how to use or achieve an effect in Inkscape.
theozh
Posts: 413
Joined: Fri Mar 23, 2012 6:30 pm

Display center coordinates of an object

Postby theozh » Fri Sep 23, 2016 6:32 pm

Hi there,
is there a possibility with Inkscape to display the center coordinates of an object?
As default the coordinates of the lower left edge are given.

In many cases it would be very helpful to display the center coordinates of an object (or even more general: corner, mid-point and center).
I would like to place a circle, square, rectangle, a group or whatever object to a specific coordinate or to check whether the center is at a certain coordinate.

A cumbersome way would be to
a) read out object's center: draw a dummy rectangle and let the lower left edge snapp to the object's center and read the coordinates
b) position object's center: draw a dummy rectangle at the desired coordinates and let the object's center snap to the lower left edge of the rectangle
Hmm, pretty painful. Are any better solutions which I missed?

If you look e.g. at LibreOfficeDraw you see how this realized there (sorry, it's in german, but it should be self-explanatory).
Wouldn't this be a feature for the Inkscape Transform (Shift+Ctrl+M) menu?
Attachments
LibreOfficeDraw_Position&Size.png
LibreOfficeDraw_Position&Size.png (19.03 KiB) Viewed 516 times

Moini
Posts: 2238
Joined: Mon Oct 05, 2015 10:44 am

Re: Display center coordinates of an object

Postby Moini » Sat Sep 24, 2016 12:18 am

I think your workarounds are pretty much the best way that Inkscape provides currently. Not sure if there is a feature request for showing the center coordinate yet, maybe that would be something for the new object dialog... ("extended object info" or something like that). You could browse the list of bug reports / feature requests here: https://bugs.launchpad.net/inkscape
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

Kurt
Posts: 1
Joined: Tue Oct 03, 2017 11:48 am

Re: Display center coordinates of an object

Postby Kurt » Tue Oct 03, 2017 11:58 am

I apologize for dredging up an old topic, but I'm curious what the current state of this is? Is there any better way to view or set the center position of an object? Currently what I am doing is making a line and centering the object on that line. It would be far less klunky to be able to set the position directly. Is there any better way that's come along since this thread was created?

theozh
Posts: 413
Joined: Fri Mar 23, 2012 6:30 pm

Re: Display center coordinates of an object

Postby theozh » Tue Oct 03, 2017 9:58 pm

my guess is if it is just a wish here in this forum... nothing will happen...
I thought, I already filed a bug report (or in this case a wish) but I coudn't find any.
So, I've just done it now:
https://bugs.launchpad.net/inkscape/+bug/1721004
Let's see what will happen...
Win7/64, Inkscape 0.92.2

User avatar
brynn
Posts: 9614
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Display center coordinates of an object

Postby brynn » Tue Oct 03, 2017 10:15 pm

To center an object on a path, you could use Snapping. Snap to center of object, or snap to rotation center. (Note that the object needs to be filled for the snapping to work. But the fill can be removed afterwards.)

There's probably a way to use Align and Distribute dialog for it (if the line is horizontal or vertical). Although personally I would prefer snapping.

Edit
Using the same snapping options, you can draw the object from the center, centered on the path, if the object can be made with Ellipse, Rectangle, or Star tool.

theozh
Posts: 413
Joined: Fri Mar 23, 2012 6:30 pm

Re: Display center coordinates of an object

Postby theozh » Tue Oct 03, 2017 11:18 pm

@Kurt & @brynn, besides using a rectangle or line it's probably more clear to create a guide with an origin at the desired location as long there seems to be no direct way for reading or entering coordinates other than lower left corne, e.g. center or midpoints or other corners.
1. drag a guide somewhere
2. double click on it and enter the desired coordinates
3. let your object snap to this origin by using the snapping options (center, midpoint, corner, whatever,... )
Win7/64, Inkscape 0.92.2


Return to “Help with using Inkscape”

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 8 guests