I am writing .NET plugin using RhinoCommon. I have a requirement to export the mesh as OBJ with a certain set of options (such as use polygon mesh instead of Nurbs). I am using RhinoDoc.WriteFile function. Is there a way I can programatically determine these options (irrespective of what user might have chosen) and use it ?
Jordy is correct. The best way (and sometimes the only way) to export geometry to a non-Rhino format is to script either the SaveAs or Export commands using the Rhino.RhinoApp.RunScript static function.
Here is some useful information about how to script (or run) commands from a plug-in command.