Roll back revision PDMW

Hi all,

Is it possible to roll back a PDMW document to a previous revision using a macro?

Cheers

SolidworksApi macros