Vla-get-tempxrefpath

提供:GizmoLabs - だいたい CAD LISP なサイト
構文
(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))
)

関連事項