Macro Language Reference > Macros > Document > trevert
  
trevert
Description
Closes the current document, without saving any changes made, and reverts to the last saved version.
 
This macro is an alias of the revert macro.
Syntax
trevert force:n?
trevert
[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.