AutoCAD がサポート ファイルを検索するフォルダを指定します。
サポートされているプラットフォーム: Windows のみ
読み込み専用: いいえ
タイプ: 文字列
サポート ファイルが入っているフォルダ。サポート、フォント、ヘルプ、およびエクスプレス ツールのドライブ文字とパスを指定します。
セミコロン(;)を使用して複数のフォルダを区切ります。ただし、文字列の最後にはセミコロンを付けないでください。
VBA:
Sub Example_SupportPath()
' This example returns the current setting of
' SupportPath. It then changes the value, and finally
' it resets the value back to the original setting.
Dim preferences As AcadPreferences
Dim currSupportPath As String
Dim newSupportPath As String
Set preferences = ThisDrawing.Application.preferences
' Retrieve the current SupportPath value
currSupportPath = preferences.Files.SupportPath
MsgBox "The current value for SupportPath is " & currSupportPath, vbInformation, "SupportPath Example"
' Change the value for SupportPath
newSupportPath = "TestSupportPath"
preferences.Files.SupportPath = newSupportPath
MsgBox "The new value for SupportPath is " & newSupportPath, vbInformation, "SupportPath Example"
' Reset SupportPath to its original value
preferences.Files.SupportPath = currSupportPath
MsgBox "The SupportPath value is reset to " & currSupportPath, vbInformation, "SupportPath Example"
End Sub
Visual LISP:
(vl-load-com)
(defun c:Example_SupportPath()
;; This example returns the current setting of
;; SupportPath. It then changes the value, and finally
;; it resets the value back to the original setting.
(setq acadObj (vlax-get-acad-object))
(setq preferences (vla-get-Preferences acadObj))
;; Retrieve the current SupportPath value
(setq currSupportPath (vla-get-SupportPath (vla-get-Files preferences)))
(alert (strcat "The current value for SupportPath is " currSupportPath))
;; Change the value for SupportPath
(setq newSupportPath "TestSupportPath")
(vla-put-SupportPath (vla-get-Files preferences) newSupportPath)
(alert (strcat "The new value for SupportPath is " newSupportPath))
;; Reset SupportPath to its original value
(vla-put-SupportPath (vla-get-Files preferences) currSupportPath)
(alert (strcat "The SupportPath value is reset to " currSupportPath))
)