AutoCAD がビデオ ディスプレイ、ポインティング デバイス、プリンタ、プロッタの ADI デバイス ドライバを検索するフォルダを指定します。
サポートされているプラットフォーム: Windows のみ
読み込み専用: いいえ
タイプ: 文字列
デバイス ドライバがあるフォルダそれぞれのパスのドライブ文字とパスを指定します。複数のフォルダのリストはセミコロン(;)で区切ります。
追加の注意はありません。
VBA:
Sub Example_DriversPath()
' This example returns the current setting of
' DriversPath. It then changes the value, and finally
' it resets the value back to the original setting.
Dim preferences As AcadPreferences
Dim currDriversPath As String
Dim newDriversPath As String
Set preferences = ThisDrawing.Application.Preferences
' Retrieve the current DriversPath value
currDriversPath = preferences.Files.DriversPath
MsgBox "The current value for DriversPath is " & currDriversPath, vbInformation, "DriversPath Example"
' Change the value for DriversPath
newDriversPath = "TestDriversPath"
preferences.Files.DriversPath = newDriversPath
MsgBox "The new value for DriversPath is " & newDriversPath, vbInformation, "DriversPath Example"
' Reset DriversPath to its original value
preferences.Files.DriversPath = currDriversPath
MsgBox "The DriversPath value is reset to " & currDriversPath, vbInformation, "DriversPath Example"
End Sub
Visual LISP:
(vl-load-com)
(defun c:Example_DriversPath()
;; This example returns the current setting of
;; DriversPath. 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 DriversPath value
(setq currDriversPath (vla-get-DriversPath (vla-get-Files preferences)))
(alert (strcat "The current value for DriversPath is " currDriversPath))
;; Change the value for DriversPath
(setq newDriversPath "TestDriversPath")
(vla-put-DriversPath (vla-get-Files preferences) newDriversPath)
(alert (strcat "The new value for DriversPath is " newDriversPath))
;; Reset DriversPath to its original value
(vla-put-DriversPath (vla-get-Files preferences) currDriversPath)
(alert (strcat "The DriversPath value is reset to " currDriversPath))
)