我 怀疑是 改这个 SaveAText,
value = swTableAnnotation.SaveAsText(FileName, Separator) '表格另存为TXT文件
' ****************
' BOM TO TEXT
' ****************
Dim swApp As SldWorks.SldWorks
Dim Part As SldWorks.ModelDoc2
Dim swSelMgr As SldWorks.SelectionMgr
Dim swTableAnnotation As SldWorks.TableAnnotation
Dim FileName As String
Dim Separator As String
Dim value As Boolean
Sub main()
Set swApp = Application.SldWorks
Set Part = swApp.ActiveDoc '
If Part Is Nothing Then Exit Sub