Rhino Script for Export returns false


#1

This is the c# snippet for exporting to a dxf file.

the script returns false.
could someone help me to spot what’s wrong.

        doc.Objects.Select(guids);

        string dir = "D:\\JOBS\\test.dxf";

        // Export command
        string command = "-_Export \"" + dir + "\" _Scheme \"Default\" _Enter"; 

        bool result = RhinoApp.RunScript(command, false);
        RhinoApp.WriteLine("Export selected: {0}", result);

        doc.Objects.UnselectAll();

(Dale Fugier) #2

Please review and let me know if this helps.

– Dale


#3

Hi @dale,

I would have read this post about 20 to 25 times but missed one particular line that was crucial -> to add the command style.

thanks and sorry for the trouble.