「Vla-get-printspoolexecutable」の版間の差分

提供:GizmoLabs - だいたい CAD LISP なサイト
(ページの作成:「{{AutoLISP}} ; 構文 : (vla-get-printspoolexecutable ''vla-object'' ) ; 機能 : 印刷スプールに使用するアプリケーションを取得する。 ; 引...」)
 
(相違点なし)

2016年1月5日 (火) 22:56時点における最新版

構文
(vla-get-printspoolexecutable vla-object )


機能
印刷スプールに使用するアプリケーションを取得する。


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


戻り値
印刷スプールに使うアプリケーション名の文字列。


  • 注意 : このプロパティは、AutoSpool と一緒に使用する印刷スプール実行可能ファイルの、ドライブ、パス、およびアプリケーション名を含む。


サンプル
(vl-load-com)
(defun c:Example_PrintSpoolExecutable()
    ;; PrintSpoolExecutable の設定を読み込み変更するサンプル
    ;; 値は最後に元に戻す
    (setq acadObj (vlax-get-acad-object))
    (setq preferences (vla-get-Preferences acadObj))
    
    ;; 現在の設定を表示
    (setq currPrintSpoolExecutable (vla-get-PrintSpoolExecutable (vla-get-Files preferences)))
    (alert (strcat "現在の PrintSpoolExecutable 値は " currPrintSpoolExecutable))
    
    ;; PrintSpoolExecutable の値を変更
    (setq newPrintSpoolExecutable "TestPrintSpoolExecutable")
    (vla-put-PrintSpoolExecutable (vla-get-Files preferences) newPrintSpoolExecutable)
    (alert (strcat "新しい PrintSpoolExecutable 値は " newPrintSpoolExecutable))
    
    ;; 元に戻す
    (vla-put-PrintSpoolExecutable (vla-get-Files preferences) currPrintSpoolExecutable)
    (alert (strcat "PrintSpoolExecutable の値を元に戻します " currPrintSpoolExecutable))
)

関連事項