HistoryLines property example

Sub HistoryLines_Example()
' This example returns the current setting of HistoryLines.
    Dim myPrefs As AcadPreferences
    Set myPrefs = ThisDrawing.Application.preferences
    Dim iHistoryLines As Integer
    Set myPrefs = ThisDrawing.Application.preferences
    ' Retrieve the current GraphicsWinLayoutBackgrndColor value
    iHistoryLines = myPrefs.Display.HistoryLines
    MsgBox "The current value for HistoryLines is " & iHistoryLines
End Sub

© Bricsys NV. All rights reserved.