Macro Language Reference > Macros > Document > revert
  
revert
Description
Closes the current document, without saving any changes made, and reverts to the last saved version.
 
This macro is an alias of the trevert macro.
Syntax
revert force:n?
revert
[no parameter]
Revert a document to the last saved version, discarding all changes.
force
|0
Warn if there have been changes made to the document since it was last saved. This gives you an opportunity to stop the revert operation from taking place if required.
1
Do not warn if there have been changes made to the document since it was last saved. PTC ALD will automatically revert to the last saved version of the document.