I/O ポートが使用中のため、システム プリンタを通して出力をデバイスにスプールする必要があるときに、ユーザに警告を表示するかどうかを指定します。
サポートされているプラットフォーム: Windows のみ
読み込み専用: いいえ
タイプ: acPrinterSpoolAlert 列挙型
このプロパティの初期値は acPrinterAlwaysAlert です。
VBA:
Sub Example_PrinterSpoolAlert() ' This example reads and modifies the PrinterSpoolAlert ' preference value. ' When finished, this example resets the preference value back to ' its original value. Dim ACADPref As AcadPreferencesOutput Dim originalValue As Integer ' Get the user preferences object Set ACADPref = ThisDrawing.Application.Preferences.Output ' Read and display the original value originalValue = ACADPref.PrinterSpoolAlert MsgBox "The PrinterSpoolAlert preference is set to: " & originalValue ' Modify the PrinterSpoolAlert preference by toggling the value ACADPref.PrinterSpoolAlert = acPrinterNeverAlert MsgBox "The PrinterSpoolAlert preference has been set to: " & ACADPref.PrinterSpoolAlert ' Reset the preference back to its original value ACADPref.PrinterSpoolAlert = originalValue MsgBox "The PrinterSpoolAlert preference was reset back to: " & originalValue End Sub
Visual LISP:
(vl-load-com) (defun c:Example_PrinterSpoolAlert() ;; This example reads and modifies the PrinterSpoolAlert ;; preference value. ;; When finished, this example resets the preference value back to ;; its original value. (setq acadObj (vlax-get-acad-object)) (setq preferences (vla-get-Preferences acadObj)) ;; Read and display the original value (setq originalValue (vla-get-PrinterSpoolAlert (vla-get-Output preferences))) (alert (strcat "The PrinterSpoolAlert preference is set to: " (itoa originalValue))) ;; Modify the PrinterSpoolAlert preference by toggling the value (vla-put-PrinterSpoolAlert (vla-get-Output preferences) acPrinterNeverAlert) (alert (strcat "The PrinterSpoolAlert preference has been set to: " (itoa (vla-get-PrinterSpoolAlert (vla-get-Output preferences))))) ;; Reset the preference back to its original value (vla-put-PrinterSpoolAlert (vla-get-Output preferences) originalValue) (alert (strcat "The PrinterSpoolAlert preference was reset back to: " (itoa (vla-get-PrinterSpoolAlert (vla-get-Output preferences))))) )