Hello
I would like to make a PDF recording of my drawings in a defined folder with a formatting defined by the drawing information
example: Noirmoutier - Bonnotte - MP - Ind C - Date
in bold what I fill in Solidworks and in italics what should be added
In every drawing I make, I have the following properties to fill in:
Property Name
C-index
City of Noirmoutier
Rue/Quartier Bonnotte
and I save it for the moment in a folder on my PC "D:\Downloads\PDF Plan\___.PDF".
If possible later, I should replace this folder with a folder of the future remote server (using a VPN probably)
Here is for now a very simple macro that I managed to make (a miracle that it works lol)
Can you help me write this macro?
For your information, I need to save all the sheets of my drawing so usually between 4 and 8 sheets in the same file
Thanks in advance
' ******************************************************************************
' C:\Users\Proprietaire\AppData\Local\Temp\swx1544\Macro1.swb - macro recorded on 11/17/17 by Proprietaire
' ******************************************************************************
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
Dim myModelView As Object
Set myModelView = Part.ActiveView
myModelView.FrameState = swWindowState_e.swWindowMaximized
' Save As
longstatus = Part.SaveAs3("D:\Téléchargements\Plan PDF\MP.PDF", 0, 0)
End Sub
ext_to_pdf.swp