Hi, I’m fairly new to Rhino development so excuse me if this has already been asked.
I’m trying to write C# code that saves the current document to an .obj format, but I don’t want to have any user input necessary. I’d like to be able to specify or automatically provide all options necessary. Currently, there are a number of prompts in the methods I have tried.
RhinoApp.RunScript("-_SelAll \n_Export \"C:\myfile.obj\" \n _Enter");
This doesn’t seem to work for me
Rhino.FileIO.FileWriteOptions options = new Rhino.FileIO.FileWriteOptions(); options.WriteSelectedObjectsOnly = true; options.SuppressDialogBoxes = true; doc.WriteFile("C:\myfile.obj", options);
Nicely suppresses the popup dialogs, but then prompts for the options anyway.