Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IDS on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Save as PDF modification

Status
Not open for further replies.

generalpatton

Mechanical
Jul 15, 2009
62
Hello,
I used to have a macro for swx 2006 that did what I needed, but it is lost. I want to save "501-09-1336.PDF" that is listed below as the current file name that is open. What is below is just a recorded macro of that file saved as a pdf. Any suggestions? I have no code background, FYI! SWX 2012 X64 is current edition. thanks a bunch

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
Part.ViewZoomtofit2
longstatus = Part.SaveAs3("C:\Users\ccc\Desktop\501-09-1336.PDF", 0, 0)
End Sub
 
Replies continue below

Recommended for you

Status
Not open for further replies.

Part and Inventory Search

Sponsor