CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor and other Autodesk products [www.cadforum.cz]
Cesky English Deutsch
Login/Register:
 Visitors: 3890 

CAD tip CAD tip # 6021:

Question CAD 
 %  platform  category 
Q - question

How to toggle LT background color through a toolbar button?

A - answer You can use a Diesel macro utilizing the AutoCAD environment variable Background.

Add a custom button with this macro (a single line):

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

Every click on this button will toggle the background color of your Modelspace window between black and white (of course you can set also different color pairs).

LT
100% *  CAD 
14.3.2008    6008x  
Comments   Tell a friend
applies to: AutoCAD LT ·

See also:
Tip 11054:Difference volume (3D solid) between two TIN surfaces (sets of coordinates)
Tip 10658:How to open a R/O DWG without the read-only warning?
Tip 10167:Keyboard shortcuts in Autodesk Fusion 360.
Tip 10062:Empty (white/transparent) Quick Access Toolbar - QAT.
Tip 9694:Random object colors in 3ds Max.


Back   All CAD Tips All CAD tips&tricks

How to toggle lineweight display? « | » What languages are supported in the OCR function of Raster Design?

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 glossary   



Featuring:
Publish interactive 3D PDF models from AutoCAD, Inventor or Revit with Share3D More info


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