Alternative to Revert command for Rhino 4.0?

_Revert is a new command in Rhino 5. I am trying to script on a Rhino 4.0 system and require a functional replica of the Revert command. UndoMultiple and UndoSelected are not very useful here because these commands only undo command line calls and not function calls.

Revert opens the last saved version of a file so how about just re-opening the current file?


@krsnadas, here is one starter for Rhino 4. Revert.rvb (717 Bytes)


1 Like

Thanks, @clement and @Willem I guess this could also work:

Dim fileName 'Get file name to open here
Dim optionNo: optionNo = "No"
Call Rhino.Command "_-Open optionNo" + fileName