The attached Macro has the following:
If Dir(AutoCadPath & "\" & filenamedwg) <> "" Then
MsgBox "AutoCad With Model CP Rev Already Exists -Cannot Overwrite File", vbInformation
swModelDocExt.SaveAs AutoCadPath & "\" & filenamedwg,0, 0, swExportData, 0, 0
MsgBox "Saved Drawing as DWG:" & vbCrLf & AutoCadPath & "\" & vbCrLf & filenamedwg
I would like help to have my Macro check for existing dwg file when a muiti sheet SW drawing has been exported as separate dwg drawings I need to inject a line that will ignore the 00_ & 01_
02_ etc... at the beginning of file name somehow when a muiti sheet SW drawing has been exported as separate dwg drawings.
It, The macro, works OK for single sheet DWG & PDF export. Its the multi sheet that I am having a problem with