ハードウェア デバイス ドライバの情報が格納される環境設定ファイルの位置を取得します。
サポートされているプラットフォーム: Windows のみ
読み込み専用: はい
タイプ: 文字列
ハードウェア デバイス ドライバ情報を格納する環境設定ファイルの位置
この値は読み込み専用であり、/c コマンド ライン スイッチのみで変更可能です。コマンド ライン スイッチの詳細は、AutoCAD オンライン ヘルプを参照してください。
VBA:
Sub Example_ConfigFile()
' This example returns the current setting of ConfigFile.
Dim preferences As AcadPreferences
Dim currConfigFile As String
Set preferences = ThisDrawing.Application.preferences
' Retrieve the current ConfigFile value
currConfigFile = preferences.Files.ConfigFile
If currConfigFile = "" Then
MsgBox "ConfigFile is not currently set.", vbInformation, "ConfigFile Example"
Else
MsgBox "The current value for ConfigFile is " & currConfigFile, vbInformation, "ConfigFile Example"
End If
End Sub
Visual LISP:
(vl-load-com)
(defun c:Example_ConfigFile()
;; This example returns the current setting of ConfigFile.
(setq acadObj (vlax-get-acad-object))
(setq preferences (vla-get-Preferences acadObj))
;; Retrieve the current ConfigFile value
(setq currConfigFile (vla-get-ConfigFile (vla-get-Files preferences)))
(if (= currConfigFile "")
(alert "ConfigFile is not currently set.")
(alert (strcat "The current value for ConfigFile is " currConfigFile))
)
)