Vla-put-tempxrefpath
- 構文
- (vla-put-tempxrefpath vla-object path)
- 機能
- 外部参照ファイルの位置を指定する。
- 引数
-
- vla-object … PreferencesFilesのVLAオブジェクト
- path … パスの文字列
- 戻り値
- nil
- 注意: この位置は、XRefDemandLoad プロパティで acEnableWithCopy ディマンド ロードを選択した場合、外部参照のコピーに使われる。
- サンプル
(vl-load-com)
(defun c:Example_TempXRefPath()
;; 外部参照ファイルの位置を取得・変更するサンプル
(setq acadObj (vlax-get-acad-object))
(setq preferences (vla-get-Preferences acadObj))
;; Retrieve the current TempXRefPath value
(setq currTempXRefPath (vla-get-TempXrefPath (vla-get-Files preferences)))
(alert (strcat "現在の TempXRefPath は " currTempXRefPath))
;; Change the value for TempXRefPath
(setq newTempXRefPath "TestTempXRefPath")
(vla-put-TempXrefPath (vla-get-Files preferences) newTempXRefPath)
(alert (strcat "新しい TempXRefPath は " newTempXRefPath))
;; Reset TempXRefPath to its original value
(vla-put-TempXrefPath (vla-get-Files preferences) currTempXRefPath)
(alert (strcat "TempXRefPath の値をリセット " currTempXRefPath))
)
関連事項