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?
Shape coordinates start
Shape coordinates start
- Attachments
-
- explanation
- ink.png (49.55 KiB) Viewed 2524 times
Re: Shape coordinates start
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
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
( ͡° ͜ʖ ͡°)
RGDS
Ragnar
Re: Shape coordinates start
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.
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
-
- coordinates
- ink2.png (120.84 KiB) Viewed 2517 times
Re: Shape coordinates start
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"!)
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
( ͡° ͜ʖ ͡°)
RGDS
Ragnar
Re: Shape coordinates start
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].
Also looking into .xml file for me would be even more work because i need coordinates in [mm] not [px].
Re: Shape coordinates start
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.
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.
Basics - Help menu > Tutorials
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Re: Shape coordinates start
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.
-
- Posts: 2344
- Joined: Sun Apr 14, 2013 12:04 pm
- Location: Michigan, USA
Re: Shape coordinates start
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 (32.21 KiB) Viewed 2475 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/
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/