Modifying the Rhino SVG icons using Rhino

I’m doing some experimenting with editing the .svg icons exported from the V8 toolbars in Rhino.

Once exported, I import the .svg into Rhino. In the import .svg dialog, I have to choose to import it as curves, hatches or trimmed planes. Curves only gets you curves, I want the colored hatches as well. So I choose Hatches, although what I really wanted was curves+hatches. Here is a comparison of what got imported with what you see in the button editor.

Interestingly enough I get some curves anyway plus the hatches. I don’t get the colored hatch borders as curves, but those I can get via DupBorder in Rhino if necessary.

I see however that what appears black in the editor does not export as a hatch - maybe because they’re light/dark elements? I guess these guys will be either black in light mode or white in dark mode? But I’m thankful for having the curves.

It would have been nice to have the outer border exported with the icon, but as I have been playing around with it a while I know that it is a 48x48 square (at least here) with world 0 as the upper left corner. I drew the square and set it to “No Print” so that when printing at 1:1 / Extents, it will automatically snap to the square and center the design.

I don’t know how to set it up so that the light/dark stuff that came in as curves can go back out as something that will be either light or dark… Maybe there is some sort of special info to add there. So I made a light mode icon and simply hatched them black. I made a couple of other mods and then hid all the curves, and exported just the hatches as SVG. Imported that into a new button, the result looks OK. Be interesting to know if this could be done better.