「Vla-get-printerconfigpath」の版間の差分
(ページの作成:「{{AutoLISP}} ; 構文 : (vla-get-printerconfigpath ''vla-object'') ; 機能 : プリンタ環境設定ファイルの位置を指定する。 ; 引数 :* vla-object ...」) |
(相違点なし)
|
2015年1月12日 (月) 02:36時点における最新版
- 構文
- (vla-get-printerconfigpath vla-object)
- 機能
- プリンタ環境設定ファイルの位置を指定する。
- 引数
-
- vla-object … PreferencesFilesのVLAオブジェクト
- 戻り値
- プリンタ環境設定ファイルのドライブとパス。
- サンプル
(vl-load-com) (defun c:Example_PrinterConfigPath() ;; プリンタ環境設定ファイルのパスを取得設定するサンプル (setq acadObj (vlax-get-acad-object)) (setq preferences (vla-get-Preferences acadObj)) ;; 元のプリンタ環境設定ファイルのパス (setq originalValue (vla-get-PrinterConfigPath (vla-get-Files preferences))) (alert (strcat "現在のプリンタ環境設定ファイルのパス : " originalValue)) ;; プリンタ環境設定ファイルのパスを "C:\\temp\\" に変更 (vla-put-PrinterConfigPath (vla-get-Files preferences) "C:\\temp\\") (setq newValue (vla-get-PrinterConfigPath (vla-get-Files preferences))) (alert (strcat "新しいプリンタ環境設定ファイルのパス: " newValue)) ;; プリンタ環境設定ファイルのパスをリセット (vla-put-PrinterConfigPath (vla-get-Files preferences) originalValue) (alert (strcat "プリンタ環境設定ファイルのパスを元に戻す : " originalValue)) )
関連事項