AnsweredAssumed Answered

How to add rebuild feature to current macro

Question asked by David Slabbert on Jan 22, 2020
Latest reply on Jan 23, 2020 by Deepak Gupta

Hello all, I've been doing some searching, albeit unsuccessfully. I would like to add a "rebuild drawing" feature to the below macro after the first save function, as the drawing contains a filepath field that doesn't pull through unless a rebuild is actioned.

 


Set swDraw = swModel

If swDraw.GetPathName = "" Then
swDraw.Save
End If

 

Filepath = Left(swDraw.GetPathName, InStrRev(swDraw.GetPathName, ".") - 1)

swDraw.SaveAs (Filepath + ".PDF")
swDraw.SaveAs (Filepath + ".DXF")
swDraw.SaveAs (Filepath + ".slddrw")
swApp.CloseDoc (swModel.GetTitle)

End Sub

 

Thanks for your help

Outcomes