Rhino Script for Export returns false

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

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


        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);


Please review and let me know if this helps.

– Dale

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.