LISP to change crosshair Tint for X,Y,Z

LISP to change crosshair Tint for X,Y,Z

D_Love
Participant Participant
607 Views
5 Replies
Message 1 of 6

LISP to change crosshair Tint for X,Y,Z

D_Love
Participant
Participant

Does anyone know how to use LISP to toggle this checkbox? (I'm using Civil3D if it matters)

Options->Display->Colors->[Context]->Crosshairs->Tint for X,Y,Z

 

The two specific contexts I care about are 2D model space and Sheet/Layout.

I've checked system variables, environment variables, object model, forums, etc and can't find it. Any help would be greatly appreciated.

0 Likes
Accepted solutions (1)
608 Views
5 Replies
Replies (5)
Message 2 of 6

pendean
Community Legend
Community Legend

@D_Love wrote:

..The two specific contexts I care about are 2D model space and Sheet/Layout.


May I confirm, you only want the ability to toggle x,y,z tint on and off in each tab/space, correct? AKA sometimes on sometimes off, with a manual trigger controlled by you

pendean_1-1719496249418.png

 

 

 

 

 

0 Likes
Message 3 of 6

D_Love
Participant
Participant

Yes, that is the box I am wanting to change using LISP.

I may have used the word toggle wrong. Our company standard is to have it on all the time. I'm making a lisp routine that sets all company visual display standards that will be ideally only be run once when a new version of Civil3D is installed.

Message 4 of 6

ВeekeeCZ
Consultant
Consultant

Try Registry, under profiles.

 

Computer\HKEY_USERS\***\SOFTWARE\Autodesk\AutoCAD\R24.1\ACAD-5100:409\Profiles\***\Drawing Window\Model Xhair use tint

0 Likes
Message 5 of 6

paullimapa
Mentor
Mentor
Accepted solution

from @ВeekeeCZ hint, this code should work:

(setenv "Model Xhair use tint" "1")

Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
Message 6 of 6

D_Love
Participant
Participant

Thanks. That is exactly what I was looking for. I also added the following line to apply the tint to layout tabs as well.

(setenv "Model Xhair use tint" "1") ;Tint croshairs on model tab
(setenv "Layout Xhair use tint" "1") ;Tint crosshairs on layout tabs
0 Likes