PageSetupOverridesTemplateFile Property (ActiveX)

Specifies the default template for Page Setup overrides.

Supported platforms: Windows only

Signature

VBA:

object.PageSetupOverridesTemplateFile
object

Type: PreferencesFiles

The object this property applies to.

Property Value

Read-only: No

Type: String

The default drawing template file that contains page setup overrides.

Remarks

No additional remarks.

Examples

VBA:

Sub Example_PageSetupOverridesTemplateFile()

    ' Note: Change the file path and name to a valid file on your system.
	
    Dim MyFiles As AcadPreferencesFiles
    Set MyFiles = AcadApplication.Preferences.Files
    MyFiles.PageSetupOverridesTemplateFile = "C:\MyTemplate.dwt"

End Sub

Visual LISP:

(vl-load-com)
(defun c:Example_PageSetupOverridesTemplateFile()
    ; Note: Change the file path and name to a valid file on your system.
    (setq acadObj (vlax-get-acad-object))
    (setq preferences (vla-get-Preferences acadObj))

    (setq MyFiles (vla-get-Files preferences))
    (vla-put-PageSetupOverridesTemplateFile MyFiles "C:\\MyTemplate.dwt")
)