Bug report: drawing has unwanted offset when saving layout as SVG

Here is a file:
svg-bug.3dm (174.3 KB)

There is a layout with this drawing on it as an example:

The bug happens whatever the drawing though.

If you try saving the file as SVG using the layout as reference space, there is an unwanted offset:

Steps to reproduce:

  • open the file above
  • save as SVG
  • see what happens in the export option

Additionally there is another bug (probably related) when trying to set the window manually:

Rhino 8 SR13 2024-11-12 (Rhino 8, 8.13.24317.13001, Git hash:master @ ca3666c3ebed2b9567e10930077bfa0884f65db9)
License type: Commercial, build 2024-11-12
License details: Cloud Zoo

Windows 11 (10.0.22631 SR0.0) or greater (Physical RAM: 31GB)
.NET 7.0.0

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

Hybrid graphics configuration.
  Primary display: AMD Radeon(TM) Graphics (AMD) Memory: 1GB, Driver date: 10-17-2023 (M-D-Y).
    > Integrated accelerated graphics device with 3 adapter port(s)
        - Secondary monitor is laptop's integrated screen or built-in port
        - Windows Main Display attached to adapter port #1
  Primary OpenGL: NVIDIA GeForce RTX 3070 Laptop GPU (NVidia) Memory: 8GB, Driver date: 10-15-2024 (M-D-Y). OpenGL Ver: 4.6.0 NVIDIA 566.03
    > Integrated accelerated graphics device with 4 adapter port(s)
        - Secondary monitor is laptop's integrated screen or built-in port

OpenGL Settings
  Safe mode: Off
  Use accelerated hardware modes: On
  GPU Tessellation is: 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: NVIDIA Corporation
  Render version: 4.6
  Shading Language: 4.60 NVIDIA
  Driver Date: 10-15-2024
  Driver Version: 32.0.15.6603
  Maximum Texture size: 32768 x 32768
  Z-Buffer depth: 24 bits
  Maximum Viewport size: 32768 x 32768
  Total Video Memory: 8 GB

Rhino plugins that do not ship with Rhino
  C:\Program Files\SimLab\Plugins\SimLab PDF From Rhino\SimLabPDFExporter.rhp	"SimLab PDF Exporter"	

Rhino plugins that ship with Rhino
  C:\Program Files\Rhino 8\Plug-ins\Commands.rhp	"Commands"	8.13.24317.13001
  C:\Program Files\Rhino 8\Plug-ins\rdk.rhp	"Renderer Development Kit"	
  C:\Program Files\Rhino 8\Plug-ins\RhinoRenderCycles.rhp	"Rhino Render"	8.13.24317.13001
  C:\Program Files\Rhino 8\Plug-ins\rdk_etoui.rhp	"RDK_EtoUI"	8.13.24317.13001
  C:\Program Files\Rhino 8\Plug-ins\NamedSnapshots.rhp	"Snapshots"	
  C:\Program Files\Rhino 8\Plug-ins\MeshCommands.rhp	"MeshCommands"	8.13.24317.13001
  C:\Program Files\Rhino 8\Plug-ins\RhinoCycles.rhp	"RhinoCycles"	8.13.24317.13001
  C:\Program Files\Rhino 8\Plug-ins\export_SVG.rhp	"Export SVG"	8.13.24317.13001
  C:\Program Files\Rhino 8\System\netcore\export_PDF.rhp	"PDF Export"	8.13.24317.13001
  C:\Program Files\Rhino 8\Plug-ins\Toolbars\Toolbars.rhp	"Toolbars"	8.13.24317.13001
  C:\Program Files\Rhino 8\Plug-ins\3dxrhino.rhp	"3Dconnexion 3D Mouse"	
  C:\Program Files\Rhino 8\Plug-ins\Displacement.rhp	"Displacement"	
  C:\Program Files\Rhino 8\Plug-ins\SectionTools.rhp	"SectionTools"

Hi Felix -

This behavior is not reproducible on my machines.
Can you make it work as expected by drawing something in model space and first exporting that as SVG, and then go back to the layout and save that as SVG?
-wim

Hi Wim,

Thank you for your reply.

Following your suggestion I tried saving some drawing from model space and I seem to have the exact same issue:

I don’t understand why you can’t reproduce on your end, the only plugin I have is SimLabPDFExporter, do you think it could cause it ? It’s something that export 3D PDF files (I’d love if Rhino could do that natively by the way).

HI Felix -

That’s very unlikely, but easily ruled out. Disable the plug-in in the plug-in manager and restart Rhino.

Also by the way :ø) - I bought the SimLab 3D PDF plug-in, what?, 15 years ago and loved it. I’m afraid it’s equally unlikely that I’ll see this ever show up in a native version of Rhino.
-wim

I just tried it, same result. What else could go wrong ?

Yes pretty handy for sharing with non-CAD people, especially when they like to archive everything (else I’d show some online viewers instead, it’s nicer usually).

Hi Felix -

I can’t tell from the system info, are you running on one or two monitors?

Also, what are your Win OS Regional Settings set to?
-wim

French keyboard, English UK as preferred language:

Actually three: my laptop and two additional monitors. Since you suggested it might cause it, I tried unplugging the two additional monitors and tried saving as SVG again, but got the exact same result.

Here is my system specs with the two monitors unplugged and the plugins disabled:

Rhino 8 SR13 2024-11-12 (Rhino 8, 8.13.24317.13001, Git hash:master @ ca3666c3ebed2b9567e10930077bfa0884f65db9)
License type: Commercial, build 2024-11-12
License details: Cloud Zoo

Windows 11 (10.0.22631 SR0.0) or greater (Physical RAM: 31GB)
.NET 7.0.0

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

Hybrid graphics configuration.
  Primary display: AMD Radeon(TM) Graphics (AMD) Memory: 1GB, Driver date: 10-17-2023 (M-D-Y).
    > Integrated accelerated graphics device with 3 adapter port(s)
        - Windows Main Display is laptop's integrated screen or built-in port
  Primary OpenGL: NVIDIA GeForce RTX 3070 Laptop GPU (NVidia) Memory: 8GB, Driver date: 10-15-2024 (M-D-Y). OpenGL Ver: 4.6.0 NVIDIA 566.03
    > Integrated accelerated graphics device with 4 adapter port(s)
        - Video pass-through to primary display device

OpenGL Settings
  Safe mode: Off
  Use accelerated hardware modes: On
  GPU Tessellation is: 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: NVIDIA Corporation
  Render version: 4.6
  Shading Language: 4.60 NVIDIA
  Driver Date: 10-15-2024
  Driver Version: 32.0.15.6603
  Maximum Texture size: 32768 x 32768
  Z-Buffer depth: 24 bits
  Maximum Viewport size: 32768 x 32768
  Total Video Memory: 8 GB

Rhino plugins that do not ship with Rhino

Rhino plugins that ship with Rhino
  C:\Program Files\Rhino 8\Plug-ins\Commands.rhp	"Commands"	8.13.24317.13001
  C:\Program Files\Rhino 8\Plug-ins\rdk.rhp	"Renderer Development Kit"	
  C:\Program Files\Rhino 8\Plug-ins\RhinoRenderCycles.rhp	"Rhino Render"	8.13.24317.13001
  C:\Program Files\Rhino 8\Plug-ins\rdk_etoui.rhp	"RDK_EtoUI"	8.13.24317.13001
  C:\Program Files\Rhino 8\Plug-ins\NamedSnapshots.rhp	"Snapshots"	
  C:\Program Files\Rhino 8\Plug-ins\MeshCommands.rhp	"MeshCommands"	8.13.24317.13001
  C:\Program Files\Rhino 8\Plug-ins\RhinoCycles.rhp	"RhinoCycles"	8.13.24317.13001
  C:\Program Files\Rhino 8\Plug-ins\export_SVG.rhp	"Export SVG"	8.13.24317.13001
  C:\Program Files\Rhino 8\Plug-ins\Toolbars\Toolbars.rhp	"Toolbars"	8.13.24317.13001
  C:\Program Files\Rhino 8\Plug-ins\3dxrhino.rhp	"3Dconnexion 3D Mouse"	
  C:\Program Files\Rhino 8\Plug-ins\Displacement.rhp	"Displacement"	
  C:\Program Files\Rhino 8\Plug-ins\SectionTools.rhp	"SectionTools"

I had 4 people in my team test it, and I can confirm it only comes from my own setup. They all have at least 1 additional monitor with a laptop, and one has 2 additional monitors.

Hi Felix -

Could you run the Reset command and then click the Save Settings for Support… button, save the zip file, and then just cancel the Reset command? Then post that file.
-wim

Here it is:
RhinoSettingsForSupport.zip (4.9 MB)

I never used the Reset command, so to be clear: I ran the Reset command, and got the modal window with options. Then I didn’t check any of the checkboxes, I just clicked Save Settings for Support. Then I clicked the cancel button of the modal window.

Hi Felix -

Thanks. It doesn’t look like there is anything in there that leads to this behavior.
Just to make sure though, can you create a copy of the Rhino icon on the desktop and then open the properties of that copy? Change the Target to something like

“C:\Program Files\Rhino 8\System\Rhino.exe” /scheme=Felix

Then launch Rhino from that new icon and see if that makes a difference.
-wim

Yes it does make a difference, it works as expected using the shortcut:

Does the shortcut start Rhino with the default configuration ? Does it mean that the issue is coming from my particular config ?

Hi Felix -

Yes.
You can use different “schemes” in Rhino and launch Rhino in a specific scheme by using shortcuts that target a specific scheme. When you make a new shortcut and set a new name for the scheme, Rhino puts all files in place for that new scheme and all of those new files are factory-default.

Yes.
The weird thing, though, is that this must be something that wasn’t captured in the files that are zipped up by the Reset command.

In Windows Explorer, please go to

%appdata%\McNeel\Rhinoceros\8.0

and zip all files in that folder and send that over.
-wim

I just sent it in a private message