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 and the updated Barcode generator. New AutoCAD 2026 commands and variables.

CAD tip CAD tip # 13933:

Question

CAD 
 %  platform  category 
A
There is no Options dialog for setting the display grid (drawing canvas) colors in AutoCAD Web. But you can set all colors of the user interface using environment variables through the LISP interface.

So you can e.g. set all major grid lines in a lighter, more prominent color (in the dark model space) for the base 2D grid, with:

(setenv "2D Model grid major lines color" "9996932")

Just paste this into your AutoCAD web command line prompt and toggle the grid off and on (F7).

You may then switch the major lines back to the default color with:

(setenv "2D Model grid major lines color" "6901577")

Similarly, you can change the color of minor lines in your grid, with:

(setenv "2D Model grid minor lines color" "8878450")

And go back to default with:

(setenv "2D Model grid minor lines color" "4732722")

For the layout grids (white background), use the variables:

(setenv "Layout grid major lines color" "15380637")

(this is the default color)

and:

(setenv "Layout grid minor lines color" "15380637")

(this is the default color)

The individual custom color codes (long numbers) can be generated for any color tint e.g. using the Color conversion tool - choose a color and then copy/paste the gray italic "Long code" under R/G/B.

These settings work also in standard AutoCAD and AutoCAD LT, incl. in the Mac versions.

ACADwebACADACLT
100% *CAD
24.11.2023    29640×  
applies to: ACADweb · AutoCAD · AutoCAD LT ·

See also:
Tip 14611:Contribution of individual features to the total mass of an Inventor part (iLogic).
Tip 14604:QRcode - dynamically generated QR codes in AutoCAD.
Tip 14527:Search/Replace texts in Inventor drawings - iLogic.
Tip 14328:How to verify entitlement of an application from Autodesk Apps using LISP?
Tip 14285:How to identify duplicate blocks in AutoCAD DWG drawings? SelDupBlk.


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:
Save your floating licenses (NLS) consumed by inactive users - free unused licenses with
LogOff 2006 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