How to change grid line colour?

Anonymous

How to change grid line colour?

Anonymous
Not applicable

Hi everyone!

 

For some reason I can't work out how to change the colour of the grid lines so would really appreciate some help. I'm running AutoCAD 2018 on MacOS, and I've looked all over the internet but can't find a solution! Everything I have found has been for Windows, so the variation in menus between the two has made it hard or impossible to follow, especially for a beginner! Snap and Grid tab under Drafting settings doesn't have a colour option, and neither do any of the tabs in Preferences. Am going insane trying to do this! Was making a grid with A4 sized squares so I can join 2 printed layouts together; I'm an architecture student and the lockdown has meant I can't access any large printers unfortunately. All I want is an A3 site plan to be able to trace, and thought this would be an easy process I could repeat if needed whilst we are stuck at home! I'd appreciate any help!

 

Many Thanks,

 

Nick

 

Previously posted to the main AutoCAD forum and wasn't aware of this Mac one!!

0 Likes
Reply
Accepted solutions (1)
2,800 Views
15 Replies
Replies (15)

maxim_k
Consultant
Consultant
Hi Nick,

There is no way to change color of grid lines with Preferences or Settings in AutoCAD for Mac, but it is possible to change it by altering environment variable with AutoLISP (setenv ....) function:
https://help.autodesk.com/view/OARXMAC/2019/ENU/?guid=GUID-0C2E8222-62A8-4529-8A8A-58AAB2A5F23B

But the difficulty is that the color number to be assigned must be specified in a special format that does not match the standard AutoCAD color numbers.
Assuming you are using full AutoCAD (not LT), I can help you with (setenv) arguments - variable name and value (color number).
What color you want to have for grid?

Do you find the posts helpful? "LIKE" these posts!
Have your question been answered successfully? Click 'ACCEPT SOLUTION' button.


Maxim Kanaev
Architect
MARSS

MacACAD | Linkedin

Etiquette and Ground Rules of Autodesk Community

pendean
Community Legend
Community Legend
Not an automatic feature of AutoCAD in any OS: use PLOT with the WINDOW selection option, or PLOT to PDF then find a PDF viewer that will split sheets up for you.

HTH
0 Likes

Anonymous
Not applicable

Thanks for replying, this is much appreciated. I have the full version, just on a free student license so all should work.

 

I wanted something just a bit brighter really. A light blue if possible?

0 Likes

maxim_k
Consultant
Consultant
Accepted solution

>>>>>A light blue if possible?

OK.

Try this:

(setenv "2D Model grid axis lines color" "13942131")
(setenv "2D Model grid major lines color" "14733209")
(setenv "2D Model grid minor lines color" "15129005")

Copy-paste strings to command line and hit Return. Create new drawing and look at grid color.

This is what you need?

 

To restore default colours you need to use these statements:

 

(setenv "2D Model grid axis lines color" "6114631")
(setenv "2D Model grid major lines color" "6901577")
(setenv "2D Model grid minor lines color" "4732722")

 


Do you find the posts helpful? "LIKE" these posts!
Have your question been answered successfully? Click 'ACCEPT SOLUTION' button.


Maxim Kanaev
Architect
MARSS

MacACAD | Linkedin

Etiquette and Ground Rules of Autodesk Community

Anonymous
Not applicable

Sorry for the late reply, I just tried it! Worked perfectly thank you!!! I'll keep those command lines for future reference. Glad its not too tricky.

 

Many Thanks, 

 

Nick

0 Likes

raissa.spiteri2VN2F
Observer
Observer

I have tried this and it worked. However, I would like it to make it seen when exporting it into a pdf or printing. How will that be possible please?

0 Likes

maxim_k
Consultant
Consultant

Hi @raissa.spiteri2VN2F .

 

The grid you see inside drawing canvas is for display purposes only, it is a visual aid and never prints.

If you want to print grid lines, you need to create your own grid in the drawing.

 


Do you find the posts helpful? "LIKE" these posts!
Have your question been answered successfully? Click 'ACCEPT SOLUTION' button.


Maxim Kanaev
Architect
MARSS

MacACAD | Linkedin

Etiquette and Ground Rules of Autodesk Community
0 Likes

raissa.spiteri2VN2F
Observer
Observer

Thank you for your reply. 
I tried to recreate the grid but seems to be shifting constantly and when compared to the actual measurements it is not precise. 

0 Likes

maxim_k
Consultant
Consultant

@raissa.spiteri2VN2F ,

 

Yes, AutoCAD grid changes when you zoom in/out, if you mean this.

And if you need this behaviour in PDF or on a hard copy, you need to create different grids for different zoom levels.


Do you find the posts helpful? "LIKE" these posts!
Have your question been answered successfully? Click 'ACCEPT SOLUTION' button.


Maxim Kanaev
Architect
MARSS

MacACAD | Linkedin

Etiquette and Ground Rules of Autodesk Community
0 Likes

raissa.spiteri2VN2F
Observer
Observer

Understood.

 

Thanks again for the feedback. Much appreciated. 

0 Likes

alastair_leith
Enthusiast
Enthusiast

wish I could bookmark this against my account. going to need in the future again. the standard grid colour is almost invisible in some lights. why not add to Settings, they have colour settings for 10 the things! Grid colours is pretty fundamental to most modern design workflows.

0 Likes

alastair_leith
Enthusiast
Enthusiast

@maxim_k Autocad for Mac 202 wont let me paste these lines into the command line for some reason. I can past them to a text app so macOS is copying them fine. Either as single lines or as three lines.

when I click on the button to the right side of the command line panel at bottom of the screen, the command line palette moves over to the bottom left hand side of the screen and when I paste it asks me for a Paste insertion point and just pastes the text as MText. How crazy! Pretty sure I've run AutoLisp scripts in the command line a week ago and were working fine.

 

0 Likes

maxim_k
Consultant
Consultant

@alastair_leith 

 

Try to use right-click context menu in the Command window:

2023-09-18_11-25-30.png

 

2023-09-18_11-26-00.png

 

Now when the line of AutoLISP code is in the Command line, just hit Return

 

>>>>>when I click on the button to the right side of the command line panel at bottom of the screen, the command line palette moves over to the bottom left hand side of the screen

This button is for undocking Command window.


Do you find the posts helpful? "LIKE" these posts!
Have your question been answered successfully? Click 'ACCEPT SOLUTION' button.


Maxim Kanaev
Architect
MARSS

MacACAD | Linkedin

Etiquette and Ground Rules of Autodesk Community
0 Likes

alastair_leith
Enthusiast
Enthusiast

so I put these commands in a LISP script and it doesn't chang the grid lines. If I make. new drawing the gird lines are the same and the command is not known. the current gridlines do not change either, after REGEN and REDRAW.

a shame, this would be useful, and amazed it's not part of the core product in either OS, this is UI 101.

0 Likes

maxim_k
Consultant
Consultant

@alastair_leith ,

 

Do you have full AutoCAD or AutoCAD LT?

Can you show screenshot of what you see, when you paste all 3 lines of code (or one by one) to the command window and hit Return after tat?

 


Do you find the posts helpful? "LIKE" these posts!
Have your question been answered successfully? Click 'ACCEPT SOLUTION' button.


Maxim Kanaev
Architect
MARSS

MacACAD | Linkedin

Etiquette and Ground Rules of Autodesk Community
0 Likes