CAD FORUM - TIPS & TRICKS | UTILITIES | DISCUSSION | BLOCKS | SUPPORT | HELP & ASSISTANCE
Over 1.124.000 registered users (EN+CZ).
AutoCAD tips, Inventor tips, Revit tips, Civil tips, Fusion tips.
The new Beam calculator, Spirograph generator and Regression curves in the Converters section.
New AutoCAD 2027 commands and sys.variables
CAD tip # 3088:
Question
A
Use the Background AutoCAD environment variable (not system variable) to change model window background color - e.g.:
(SETENV "Background" "1111111")or (in LT):
_SETENV Background 1111111and restart your drawing window (e.g. by switching to a layout and back).
Similarly you can change the layout (paperspace) background color with:
(setenv "Layout background" "123456")
Do not forget to specify the color code as a string and type the variable name verbatim as specified above (upper/lowercase).
The color code is calculated as:
(blue * 65536) + (green * 256) + red
You can get the current code by:
(getenv "Background")
ACADACLTADTMapMDT
9.6.2003
14349×
this tip shared by ARKANCE experts applies to: AutoCAD · AutoCAD LT · AutoCAD Architecture · AutoCAD Map 3D · MDT ·
![CAD Forum - ARKANCE Community - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]](../common/arkance_186.png)

What is the ARKANCE Community?