新しい図面を作成したときに、オブジェクトの色プロパティを印刷スタイル名と関連付けるかどうかを決定します。
サポートされているプラットフォーム: Windows のみ
読み込み専用: いいえ
タイプ: acPlotPolicy 列挙型
このプロパティの初期値は acPolicyNamed です。
図面の既定の印刷スタイル様式を変更したい場合、図面を開くかまたは作成する前に acPolicyLegacy または acPolicyNamed を入力します。このプロパティを使用して規定値の印刷スタイル様式を変更しても、新しい図面、または旧リリースの AutoCAD で作成されて AutoCAD 2000 形式 または後続の AutoCAD の形式で保存されていない図面にしか影響しません。この設定は図面と一緒に保存されます。移行ユーティリティを使用して一度図面を保存すると、図面の既定値の様式を acPolicyLegacy から acPolicyNamed に変更できます。ただし、いったん acPolicyNamed を既定値の様式として図面を保存したら、これを acPolicyLegacy に変更することはできません。
VBA:
Sub Example_PlotPolicy()
' This example reads and modifies the PlotPolicy
' 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.PlotPolicy
MsgBox "The PlotPolicy preference is set to: " & originalValue
' Modify the PlotPolicy preference by toggling the value
ACADPref.PlotPolicy = acPolicyNamed
MsgBox "The PlotPolicy preference has been set to: " & ACADPref.PlotPolicy
' Reset the preference back to its original value
ACADPref.PlotPolicy = originalValue
MsgBox "The PlotPolicy preference was reset back to: " & originalValue
End Sub
Visual LISP:
(vl-load-com)
(defun c:Example_PlotPolicy()
;; This example reads and modifies the PlotPolicy
;; 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-PlotPolicy (vla-get-Output preferences)))
(alert (strcat "The PlotPolicy preference is set to: " (itoa originalValue)))
;; Modify the PlotPolicy preference by toggling the value
(vla-put-PlotPolicy (vla-get-Output preferences) acPolicyNamed)
(alert (strcat "The PlotPolicy preference has been set to: " (itoa (vla-get-PlotPolicy (vla-get-Output preferences)))))
;; Reset the preference back to its original value
(vla-put-PlotPolicy (vla-get-Output preferences) originalValue)
(alert (strcat "The PlotPolicy preference was reset back to: " (itoa originalValue)))
)