Hello everybody,
here is my first program for Rhino. I did components for Grasshopper, but my last UI was with Borland C++. So I have still a lot to learn.
So here is an SVG exporter with a what you see is what you get. It is still a WIP but some advices could be interesting.
I use Rhinocommon with c#, XMLdocument to put the SVG in memory, Winform and SVG rendering library 2.2.1 for rendering SVG (NuGet Gallery | Svg 3.4.4).
Hope it will work on your computer and options are quite easy to understand.
- At the moment everything is converted in mm (like linewidth unit). It is easy to change but I have a bug so I disable option.
- Point could be filled but it doesn’t work with SVG renderer which use option of group rather than option on object) but works on Inkscape.
- Text as SVG text is not at the good scale nor the good position, text as curve is OK
- Hatch is copied to SVG
- Annotation, texdot, dimensions are not copied
- Nurbs are converted to Bezier
- Circle to Circle
- Layer have the same organisation as Rhino but rendering is inverse.
- There is not the option button on savefile dialog
- The zoom of SVG render and move is with text box. Not mouse yet !!
Hope it could help
I must put it on Github when I will understand how to do it !