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
Filepath = Left(swDraw.GetPathName, InStrRev(swDraw.GetPathName, ".") - 1)
swDraw.SaveAs (Filepath + ".PDF")
swDraw.SaveAs (Filepath + ".DXF")
swDraw.SaveAs (Filepath + ".slddrw")
Thanks for your help