Try this link. It's not 100% the answer you are looking for, but may help. In addition to what's there, check SolidWorks help, maybe in API. I believe there's a Solidworks standard variable that holds the current revision info.
http://www.eng-tips.com/viewthread.c...161452&page=10