# Scale issue with .svg

**URL:** <https://discourse.mcneel.com/t/scale-issue-with-svg/69643>\
**Category:** Rhino for Windows\
**Created:** [August 28, 2018, 12:56pm UTC](https://discourse.mcneel.com/t/scale-issue-with-svg/69643 "2018-08-28T12:56:55Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![methode2](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/methode2/32/113047_2.png) [@methode2](https://discourse.mcneel.com/u/methode2)\
**Post date:** [August 28, 2018, 12:56pm UTC](https://discourse.mcneel.com/t/scale-issue-with-svg/69643/1 "2018-08-28T12:56:55Z")

</div>

Hello everybody,

I am trying to export and import .svg files. I have a 0.35277 scale factor between creating the .svg file and opening it. I guess it is linked to the point definition (1pt = 0.35277 mm). Do you have any idea of how to keep the dimensions when saving as .svg ?

---

<div class="post-metadata">

**Author:** ![piem](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/piem/32/603355_2.png) [@piem](https://discourse.mcneel.com/u/piem)\
**Post date:** [August 28, 2018, 3:23pm UTC](https://discourse.mcneel.com/t/scale-issue-with-svg/69643/2 "2018-08-28T15:23:19Z")

</div>

Hi;  
Export Top view @ 1:1 (100%) scale in the “View and Output Scale”  
Paper size has nothing to do here, it’s only a bounding box

---

<div class="post-metadata">

**Author:** ![methode2](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/methode2/32/113047_2.png) [@methode2](https://discourse.mcneel.com/u/methode2)\
**Post date:** [August 29, 2018, 6:12am UTC](https://discourse.mcneel.com/t/scale-issue-with-svg/69643/3 "2018-08-29T06:12:32Z")

</div>

Thank you for your answer, I did exactly this and I have a scale issue.

---

<div class="post-metadata">

**Author:** ![pascal](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/pascal/32/479395_2.png) [@pascal](https://discourse.mcneel.com/u/pascal)\
**Post date:** [August 29, 2018, 3:50pm UTC](https://discourse.mcneel.com/t/scale-issue-with-svg/69643/4 "2018-08-29T15:50:44Z")

</div>

Hello - it should work to set the print options to scale 1:1 - like so:

 ![image](https://global.discourse-cdn.com/mcneel/original/3X/1/8/18f8928e217a586fb11d11210689dd7954a2a8d5.png)

This is a 100 by 50 rectangle: [junk.zip](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/5/9/5921faa0921edd60d1bd6409231a295a32f97309.zip) (420 Bytes)

-Pascal

---

<div class="post-metadata">

**Author:** ![methode2](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/methode2/32/113047_2.png) [@methode2](https://discourse.mcneel.com/u/methode2)\
**Post date:** [August 30, 2018, 6:09am UTC](https://discourse.mcneel.com/t/scale-issue-with-svg/69643/5 "2018-08-30T06:09:12Z")

</div>

Hello Pascal,

I opened your file and it is not really a 100 by 50 rectangle…

 ![image](https://global.discourse-cdn.com/mcneel/original/3X/c/6/c636514eca0432fa365e9911f815ce486f83594e.png)

---

<div class="post-metadata">

**Author:** ![laurent\_delrieu](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/laurent_delrieu/32/601605_2.png) [@laurent\_delrieu](https://discourse.mcneel.com/u/laurent_delrieu)\
**Post date:** [August 30, 2018, 8:52am UTC](https://discourse.mcneel.com/t/scale-issue-with-svg/69643/6 "2018-08-30T08:52:41Z")

</div>

Hello  
I looked at the file an indeed there are no real length in it. Surely unit converted in points …  
You can use my SVG converts but it works just in Rhino 5. I used it to laser cut things without any problem

> **[Save As Scalable Vector Graphics](https://www.food4rhino.com/en/app/save-scalable-vector-graphics)**
>
> Plug-in to export some Rhino 5 objects to SVG

---

<div class="post-metadata">

**Author:** ![methode2](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/methode2/32/113047_2.png) [@methode2](https://discourse.mcneel.com/u/methode2)\
**Post date:** [August 30, 2018, 9:13am UTC](https://discourse.mcneel.com/t/scale-issue-with-svg/69643/7 "2018-08-30T09:13:43Z")

</div>

“Unfortunatly” I am using Rhino 6 !

---

<div class="post-metadata">

**Author:** ![pascal](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/pascal/32/479395_2.png) [@pascal](https://discourse.mcneel.com/u/pascal)\
**Post date:** [August 30, 2018, 2:48pm UTC](https://discourse.mcneel.com/t/scale-issue-with-svg/69643/8 "2018-08-30T14:48:48Z")

</div>

50 mm = 1.97 inches…

-Pascal

---

<div class="post-metadata">

**Author:** ![scottd](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/scottd/32/494002_2.png) [@scottd](https://discourse.mcneel.com/u/scottd)\
**Post date:** [August 30, 2018, 3:12pm UTC](https://discourse.mcneel.com/t/scale-issue-with-svg/69643/9 "2018-08-30T15:12:29Z")

</div>

What SVG program are you reading it into? We made some changes to 6.8 to include units. But, SVG units are a little odd.

---

<div class="post-metadata">

**Author:** ![methode2](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/methode2/32/113047_2.png) [@methode2](https://discourse.mcneel.com/u/methode2)\
**Post date:** [August 30, 2018, 3:44pm UTC](https://discourse.mcneel.com/t/scale-issue-with-svg/69643/10 "2018-08-30T15:44:20Z")

</div>

For the moment I am creating the file with Rhino and then just reading it with Rhino. (then I will use it for cutting)

---

<div class="post-metadata">

**Author:** ![scottd](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/scottd/32/494002_2.png) [@scottd](https://discourse.mcneel.com/u/scottd)\
**Post date:** [August 30, 2018, 4:01pm UTC](https://discourse.mcneel.com/t/scale-issue-with-svg/69643/11 "2018-08-30T16:01:01Z")

</div>

In Rhino 6.8, the SVG is scaled properly. But the SVG also has the units of printer points. This is an update to 6.8.

So, if you write out an SVG, then read it back in. Check the units, they will probably be Printer points. By changing the units to mm or inches and letting Rhino scale the results the size is correct.

Now in the previous SVG writer the units could be selected. That plugin also runs in Rhino 6 so you can also continue to use the plugin.

---

<div class="post-metadata">

**Author:** ![laurent\_delrieu](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/laurent_delrieu/32/601605_2.png) [@laurent\_delrieu](https://discourse.mcneel.com/u/laurent_delrieu)\
**Post date:** [August 30, 2018, 4:10pm UTC](https://discourse.mcneel.com/t/scale-issue-with-svg/69643/12 "2018-08-30T16:10:17Z")

</div>

Scott I didn’t check the new features of Rhino but I made a SVG plugin to laser cut objects with Sculpteo service. I don’t know for others but sculpteo doesn’t take into account the header with width … A line with 100 length in Rhino and 100 length is SVG is correctly interpreted.  
So my advice to @methode2 make an account at Sculpteo and upload a SVG to see what it gives.

[https://www.sculpteo.com/](https://www.sculpteo.com/)

---

<div class="post-metadata">

**Author:** ![laurent\_delrieu](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/laurent_delrieu/32/601605_2.png) [@laurent\_delrieu](https://discourse.mcneel.com/u/laurent_delrieu)\
**Post date:** [August 30, 2018, 8:32pm UTC](https://discourse.mcneel.com/t/scale-issue-with-svg/69643/13 "2018-08-30T20:32:23Z")

</div>

I have done a test with a 100 mm wide and 50 mm height rectangle and Sculpteo made the scaling  
 ![image](https://global.discourse-cdn.com/mcneel/original/3X/7/2/726ce4814b76de62b0effd611833561d5f2850d4.jpeg)  
with this file

 ![image](https://global.discourse-cdn.com/mcneel/original/3X/4/4/44b9c9e6486d824cef70d1d06221b10c01bc2f4d.png)  
Rhino open it correctly but in “printer points”.

But one strange thing is that as I selected the object the “handle” were also part of the file ! It explains the dimensions from Sculpteo that are 100.5 and 50.5. Is it done on purpose ?

 ![image](https://global.discourse-cdn.com/mcneel/original/3X/e/3/e30aca10cb04c4b1cc5c80c055f307d508faf663.png)

My personal though is that pt must be avoided and prefered, if possible, by the unit the user use.

```auto
("em" | "ex" | "px" | "in" | "cm" | "mm" | "pt" | "pc" | "%")?

```

And some explanation of weirdness of SVG  
[https://mpetroff.net/2013/08/analysis-of-svg-units/](https://mpetroff.net/2013/08/analysis-of-svg-units/)

---

<div class="post-metadata">

**Author:** ![methode2](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/methode2/32/113047_2.png) [@methode2](https://discourse.mcneel.com/u/methode2)\
**Post date:** [September 3, 2018, 1:33pm UTC](https://discourse.mcneel.com/t/scale-issue-with-svg/69643/14 "2018-09-03T13:33:52Z")

</div>

Thank you for all these informations, I am running a 6.8 revision with still the same issue. I am scaling the model each time I open it and it is ok.  
Is there a way to choose the unit when I create a .svg file ? I didn’t see any …

---

<div class="post-metadata">

**Author:** ![okeating](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/okeating/32/683235_2.png) [@okeating](https://discourse.mcneel.com/u/okeating)\
**Post date:** [October 11, 2019, 1:03pm UTC](https://discourse.mcneel.com/t/scale-issue-with-svg/69643/15 "2019-10-11T13:03:44Z")

</div>

[Test.svg.zip](https://discourse.mcneel.com/uploads/short-url/yfaayUtD6cE907IDo5OFvby8nOL.zip) (875 Bytes) I am also having issues with the svg export. It doesn’t seem to be scaling the dimensions correctly. Currently my workflow involves saving as an ai and then a svg from illustrator. It would be nice to eliminate the need for illustrator. Here’re my export settings.

 ![12%20AM](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/6/e/6e5171aa0e501bd760e279e7d8e8dc028dcd69e3.png)

I can’t seem to attach and svg but here’s what I get when I import the svg.

 ![44%20AM](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/4/d/4d4fa22ec8cfba8925218d5236f3d9374e0b0187.png)  
I’m on 6.18 for mac.

---

<div class="post-metadata">

**Author:** ![OXII](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/oxii/32/560003_2.png) [@OXII](https://discourse.mcneel.com/u/OXII)\
**Post date:** [April 23, 2020, 12:13pm UTC](https://discourse.mcneel.com/t/scale-issue-with-svg/69643/16 "2020-04-23T12:13:06Z")

</div>

I want to export a Rhio Layout as svg.

I click on file\>export selected\>svg

But when the Export SVG dialog pops up I set up the right format, but it doesn’t export the svg correctly.  
In the picture attached you see the difference between layout and svg.

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/2/d/2d58c204a5abd059059ad8ec83bf2614eba19761.png)

---

<div class="post-metadata">

**Author:** ![maje90](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/maje90/32/771922_2.png) [@maje90](https://discourse.mcneel.com/u/maje90)\
**Post date:** [July 2, 2020, 5:37pm UTC](https://discourse.mcneel.com/t/scale-issue-with-svg/69643/17 "2020-07-02T17:37:04Z")

</div>

On current Rhino 6 exporting to .svg is still messed up.  
That print-like UI popping up is really not helpful and confusing. Resulting .svg are on wrong scale with any setting I’ve tried.  
Importing the exact same .svg file Rhino6 just exported results in misplaced and mis-scaled curves.  
Not reliable.

@laurent_delrieu , your plugin works great on Rhino 5!  
It doesn’t work on Rhino 6. Is it expected or it’s happening only to me?

Calling the SaveAsSVG open the path+filename form correctly, but after clicking the “Save” button nothing happens, on Rhino 5 it opens your plugin UI.

---

<div class="post-metadata">

**Author:** ![pascal](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/pascal/32/479395_2.png) [@pascal](https://discourse.mcneel.com/u/pascal)\
**Post date:** [July 2, 2020, 5:47pm UTC](https://discourse.mcneel.com/t/scale-issue-with-svg/69643/18 "2020-07-02T17:47:05Z")

</div>

Hello - Just testing V6 here with a simple file, exporting 1:1 seems to work fine; dimensions are reading correctly… I’ll try mac.

-Pascal

---

<div class="post-metadata">

**Author:** ![maje90](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/maje90/32/771922_2.png) [@maje90](https://discourse.mcneel.com/u/maje90)\
**Post date:** [July 2, 2020, 6:00pm UTC](https://discourse.mcneel.com/t/scale-issue-with-svg/69643/19 "2020-07-02T18:00:37Z")

</div>

Hi Pascal.  
I’m on windows.  
Other than out of scale and misplaced, rhino svg export function also alter the shapes: circles and nurbs curves are deformed in the process.  
On Laurent plugin that doesn’t happen.

---

<div class="post-metadata">

**Author:** ![pascal](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/pascal/32/479395_2.png) [@pascal](https://discourse.mcneel.com/u/pascal)\
**Post date:** [July 2, 2020, 6:03pm UTC](https://discourse.mcneel.com/t/scale-issue-with-svg/69643/20 "2020-07-02T18:03:01Z")

</div>

Hi Riccardo - can you post a simple example (3dm file, svg export, settngs, please) of that? - please also send a version, that you like, from the plug-in.

thanks,

-Pascal

[Next page](https://discourse.mcneel.com/t/scale-issue-with-svg/69643.md?page=2)
