here is my problem, I would like to save in PDF the drawings I modify.
As I have to do several in a row, each time I have to save under re-give the way...... in short, a lot of clicks.
I tried to make a macro, it saves in PDF, but still in its creation folder, and not in the same folder as the drawing.
The macro in question:
' ****************************************************************************** ' C:\Users\FCH. CORADINCORP.001\AppData\Local\Temp\swx3264\Macro1.swb - macro recorded on 03/30/16 by fch ' ****************************************************************************** Dim swApp As Object
Dim Part As Object Dim boolstatus As Boolean Dim longstatus As Long, longwarnings As Long
Sub main()
Set swApp = _ Application.SldWorks
Set Part = swApp.ActiveDoc longstatus = Part.SaveAs3("E:\teste macro.PDF", 0, 0) End Sub
Function GetFilename(strPath As String) As String Dim strTemp As String strTemp = Mid$(strPath, InStrRev(strPath, "\") + 1) GetFilename = Left$(strTemp, InStrRev(strTemp, ".") - 1) End Function
Function GetFilename(strPath As String) As String Dim strTemp As String strTemp = Mid$(strPath, InStrRev(strPath, "\") + 1) GetFilename = Left$(strTemp, InStrRev(strTemp, ".") - 1) End Function