Inkscape: A Vector Drawing Tool

how to get x y coordinate in mm ?

Asked by pareshchaudhary on 2011-10-23

Hi,

I have one problem related to coordinates. i want to save d attributes in mm unit. for that with the help of google . i have changed default unit "mm" in Document Properties Option. After that i am going to draw 50x50 mm rectangle for that i need to change mm from px in "control tool bar " . now i got attributes like

 d="M 222.47117,285.53205 L 398.65476,285.53205 L 398.65476,461.71565 L 222.47117,461.71565 L 222.47117,285.53205 L 222.47117,285.53205 L 222.47117,285.53205 z"

But when i changed mm to px then also got same attributes

d="M 222.47117,285.53205 L 398.65476,285.53205 L 398.65476,461.71565 L 222.47117,461.71565 L 222.47117,285.53205 L 222.47117,285.53205 L 222.47117,285.53205 z"

How to distinguish between mm and px .

i am really stuck in this

Let me know solution...!!!

Question information

Language:
English Edit question
Status:
Answered
For:
Inkscape Edit question
Assignee:
No assignee Edit question
Last query:
2011-10-23
Last reply:
2011-10-23
~suv (suv-lp) said : #1

The SVG specification does not allow units to be used in the 'd' attribute of path definitions.

The coordinates in the path data 'd' attribute can only be specified in SVG user units:
<http://www.w3.org/TR/SVG/paths.html#PathDataBNF>

~suv (suv-lp) said : #2

Inkscape itself converts between SVG user units (px, 90dpi) and the document-specific units displayed in the GUI. The values stored in the SVG source have to conform to the SVG specification.

For details which parts of the code base handle this units conversion, please ask on the developers' mailing list.

Can you help with this problem?

Provide an answer of your own, or ask pareshchaudhary for more information if necessary.

To post a message you must log in.