「Vla-put-logfilepath」の版間の差分
(ページの作成:「{{AutoLISP}} ; 構文 : (vla-put-logfilepath ''vla-object'' ''path'') ; 機能 : ログ ファイルのパスを指定する。 ; 引数 :* vla-object … Preference...」) |
(相違点なし)
|
2015年1月12日 (月) 11:26時点における最新版
- 構文
- (vla-put-logfilepath vla-object path)
- 機能
- ログ ファイルのパスを指定する。
- 引数
-
- vla-object … PreferencesFilesのVLAオブジェクト
- path … ログ ファイルのパス
- 戻り値
- nil
- MEMO: このプロパティの値は、システム変数 LOGFILEPATH に格納される。ログ ファイルの機能を有効/無効は、LogFileOn プロパティを使用する。
- サンプル
(vl-load-com) (defun c:Example_LogFilePath() ;; 現在のログファイルパスを取得・変更するサンプル (setq acadObj (vlax-get-acad-object)) (setq preferences (vla-get-Preferences acadObj)) ;; 現在のパス (setq currLogFilePath (vla-get-LogFilePath (vla-get-Files preferences))) (alert (strcat "現在の LogFilePath は " currLogFilePath)) ;; パス変更 (setq newLogFilePath "C:/myCAD/") (vla-put-LogFilePath (vla-get-Files preferences) newLogFilePath) (alert (strcat "新しい LogFilePath は " newLogFilePath)) ;; 元に戻す (vla-put-LogFilePath (vla-get-Files preferences) currLogFilePath) (alert (strcat "LogFilePath を元に戻す " currLogFilePath)) )
関連事項