PageSetupOverridesTemplateFile 属性 (ActiveX)
指定页面设置替代的默认模板。 支持的平台:仅限 Windows 属性值只读:不 类型:字符串 包含页面设置覆盖的默认图形样板文件。 言论没有其他评论。 例子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 可视化 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") ) |
|Archiver|CAD开发者社区 ( 苏ICP备2022047690号-1 苏公网安备32011402011833)
GMT+8, 2025-1-19 07:23
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.