Hi!

I have a command file for automating/batching some computations in rhino, during the process it modifies files, exports them as something else, opens plugins, etc.

As it should run on a remote computer, I need to be able to close rhino after batch is finished. Yet nor Rhino.Exit() from script nor -exit _Enter from command file does that (seemingly). And if I close it manually there are prompts for saving unsaved changes. It looks like, if the window doesn't have focus, exit command is processed but the Save changes... message box is not shown at all.

Is there a way to close rhino from script and ignore unsaved changes (maybe some startup option)?

Regards,

Boris Zapotocky

Views: 359

Replies to This Discussion

Hi Boris,

The only scripting way to have Rhino not save a modified document when closing is to call RhinoScript's DocumentModified method.

http://4.rhino3d.com/5/rhinoscript/document_methods/documentmodifie...

Something like this should do it:

_-RunScript ("Rhino.DocumentModified False")

RSS

Translate

© 2014   Created by McNeel Admin.

Badges  |  Report an Issue  |  Terms of Service