Export SVG from Pancake without dialogue box

Hi, I’m trying to export an svg from grasshopper using the Pancake “Export As” component. I’m getting a dialogue box but I’m hoping to do autonomously. I assume this is a matter of providing the right information to the Opt input. Does anyone know how to provide the correct Opt information?


SVG Export.gh (21.4 KB)

For future references, Pancake cannot automate SVG export due to the limitations of Rhino’s SVG export plugin. It may be resolved in Rhino 7. Currently I would recommend Aviary.

Rhino 6 does have a rather simplified SvgWriter. I may implement it somewhere to be used in GH.

Rhino 7 has a file export method that had been added. And I believe print methods too. https://developer.rhino3d.com/wip/api/RhinoCommon/html/N_Rhino_FileIO.htm