SVG export

I generate svg files for laser cutting.

My current workflow is to make a 2D drawing from my CAD model, print that to .pdf using CutePDF Writer, and then open the .pdf in Inkscape to define the units (mm) and to re-size the paper to the minimum before saving as a .svg file.

As Rhino has a export to svg function, that should be simpler, but I would prefer to have a method where the output size is automatically the minimum bounding box for the selected objects, not a larger paper size. While you can set a custom paper size, that is not as convenient as the re-size option in Inkscape.

Is there a way to just export the selected objects in svg with a minimum bounding box paper size as a single command?

I’ve tried printing with Rhino PDF, but it includes invisible artifacts that then prevent Inkscape from re-sizing the paper correctly, so I continue to use CutePDF writer instead.



Have you tried this?: Graphic+ | Food4Rhino
There are some different options for SVG, maybe you will find it useful :wink:

Thanks. I have not tried that as I do not have Grasshopper.


Hi Paul -

I’m afraid there isn’t, no. In my previous job, I regularly had to go through that process several times a day and it really drove me up the wall. I don’t think I was ever able to get the message across (here, for example) but it was put on the list as an issue in 2006 - RH-2601 (not visible to the public) - I’ve added this thread as a comment.
Actually, it looks like this was added several times - this is a public version: RH-2408.

Could you post a simple 3dm file that I can use to try and reproduce that behavior with? Also, please run the Rhino SystemInfo command and copy-paste the result here.


Attached is a simple .3dm file that demonstrates the issue as requested.

I used an A2 paper size to print the 2 objects close together. Do not select the left hand object to print.

What I found was that with the TEXT layer turned off, Rhino PDF works correctly, but if the TEXT layer is turned on, it causes Rhino PDF to include some hidden artifacts that prevent Inkscape from trimming the image down to the true minimum size. Something is included in the upper left corner.

The issue is caused by the TEXT layer, even though it is not in the print area, nor does selecting all with just the TEXT layer visible show any objects in the print area.

Rhino PDF created files with and without the TEXT layer attached.
Rhino PDF Test - No Text.pdf (18.1 KB)
Rhino PDF Test.pdf (37.5 KB)
Rhino PDF Test.3dm (3.2 MB)

System info below.

Rhino 7 SR13 2021-12-14 (Rhino 7, 7.13.21348.13001, Git hash:master @ 7696723f74a63695b3c372a89110c0ca8c78b890)
License type: Commercial, build 2021-12-14
License details: Cloud Zoo

Windows 10.0.19044 SR0.0 or greater (Physical RAM: 12Gb)

Computer platform: LAPTOP - Plugged in [100% battery remaining]

Standard graphics configuration.
Primary display and OpenGL: Intel(R) Iris(R) Plus Graphics (Intel) Memory: 1GB, Driver date: 2-18-2021 (M-D-Y). OpenGL Ver: 4.6.0 - Build
> Integrated graphics device with 3 adapter port(s)
- Windows Main Display is laptop’s integrated screen or built-in port

OpenGL Settings
Safe mode: Off
Use accelerated hardware modes: On
Redraw scene when viewports are exposed: On
Graphics level being used: OpenGL 4.6 (primary GPU’s maximum)

Anti-alias mode: 4x
Mip Map Filtering: Linear
Anisotropic Filtering Mode: High

Vendor Name: Intel
Render version: 4.6
Shading Language: 4.60 - Build
Driver Date: 2-18-2021
Driver Version:
Maximum Texture size: 16384 x 16384
Z-Buffer depth: 24 bits
Maximum Viewport size: 16384 x 16384
Total Video Memory: 1 GB

Rhino plugins that do not ship with Rhino

Rhino plugins that ship with Rhino
C:\Program Files\Rhino 7\Plug-ins\Commands.rhp “Commands” 7.13.21348.13001
C:\Program Files\Rhino 7\Plug-ins\rdk.rhp “Renderer Development Kit”
C:\Program Files\Rhino 7\Plug-ins\RhinoRenderCycles.rhp “Rhino Render” 7.13.21348.13001
C:\Program Files\Rhino 7\Plug-ins\RhinoRender.rhp “Legacy Rhino Render”
C:\Program Files\Rhino 7\Plug-ins\rdk_etoui.rhp “RDK_EtoUI” 7.13.21348.13001
C:\Program Files\Rhino 7\Plug-ins\rdk_ui.rhp “Renderer Development Kit UI”
C:\Program Files\Rhino 7\Plug-ins\NamedSnapshots.rhp “Snapshots”
C:\Program Files\Rhino 7\Plug-ins\RhinoCycles.rhp “RhinoCycles” 7.13.21348.13001
C:\Program Files\Rhino 7\Plug-ins\export_PDF.rhp “PDF Export” 7.13.21348.13001
C:\Program Files\Rhino 7\Plug-ins\Toolbars\Toolbars.rhp “Toolbars” 7.13.21348.13001
C:\Program Files\Rhino 7\Plug-ins\3dxrhino.rhp “3Dconnexion 3D Mouse”
C:\Program Files\Rhino 7\Plug-ins\Displacement.rhp “Displacement”