指定在启动 AutoCAD 或创建新图形时是显示启动对话框。 支持的平台:仅窗口 属性值只读:不 类型:布尔
言论此属性的初始值为。False 传统的启动对话框可以在启用启动对话框时显示。True 例子工 务 局: Sub Example_EnableStartupDialog() ' This example returns the current setting of ' EnableStartupDialog. It then changes the value, and finally ' it resets the value back to the original setting. Dim preferences As AcadPreferences Dim currEnableStartupDialog As Boolean Set preferences = ThisDrawing.Application.preferences ' Retrieve the current EnableStartupDialog value currEnableStartupDialog = preferences.System.EnableStartupDialog MsgBox "The current value for EnableStartupDialog is " & preferences.System.EnableStartupDialog, vbInformation, "EnableStartupDialog Example" ' Change the value for EnableStartupDialog preferences.System.EnableStartupDialog = Not (currEnableStartupDialog) MsgBox "The new value for EnableStartupDialog is " & preferences.System.EnableStartupDialog, vbInformation, "EnableStartupDialog Example" ' Reset EnableStartupDialog to its original value preferences.System.EnableStartupDialog = currEnableStartupDialog MsgBox "The EnableStartupDialog value is reset to " & preferences.System.EnableStartupDialog, vbInformation, "EnableStartupDialog Example" End Sub Visual LISP: (vl-load-com) (defun c:Example_EnableStartupDialog() ;; This example returns the current setting of ;; EnableStartupDialog. 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)) ;; Get the system preferences object (setq ACADPref (vla-get-System preferences)) ;; Retrieve the current EnableStartupDialog value (setq currEnableStartupDialog (vla-get-EnableStartupDialog ACADPref)) (alert (strcat "The current value for EnableStartupDialog is " (if (= currEnableStartupDialog :vlax-true) "True" "False"))) ;; Change the value for EnableStartupDialog (vla-put-EnableStartupDialog ACADPref (if (= currEnableStartupDialog :vlax-true) :vlax-false :vlax-true)) (setq newValue (vla-get-EnableStartupDialog ACADPref)) (alert (strcat "The new value for EnableStartupDialog is " (if (= newValue :vlax-true) "True" "False"))) ;; Reset EnableStartupDialog to its original value (vla-put-EnableStartupDialog ACADPref currEnableStartupDialog) (alert (strcat "The EnableStartupDialog value is reset to " (if (= currEnableStartupDialog :vlax-true) "True" "False"))) ) |
|Archiver|CAD开发者社区 ( 苏ICP备2022047690号-1 苏公网安备32011402011833)
GMT+8, 2025-1-8 19:48
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.