Shape coordinates start

Post questions on how to use or achieve an effect in Inkscape.
bremenpl
Posts: 10
Joined: Tue Jan 27, 2015 1:06 am

Shape coordinates start

Postby bremenpl » Mon Feb 23, 2015 6:32 pm

Hello there,
I was wondering either it is possible to set inskape the way that he would threat the middle of the shape as its start coordinate, instead of its beggining. For example if I have a circle 2mm x 2mm its 0.0 coordinate would be in the left down corner. Can I se the middle as 0.0?
Attachments
ink.png
explanation
ink.png (49.55 KiB) Viewed 2522 times

User avatar
ragstian
Posts: 1181
Joined: Thu Oct 11, 2012 2:44 am
Location: Stavanger-Norway

Re: Shape coordinates start

Postby ragstian » Mon Feb 23, 2015 7:08 pm

Hi.

Circles are defined in the SVG with a CX, CY and r where CX is the Center X and CY is Center Y and r being the radius.

In other words the center of the circle will be placed on the coordinates you specify.

For other shapes the situation is more complicated, SVG uses "inverted" y-coordinates where X=0 and Y=0 is
the upper left corner of the screen/page (called canvas in Inkscape).
A rectangle will have it's X, Y coordinates in the top left corner and have a width and height.

If you use the ruler along the edges of the canvas the X=0, Y=0 is the lower left corner,
you will have to calculate the SVG-coordinates from Inkscape-coordinates.
(Whoever came up with this scheme must have been using some strong medication!)

For some more info on SVG: SVG Tutorial

( ͡° ͜ʖ ͡°)
RGDS
Ragnar
Good Luck!
( ͡° ͜ʖ ͡°)
RGDS
Ragnar

bremenpl
Posts: 10
Joined: Tue Jan 27, 2015 1:06 am

Re: Shape coordinates start

Postby bremenpl » Mon Feb 23, 2015 7:36 pm

Hello there,
Thank you for fast reply, but I cannot aggre with you about the coordinate of the circle. I am not an expert on SVG but I just checked it experimentally. I have attached a screen where the shape is selected. Its coordinates are at the top. In the right down corner are coordinates of my mouse (you cant see the pointer in the screen) that is more or less in the center of the circle. As you see looking at the X coordinate they dont match. The beggining coordinate of the circle is on the left edge of the circle.
Attachments
ink2.png
coordinates
ink2.png (120.84 KiB) Viewed 2515 times

User avatar
ragstian
Posts: 1181
Joined: Thu Oct 11, 2012 2:44 am
Location: Stavanger-Norway

Re: Shape coordinates start

Postby ragstian » Mon Feb 23, 2015 7:51 pm

Hi.

I see what you are saying, Inkscape "does you a favor" by translating the SVG coordinates to user coordinates. If you look at the XML editor (Shift Ctrl X) with your circle selected you will see the coordinates in the SVG file. You can type your coordinates here taking into account the "inverse Y-Coordinates" (which makes my head boil when trying to work out the correct coordinates for an extension "in the works"!)
Last edited by ragstian on Sat Feb 28, 2015 2:46 am, edited 1 time in total.
Good Luck!
( ͡° ͜ʖ ͡°)
RGDS
Ragnar

bremenpl
Posts: 10
Joined: Tue Jan 27, 2015 1:06 am

Re: Shape coordinates start

Postby bremenpl » Mon Feb 23, 2015 7:56 pm

Damn, isnt there no other way to do it more automatically. I mean, for me it seems like an essential function to have a coordinate of a shape with respect to the middle. When one takes measures of an object in real world he most likelly takes measures between middles of the circles and other shapes, not in respect to their edges.
Also looking into .xml file for me would be even more work because i need coordinates in [mm] not [px].

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

Re: Shape coordinates start

Postby brynn » Mon Feb 23, 2015 8:11 pm

If you're talking about shapes (and not raw paths), you can set up snapping, and either a grid, guides, or some other snapping target. Then holding Shift key, the shape will be drawn from the center, and snapping (assuming it's set up in such a way that the coordinates you want share the snap target) will force it to start at that point.

Maybe some other kind of software can work the way you want? A lot of Inkscape users wish for CAD-like features, although I have no idea if that's how CAD works.

bremenpl
Posts: 10
Joined: Tue Jan 27, 2015 1:06 am

Re: Shape coordinates start

Postby bremenpl » Mon Feb 23, 2015 8:22 pm

Maybe some other kind of software can work the way you want? A lot of Inkscape users wish for CAD-like features, although I have no idea if that's how CAD works.

The thing is i really like working with inkscape. I indeed would love some CAD functionalities.

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: Shape coordinates start

Postby tylerdurden » Mon Feb 23, 2015 10:02 pm

bremenpl wrote:When one takes measures of an object in real world he most likelly takes measures between middles of the circles and other shapes, not in respect to their edges.

I don't know if I live in the real world, but as a fabricator using CAD daily, I dimension/measure circles at center, inside and outside; depending on the situation.
Attachments
CircleDims1.jpg
CircleDims1.jpg (32.21 KiB) Viewed 2473 times
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/


Return to “Help with using Inkscape”