Hi,
As the forum moved here since the 4th of july I’ve added all the thread below this message…
Is there no way to pass (maybe temporary) some predefined parameters to the Acad Export plugin, then WriteFile could have all its sub commands questions already filled before running it?
Is there another method than “RunScript” to execute a command? Actually, if a put RunScript within an event, nothing append (by the way the scripted command works if I put it directly within the override RunCommand function).
Thanks,
Hi Martin,
If you want to save in any file format other than 3dm, you will need to
script the Save or SaveAs commands - sorry.
–
Dale Fugier
Rhinoceros Development
Robert McNeel & Associates
Thanks Dale,
I tried this to save selected objects to DWG. The only problem is that it
stucks on “Write the file using scheme “Scheme Name” (Scheme):”.
Rhino.FileIO.FileWriteOptions options = new Rhino.FileIO.FileWriteOptions();
options.SuppressDialogBoxes = true;
options.WriteSelectedObjectsOnly = true;
options.IncludeRenderMeshes = true; // Save Small
options.WriteGeometryOnly = false; // Geometry Only
options.IncludeBitmapTable = false; // Save Texture
bool result = RhinoDoc.ActiveDoc.WriteFile(“C:\test.dwg”, options);
RhinoApp.WriteLine(“Export selected: {0}”, result);
Thanks
Hi,
Use RhinoDoc.WriteFile.
–
Dale Fugier
Rhinoceros Development
Robert McNeel & Associates
Is there a method within RhinoCommon where I could directly save selected
objects to a file without using the command (RunScript).
The fact, is I need to save objects to file after receiving a message from
a TCP Client. Calling runscript within a event do not seems to be possible
as far as I know.
Thanks,
Martin