Vla-get-tempxrefpath

提供:GizmoLabs - だいたい CAD LISP なサイト
2015年1月12日 (月) 01:05時点におけるGizmon (トーク | 投稿記録)による版 (ページの作成:「{{AutoLISP}} ; 構文 : (vla-get-tempxrefpath ''vla-object'') ; 機能 : 外部参照ファイルの位置を取得する。 ; 引数 :* vla-object … PreferencesF...」)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
構文
(vla-get-tempxrefpath vla-object)


機能
外部参照ファイルの位置を取得する。


引数
  • vla-object … PreferencesFilesのVLAオブジェクト


戻り値
パスの文字列
  • 注意: この位置は、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))
)

関連事項