ログ ファイルの位置を指定します。
サポートされているプラットフォーム: Windows のみ
読み込み専用: いいえ
タイプ: 文字列
ログ ファイルのドライブおよびパス。
ログ ファイルの機能を有効/無効にするには、LogFileOn プロパティを使用します。
VBA:
Sub Example_LogFilePath() ' This example returns the current setting of ' LogFilePath. It then changes the value, and finally ' it resets the value back to the original setting. Dim preferences As AcadPreferences Dim currLogFilePath As String Dim newLogFilePath As String Set preferences = ThisDrawing.Application.preferences ' Retrieve the current LogFilePath value currLogFilePath = preferences.Files.LogFilePath MsgBox "The current value for LogFilePath is " & currLogFilePath, vbInformation, "LogFilePath Example" ' Change the value for LogFilePath newLogFilePath = "C:/AutoCAD/" preferences.Files.LogFilePath = newLogFilePath MsgBox "The new value for LogFilePath is " & newLogFilePath, vbInformation, "LogFilePath Example" ' Reset LogFilePath to its original value preferences.Files.LogFilePath = currLogFilePath MsgBox "The LogFilePath value is reset to " & currLogFilePath, vbInformation, "LogFilePath Example" End Sub
Visual LISP:
(vl-load-com) (defun c:Example_LogFilePath() ;; This example returns the current setting of ;; LogFilePath. 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 LogFilePath value (setq currLogFilePath (vla-get-LogFilePath (vla-get-Files preferences))) (alert (strcat "The current value for LogFilePath is " currLogFilePath)) ;; Change the value for LogFilePath (setq newLogFilePath "C:/AutoCAD/") (vla-put-LogFilePath (vla-get-Files preferences) newLogFilePath) (alert (strcat "The new value for LogFilePath is " newLogFilePath)) ;; Reset LogFilePath to its original value (vla-put-LogFilePath (vla-get-Files preferences) currLogFilePath) (alert (strcat "The LogFilePath value is reset to " currLogFilePath)) )