How to create a macro to update custom properties Revision from A to B by using the Solidworks filename?

How to create a macro to update custom properties Revision from A to B by using the Solidworks filename?

SolidworksApi macros