How to get the latest version of solidworks pdm file through macro

Hi all,

        I want  the sample code to get the latest version of solidworks active doc (pdm).

      Please help me.

Thanks in Advance

Manikandan.B

SolidworksApi macros