Can someone figure out what is wrong with my macro?

I am trying to create a macro that will save my drawing as a pdf into a specified folder. The name of the file should contain the part name + rev. I figured out how to save as pdf however I can't figure out how to add the rev to the file name. I have looked on many other posts related to my question but none have helped. I highly appreciate any assistance.

I have attached my "original" macro which is without any attempt to add rev and "test" which with an attempt.

SolidworksApi macros