solidworks 模型转STEP宏代码
solidworks 单个模型转STEP宏代码,保存地址默认和模型在同一目录
' ******************************************************************************
' 模型转STEP宏代码
' ******************************************************************************
Dim swApp As Object
Dim Part As Object
Dim boolstatus As Boolean
Dim saveSTP As Long, longwarnings As Long
Sub main()
Set swApp = Application.SldWorks
Set Part = swApp.ActiveDoc
'提取文件名+step
FileName = Part.GetPathName
FileName = Left(FileName, Len(FileName) - 6) & "STEP"
' Save As STEP
saveSTP = Part.SaveAs3(FileName, 0, 2)
End Sub
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
暂无评论内容