New and Updated SVG Editor for Rhino - Available in Rhino 8.9

This fix should be in 8.11 and 8.12

This fix should also be in 8.11 and 8.12

I used to draw icons in Rhino and export as svg icons for custom commands in Script Editor.

With new SVG Editor, importing svg seems not working well for now.

Hey @tpuaup,

There are quite a few issues that have been resolved in R8.12/13/14. Can you drop your SVG here and I’ll see if it’s still an issue? :slight_smile:

there you go

SetCrvProperty
test

Copy, cut and paste are not working for me.

What version/os are you using @robneto.eng ?
And if Windows are you running in netframework or netcore?
If you’re unsure, a SystemInfo dump is always great.

Update : I was able to replicate this and created a ticket/fix
https://mcneel.myjetbrains.com/youtrack/issue/RH-84446/SVGEditor-Copy-Paste-not-functioning

@tpuaup this is odd. In the latest version I see them, but they are scaled strange. I’ll take a look into this for this ticket.

https://mcneel.myjetbrains.com/youtrack/issue/RH-84447/SVG-Editor-Scales-Strangely

To be honest I have no clue what running windows in netframework or netcore means, but here is a screenshot of my system info, I hope that helps.

  • Send backwards and bring forward are also not working

That helps, but Rhino itself has a command: systeminfo. When you run that it produces a text file with information of specific interest to Rhino developers and support folks. You can attach it here essentially the same way you attached your screenshot. That’s what Callum was looking for.

Ah ok. Here:

Rhino 8 SR13 2024-10-15 (Rhino 8, 8.13.24289.13001, Git hash:master @ 310800db9652d56ee534033b23cd53c62b5a1322)
License type: Commercial, build 2024-10-15
License details: Cloud Zoo

Windows 10 (10.0.19045 SR0.0) or greater (Physical RAM: 48GB)
.NET 7.0.0

Computer platform: DESKTOP (Hosting Remote Desktop session)

Standard graphics configuration.
Primary display: Microsoft Remote Display Adapter (Microsoft) Memory: 0MB, Driver date: 6-21-2006 (M-D-Y).
> Remote Desktop display device with 16 connection(s)
- Windows Main Display using connection #0
Primary OpenGL: NVIDIA Quadro P2000 (NVidia) Memory: 5GB, Driver date: 6-4-2018 (M-D-Y). OpenGL Ver: 4.6.0 NVIDIA 391.74
> Accelerated graphics device with 0 adapter port(s)
- There are no monitors attached to this 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: 6-4-2018
Driver Version: 23.21.13.9174
Maximum Texture size: 32768 x 32768
Z-Buffer depth: 24 bits
Maximum Viewport size: 32768 x 32768
Total Video Memory: 5 GB

Rhino plugins that do not ship with Rhino
C:\Users\rneto\Desktop\RobNeto\elefront421\ElefrontProperties.rhp ā€œElefrontPropertiesā€ 1.0.0.0

Rhino plugins that ship with Rhino
C:\Program Files\Rhino 8\Plug-ins\Commands.rhp ā€œCommandsā€ 8.13.24289.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.24289.13001
C:\Program Files\Rhino 8\Plug-ins\rdk_etoui.rhp ā€œRDK_EtoUIā€ 8.13.24289.13001
C:\Program Files\Rhino 8\Plug-ins\NamedSnapshots.rhp ā€œSnapshotsā€
C:\Program Files\Rhino 8\Plug-ins\MeshCommands.rhp ā€œMeshCommandsā€ 8.13.24289.13001
C:\Program Files\Rhino 8\Plug-ins\RhinoCycles.rhp ā€œRhinoCyclesā€ 8.13.24289.13001
C:\Program Files\Rhino 8\Plug-ins\Toolbars\Toolbars.rhp ā€œToolbarsā€ 8.13.24289.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ā€

Thanks for this @robneto.eng ,

It looks to me like they are inverted, are you seeing this beahviour as well @robneto.eng ?

Not really. But I realised that if I use the shortcuts ctrl+b and ctrl+shift+b while moving and object then they work. But if I just select an object an try the same thing nothing happens.

You find the shortcuts work, but clicking the menu item doesn’t work?

So, I tested it just now and they are working fine - both the menu items and the shortcuts. There were a few updates since last time I checked, so maybe it’s been fixed?

Copy and paste are still not working for me though.

Glad to hear it @robneto.eng,

Copy/Paste will be released I believe in 8.14

Rhino 8.13 - I’m still having problems importing external .svg. They are created in Inkscape, saved as plain .svg, the editor loads and displays them, but they don’t show up in the preview, and the button remains empty when saved. When I edit it again, I can see the image in the editor.

(Also saving .rui is still broken, @Helvetosaur has recommended renaming the .rui file and loading it again, that helps.)

There’s lots of fixes in 8.14 for the svg editor, please try and let me know if that solves your issues :slight_smile:

If not, could you attach the SVGs here? I’d love to get that fixed!

The problem persists in 8.14. Having the Rhino svg Editor open also lags my whole system, and the File menu opens in top left screen corner.

Attached: preview of button, .svg, sysinfo.

Template

Rhino 8 SR14 2024-11-12 (Rhino 8, 8.14.24317.14001, Git hash:master @ 69ab12ed53cf1e6d17f23ab5fec3c3f7216df72d)
License type: Commercial, build 2024-11-12
License details: Cloud Zoo

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

Computer platform: DESKTOP 

Standard graphics configuration.
  Primary display and OpenGL: NVIDIA GeForce RTX 3050 (NVidia) Memory: 6GB, Driver date: 8-14-2024 (M-D-Y). OpenGL Ver: 4.6.0 NVIDIA 560.94
    > Accelerated graphics device with 4 adapter port(s)
        - Windows Main Display attached to adapter port #0
        - Secondary monitor attached to adapter port #1

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: 8-14-2024
  Driver Version: 32.0.15.6094
  Maximum Texture size: 32768 x 32768
  Z-Buffer depth: 24 bits
  Maximum Viewport size: 32768 x 32768
  Total Video Memory: 6 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.14.24317.14001
  C:\Program Files\Rhino 8\Plug-ins\WebBrowser.rhp	"WebBrowser"	
  C:\Program Files\Rhino 8\Plug-ins\rdk.rhp	"Renderer Development Kit"	
  C:\Program Files\Rhino 8\Plug-ins\RhinoScript.rhp	"RhinoScript"	
  C:\Program Files\Rhino 8\Plug-ins\IdleProcessor.rhp	"IdleProcessor"	
  C:\Program Files\Rhino 8\Plug-ins\RhinoRenderCycles.rhp	"Rhino Render"	8.14.24317.14001
  C:\Program Files\Rhino 8\Plug-ins\RhinoRender.rhp	"Legacy Rhino Render"	
  C:\Program Files\Rhino 8\Plug-ins\rdk_etoui.rhp	"RDK_EtoUI"	8.14.24317.14001
  C:\Program Files\Rhino 8\Plug-ins\NamedSnapshots.rhp	"Snapshots"	
  C:\Program Files\Rhino 8\Plug-ins\MeshCommands.rhp	"MeshCommands"	8.14.24317.14001
  C:\Program Files\Rhino 8\Plug-ins\RhinoCycles.rhp	"RhinoCycles"	8.14.24317.14001
  C:\Program Files\Rhino 8\Plug-ins\Toolbars\Toolbars.rhp	"Toolbars"	8.14.24317.14001
  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"	

Thanks for this! There was a report of very very bad lagging on windows, but that was fixed in 8.14. I’ll do some profiling and take a look to see if I can find anything else :slight_smile:

Hi @CallumSykes,

i’ve been using the new svg editor only to bring my own svg icons in and found some issues worth mentioning.

  1. My icons are created in RH8 by capturing to svg. The svg is saved on disk and the content (text) of the svg file is also copied to the clipboard so i can just paste it into a button.

  2. It seems sometimes, if the svg contains a gradient hatch created in RH8, it does not paste anything, however, if i import the same svg using the Open or Import button, it comes in fine. Here is one example svg to repeat that, i cannot paste the svg text, the editor remains empty:
    Example

  3. In the previous ā€˜icon image editor’, it was possible to paste from the clipboard and at the same replace the content of the editor. This is unfortunately not possible anymore. (or by intent to add things to the button ?) I have to first CTRL+A to select everything and then hit the DEL key to get rid of it. When i then paste the text of an svg icon, i always get a blurry pixelated preview. Once i OK the dialog and open it up again, it looks crisp.

  4. The menu entry File > Close does not work.

Could you please add a button to the toolbar on top to delete the current icon ?

thanks,
c.