CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]
CZ | EN | DE
Login or
registration
  Visitors: 10679

CAD tip CAD tip # 13933:

   
Question CAD 
 %  platform  category 
Q - question

How to set grid colors in AutoCAD Web?

A - answer 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    13792×  
Prices - CAD eShop:
applies to: ACADweb · AutoCAD · AutoCAD LT ·

See also:
Tip 14022:Comparing design versions in Autodesk Fusion.
Tip 14017:Voronoi diagrams in AutoCAD.
Tip 13975:How to distinguish open tabs in Revit by project?
Tip 13938:ModDXF - utility for bulk modification/display of internal DXF properties in DWG entities.
Tip 13878:SelectSimilar - extended selections for AutoCAD, incl. LT and Web versions


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 glossary   



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 Systems is not responsible for possible problems that may occur as a result of using any of these tips.
TOPlist