I am very new to any macro creation and after a lot of hair pulling, finally got a Save-As macro to work. Currently it is set to work in an open SW drw, and saves a .dwg and .pdf to a specified folder.
It works fine except for multiple sheet drawings. I am using GetTitle() to get the name, but that includes the sheet names (in our case, xxxxxx-1, xxxxxx-Sheet1, xxxxxx-Sheet2...). I am able to eliminate the -1 for the main sheet, but it leaves -Sh for all subsequent sheets.
Is there a command that will grab the name it actually saves under, i.e. just the xxxxxx?
SolidworksApi macros