need a macro that saves drawing as dwg, with a file name that matches the drawing I use it on.

My current macro saves the drawing to my desktop as a dwg, but when I created the macro I used the name part2. Any drawing I use this macro on saves the drawing as "part2.dwg" how can I edit my macro to save as the file name of the drawing I am using the macro on.

Thanks!

SolidworksApi macros