AnsweredAssumed Answered

Would like help to have Macro check for existing dwg file when a muiti sheet SW drawing has been exported as separate dwg drawings

Question asked by Robert Conklin on Mar 14, 2016
Latest reply on Mar 14, 2016 by Robert Conklin

The attached Macro has the following:

 

If Dir(AutoCadPath & "\" & filenamedwg) <> "" Then

MsgBox "AutoCad With Model CP Rev Already Exists -Cannot Overwrite File", vbInformation

Else

   swModelDocExt.SaveAs AutoCadPath & "\" & filenamedwg,0, 0, swExportData, 0, 0

    MsgBox "Saved Drawing as DWG:" & vbCrLf & AutoCadPath & "\" & vbCrLf & filenamedwg

End If

 

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

SaveAsDWG-PDF(withModelRevision).JPGThanks

Outcomes