コマンド ウィンドウに表示するテキストの行数を指定します。(旧式)
サポートされているプラットフォーム: Windows のみ
読み込み専用: いいえ
タイプ: 整数型
コマンド ウィンドウに表示する文字の行数を表す正の整数
追加の注意はありません。
VBA:
Sub Example_DockedVisibleLines() ' This example returns the current setting of ' DockedVisibleLines. It then changes the value, and finally ' it resets the value back to the original setting. Dim preferences As AcadPreferences Dim currDockedVisibleLines As Integer Set preferences = ThisDrawing.Application.Preferences ' Retrieve the current DockedVisibleLines value currDockedVisibleLines = preferences.Display.DockedVisibleLines MsgBox "The current value for DockedVisibleLines is " & preferences.DISPLAY.DockedVisibleLines, vbInformation, "DockedVisibleLines Example" ' Change the value for DockedVisibleLines preferences.Display.DockedVisibleLines = 15 MsgBox "The new value for DockedVisibleLines is " & preferences.DISPLAY.DockedVisibleLines, vbInformation, "DockedVisibleLines Example" ' Reset DockedVisibleLines to its original value preferences.Display.DockedVisibleLines = currDockedVisibleLines MsgBox "The DockedVisibleLines value is reset to " & preferences.Display.DockedVisibleLines, vbInformation, "DockedVisibleLines Example" End Sub
Visual LISP:
(vl-load-com) (defun c:Example_DockedVisibleLines() ;; This example returns the current setting of ;; DockedVisibleLines. 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 Display preferences object (setq ACADPref (vla-get-Display preferences)) ;; Retrieve the current DockedVisibleLines value (setq currDockedVisibleLines (vla-get-DockedVisibleLines ACADPref)) (alert (strcat "The current value for DockedVisibleLines is " (itoa currDockedVisibleLines))) ;; Change the value for DockedVisibleLines (setq newValue 15) (vla-put-DockedVisibleLines ACADPref newValue) (alert (strcat "The new value for DockedVisibleLines is " (itoa newValue))) ;; Reset DockedVisibleLines to its original value (vla-put-DockedVisibleLines ACADPref currDockedVisibleLines) (alert (strcat "The DockedVisibleLines value is reset to " (itoa currDockedVisibleLines))) )