|
发表于 2011-9-25 01:14:00
|
显示全部楼层
真好有一个现成的,嘿嘿!
Public Sub Set_SupportPath()
'将支持文件的路径设置到需要的状态
Dim preferences As AcadPreferences
Dim newSupportPath As String
Set preferences = ThisDrawing.Application.preferences
newSupportPath = "C:\Documents and Settings\lenovo\Application Data\Autodesk\AutoCAD 2004\R16.0\chs\Support;" & vbNewLine & _
"D:\Program Files\AutoCAD 2004\Support;" & vbNewLine & _
"D:\Program Files\AutoCAD 2004\Fonts;" & vbNewLine & _
"D:\Program Files\AutoCAD 2004\Express;" & vbNewLine & _
"D:\Program Files\AutoSTRU 2007;" & vbNewLine & _
"D:\Program Files\AutoCAD 2004\Help;" & vbNewLine & _
"D:\acad-spt;" & vbNewLine & _
"D:\acad-spt\lisp;" & vbNewLine & _
"D:\acad-spt\Mylisp;" & vbNewLine & _
"D:\acad-spt\Mylisp1;" & vbNewLine & _
"D:\acad-spt\Mylisp2;" & vbNewLine & _
"D:\acad-spt\Vba;" & vbNewLine & _
"D:\acad-spt\support;" & vbNewLine & _
"C:\pkpm\cfg;" & vbNewLine & _
"C:\pkpm_pc\cfg;" & vbNewLine & _
"D:\acad-spt\工具条"
preferences.Files.SupportPath = newSupportPath
MsgBox "The new value for SupportPath is " & vbNewLine & newSupportPath, vbInformation, "SupportPath"
End Sub
LZ可参考,将里面的路径设置成你需要的 |
|