GraphicsWinBackgrndColor property example
Sub BackgroundColor_Example()
Dim myPrefs As AcadPreferences
Set myPrefs = ThisDrawing.Application.Preferences
Dim currLayoutBGColor As OLE_COLOR
Dim currModelBGColor As OLE_COLOR
Set myPrefs = ThisDrawing.Application.Preferences
currLayoutBGColor = myPrefs.Display.GraphicsWinLayoutBackgrndColor
currModelBGColor = myPrefs.Display.GraphicsWinModelBackgrndColor
Dim sBuf As String
sBuf = "The current background color values are: "
sBuf = sBuf & vbCrLf & "Model= " & currModelBGColor
sBuf = sBuf & vbCrLf & "Layout= " & currLayoutBGColor
MsgBox sBuf
End Sub
© Bricsys NV. All rights reserved. |