ds-blue-logo
Preview  |  SOLIDWORKS USER FORUM
Use your SOLIDWORKS ID or 3DEXPERIENCE ID to log in.
RJRob Jensen14/07/2008
I have this macro (which was a saves as iges file) that i want to use to save a step file. I want to save as version AP214. Can this be done?

Here is the current code

Dim swApp As Object
Dim Part As Object
Dim SelMgr As Object
Dim boolstatus As Boolean
Dim longstatus As Long, longwarnings As Long
Dim Feature As Object
Dim fs As New FileSystemObject
Dim Name As String


Sub main()

Set swApp = Application.SldWorks
Set Part = swApp.ActiveDoc
Set SelMgr = Part.SelectionManager

Name = fs.GetBaseName(Part.GetPathName)
Part.SaveAs2 "C:\step files\" & Name & ".step", 0, True, False
step.Show

End Sub