CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE
Over 1.096.000 registered users (EN+CZ). AutoCAD tips, Inventor tips, Revit tips. Try the new precise Engineering calculator. New AutoCAD 2026 commands and variables.

CAD tip CAD tip # 6021:

Question

CAD 
 %  platform  category 
A
You can use a Diesel macro utilizing the AutoCAD environment variable Background.

Add a custom menu or ribbon button (or even a keyboard shortcut) with this macro (a single line):

$M=$(if,$(eq,$(getenv,Background),0),
_setenv;Background;16777215,_setenv;Background;0);_TILEMODE;0;_TILEMODE;1;

TileMode change is added to redraw the model screen. Every click on this button will then toggle the background color of your Modelspace window between black and white (of course you can set also different color pairs).

For the background color in layouts, use the variable "Layout background" (incl. the space).

You can also change your model cursor (crosshairs) color in a similar way - try e.g.:

_setenv;XhairPickboxEtc;16777215
_setenv;XhairPickboxEtc;26844

This change is performed immediately.

And for layouts - e.g.:

_setenv LayoutXhairPickboxEtc 8364021

ACLT
100% *CAD
14.3.2008    11332×  
applies to: AutoCAD LT ·

See also:
Tip 14022:Comparing design versions in Autodesk Fusion.
Tip 13817:Cannot type decimal number in the transformation field in Autodesk Meshmixer (e.g. Scale).
Tip 13735:My initial login to Fusion 360 isn't working.
Tip 13522:LookupXLS - populating DWG texts from Excel spreadsheets.
Tip 13372:How to create your own RFT file (Revit Family Template)?


Back    All CAD Tips



Have we helped you? If you want to support the CAD Forum web service, consider buying one of our CAD applications, or our custom software development offerings, or donating via PayPal (see above). You may also add a link to your web - like this "fan" link: CAD Forum - tips, utilities, blocks for Autodesk products
CAD: 
OS: 
Categ: 
Text:
 FAQ
  



Featuring:
Extend your AutoCAD LT productivity with our popular add-on
CADstudio LT Extension More info


Please use these tips at your own risk.
ARKANCE is not responsible for possible problems that may occur as a result of using any of these tips.
TOPlist