MaxCADWindow property example
Sub MaxAutoCADWindow_Example()
    Dim myPrefs As AcadPreferences
    Set myPrefs = ThisDrawing.Application.Preferences
    Dim bCurrMaximizedState As Boolean
    
    bCurrMaximizedState = myPrefs.Display.MaxAutoCADWindow
    MsgBox "The current value for MaxAutoCADWindow is " & bCurrMaximizedState
    
    myPrefs.Display.MaxAutoCADWindow = Not (bCurrMaximizedState)
    MsgBox "The new value for MaxAutoCADWindow is " & myPrefs.Display.MaxAutoCADWindow
    
    myPrefs.Display.MaxAutoCADWindow = bCurrMaximizedState
    MsgBox "The MaxAutoCADWindow value is reset to " & myPrefs.Display.MaxAutoCADWindow
End Sub
| ©  Menhirs NV. All rights reserved. |