Hello everyone,
I the beginner and I have a problem, help needed.
I want to open a file in the program by default.
For example: I have macro SaveAsPDF.
I start a macro and I have file PDF.
How to open file PDF in the program by default?
Option Explicit
Dim swApp As Object
Dim Part As Object
Dim Path As String
Dim longstatus As Integer
Sub main()
Set swApp = Application.SldWorks
Set Part = swApp.ActiveDoc
Path = Left(Part.GetPathName, Len(Part.GetPathName) - 6) & "PDF"
longstatus = Part.SaveAs3("" & Path & "", 0, 0)
MsgBox "File " & Path & " is ready ", vbExclamation
'???>>> The macro should open a new PDF file <<<??
End Sub
What function opens another's file (not file SW)?
Please, help me.
Preliminary thanks!
SolidworksApi macros