一時印刷ファイル名に使用する代替名を指定します。
サポートされているプラットフォーム: Windows のみ
読み込み専用: いいえ
タイプ: 文字列
印刷ファイルの代替名。"." と入力すると、既定値(現在の図面名)が使用されます。代替印刷ファイルのドライブ、パス、およびファイル名を入力します。
既定の名前は、図面名に拡張子 .plt を付けたものです。
VBA:
Sub Example_PrintFile()
' This example returns the current setting of
' PrintFile. It then changes the value, and finally
' it resets the value back to the original setting.
Dim preferences As AcadPreferences
Dim currPrintFile As String
Dim newPrintFile As String
Set preferences = ThisDrawing.Application.Preferences
' Retrieve the current PrintFile value
currPrintFile = preferences.Files.PrintFile
MsgBox "The current value for PrintFile is " & currPrintFile, vbInformation, "PrintFile Example"
' Change the value for PrintFile
newPrintFile = "TestPrintFile.plt"
preferences.Files.PrintFile = newPrintFile
MsgBox "The new value for PrintFile is " & newPrintFile, vbInformation, "PrintFile Example"
' Reset PrintFile to its original value
preferences.Files.PrintFile = currPrintFile
MsgBox "The PrintFile value is reset to " & currPrintFile, vbInformation, "PrintFile Example"
End Sub
Visual LISP:
(vl-load-com)
(defun c:Example_PrintFile()
;; This example returns the current setting of
;; PrintFile. It then changes the value, and finally
;; it resets the value back to the original setting.
(setq acadObj (vlax-get-acad-object))
(setq preferences (vla-get-Preferences acadObj))
;; Retrieve the current PrintFile value
(setq currPrintFile (vla-get-PrintFile (vla-get-Files preferences)))
(alert (strcat "The current value for PrintFile is " currPrintFile))
;; Change the value for PrintFile
(setq newValue "TestPrintFile.plt")
(vla-put-PrintFile (vla-get-Files preferences) newValue)
(alert (strcat "The new value for PrintFile is " newValue))
;; Reset PrintFile to its original value
(vla-put-PrintFile (vla-get-Files preferences) currPrintFile)
(alert (strcat "The PrintFile value is reset to " currPrintFile))
)