DockedVisibleLines Property (ActiveX)

Specifies the number of lines of text to display in the command window. (Obsolete)

Supported platforms: Windows only

Signature

VBA:

object.DockedVisibleLines
object

Type: PreferencesDisplay

The object this property applies to.

Property Value

Read-only: No

Type: Integer

A positive integer representing the number of text lines to display in the command window.

Remarks

No additional remarks.

Examples

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)))
)