AutoCAD を起動したときまたは新しい図面を作成したときに、[スタートアップ]ダイアログ ボックスが表示されるかどうかを指定します。
サポートされているプラットフォーム: Windows のみ
読み込み専用: いいえ
タイプ: ブール型
このプロパティの初期値は False です。
EnableStartupDialog を True にすると、従来の[スタートアップ]ダイアログ ボックスを表示することができます。
VBA:
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"))) )