Is there a python example of Rhino.RhinoDoc.ExportSelected?

I get this:

Message: ExportSelected() takes exactly 2 arguments (1 given)

Can you provide a small code snippet of what isn’t working for you?

– Dale

Rhino.RhinoDoc.ExportSelected(rel_path + "SVG\\" + pnl_name + ".svg")

From Python, this should read:

import scriptcontext
path = '<some file path>'

– Dale

1 Like

Nice. Now, how do I suppress the DWG/DXF scheme command line dialog when ExportingSelected to .DWG?
Or am I forced to use Rhino.RhinoApp.RunScript("-" + strCommand, False)?

Yes, use this…

– Dale

It’d be nice to just mention the scheme in Rhino.RhinoDoc.ExportSelected(). :slight_smile: