「Vla-get-printspoolerpath」の版間の差分
(ページの作成:「{{AutoLISP}} ; 構文 : (vla-get-printspoolerpath ''vla-object'') ; 機能 : 印刷スプール ファイルのフォルダを取得する。CAD は、この位置に...」) |
(相違点なし)
|
2015年1月12日 (月) 02:10時点における最新版
- 構文
- (vla-get-printspoolerpath vla-object)
- 機能
- 印刷スプール ファイルのフォルダを取得する。CAD は、この位置に印刷結果を書き込む。
- 引数
-
- vla-object … PreferencesFilesのVLAオブジェクト
- 戻り値
- パスの文字列
- サンプル
(vl-load-com)
(defun c:Example_PrintSpoolerPath()
;; PrintSpoolerPath を取得・設定するサンプル
(setq acadObj (vlax-get-acad-object))
(setq preferences (vla-get-Preferences acadObj))
;; 現在のパス
(setq currPrintSpoolerPath (vla-get-PrintSpoolerPath (vla-get-Files preferences)))
(alert (strcat "現在の PrintSpoolerPath は " currPrintSpoolerPath))
;; 変更
(setq newPrintSpoolerPath "TestPrintSpoolerPath")
(vla-put-PrintSpoolerPath (vla-get-Files preferences) newPrintSpoolerPath)
(alert (strcat "新しい PrintSpoolerPath は " newPrintSpoolerPath))
;; リセット
(vla-put-PrintSpoolerPath (vla-get-Files preferences) currPrintSpoolerPath)
(alert (strcat "PrintSpoolerPath のリセット " currPrintSpoolerPath))
)
関連事項