View Full Version : UCSICON color does not stay set if a colors higher than 1 to 7 are used
greypaw
2006-11-14, 01:49 PM
HI all.
Has anyone else come across this...
I wish to change the colour of the ucsicon. If I set it to a "primary colour" ie AutoCAD 1 to 7 (red, yellow, green, cyan, blue etc) it is fine. And stays set.
I want to set it to a different colour - 141. It sets OK, but then, if I create a new drawing or open another, it reverts to white.
Any ideas??
Thanks.
BrenBren
2006-11-14, 02:12 PM
I don't have any ideas on how to solve it, but I did notice it did the same thing on my system.
greypaw
2006-11-15, 10:34 AM
Thanks Brenda.
As a "Wish List Manager", any chance of adding it as an item?
I guess, currently, it's what is commonly termed a "Feature"...
To the rest of us it's a plan old BUG!!
BrenBren
2006-11-15, 02:07 PM
Thanks Brenda.
As a "Wish List Manager", any chance of adding it as an item?
I guess, currently, it's what is commonly termed a "Feature"...
To the rest of us it's a plan old BUG!!
Feel free to submit your wish to the AutoCAD wish list; Click on Product Communties on the top menu from the forums; then go to the AutoCAD Community and Wish List and you will find the submit wish form - or, from the AUGI home page, the right side quick link menu should have a link to the wish list :)
jaberwok
2006-11-15, 07:53 PM
Purely out of idle curiosity - why do you want to change it?
greypaw
2006-11-16, 01:50 PM
How's about:
"because I should be able to"??
:-))
Seriously. I'd like to be able to set it to a discrete colour for some screen shots that I'm putting together.
I'd like it to be the same colour for each drawing that I open, and setting it each time is a pain in the a**e!
Thanks for the interest anyway.
madcadder
2006-11-16, 01:52 PM
Find the variable, define the color in an acaddoc.lsp.
Mike.Perry
2006-11-16, 02:02 PM
Find the variable, define the color in an acaddoc.lsp.Hi
That would be an Environment Variable ie
(setenv "UcsIconActiveColor" "ColourNumberHere") ;Modelspace icon colour (Integer)
(setenv "UcsIconNonActiveColor" "ColourNumberHere") ;Paperspace icon colour (Integer)Remember Environment Variables are case sensitive, they have to be typed exactly as shown above eg UPPER / lower case.
Have a good one, Mike
Mike.Perry
2006-11-16, 02:10 PM
Hi
HERE is a little more information, if you require...
Have a good one, Mike
BrenBren
2006-11-16, 02:35 PM
Hi
That would be an Environment Variable ie
(setenv "UcsIconActiveColor" "ColourNumberHere") ;Modelspace icon colour (Integer)
(setenv "UcsIconNonActiveColor" "ColourNumberHere") ;Paperspace icon colour (Integer)Remember Environment Variables are case sensitive, they have to be typed exactly as shown above eg UPPER / lower case.
Have a good one, Mike
And, depending on where you live, I'd guess that Colour might be spelled Color
;)
madcadder
2006-11-16, 05:12 PM
Hi
That would be an Environment Variable ie
(setenv "UcsIconActiveColor" "ColourNumberHere") ;Modelspace icon colour (Integer)
(setenv "UcsIconNonActiveColor" "ColourNumberHere") ;Paperspace icon colour (Integer)Remember Environment Variables are case sensitive, they have to be typed exactly as shown above eg UPPER / lower case.
Have a good one, Mike
Thank you for adding the additional info Mike. :beer:
Having a Monday on a Thursday was only allotting me the time to point in a general direction.
greypaw
2006-11-17, 02:12 PM
Many thanks Mike and Tod.
I guess we'll just have to live with American misinterpretation of OUR language!!
:-)
I'll try to use "color", even though is goes against the grain.
Thanks, Brenda, also.
Rob
greypaw
2006-11-17, 02:31 PM
OK. Guys...
That worked great for initial start of AutoCAD.
Now, if I go "File-Open" and open a different drawing, the ucsicon reverts to white.
Anymore ideas? (I've tried saving the acaddoc.lsp in both the support file path and the program file path).
Cheers.
Rob
(I've tried saving the acaddoc.lsp in both the support file path and the program file path).
AutoCAD will only read one of them, the first one found.
greypaw
2006-11-17, 02:50 PM
Yes, sorry. I mean't I've tried saving it in the two different locations.
R.
rkmcswain
2006-11-17, 03:31 PM
OK. Guys...
That worked great for initial start of AutoCAD.
Now, if I go "File-Open" and open a different drawing, the ucsicon reverts to white.
Anymore ideas? (I've tried saving the acaddoc.lsp in both the support file path and the program file path).
It works fine here, except that you have to click in the editor once, and zoom or pan in order to get the specified color to display. After that, the color sticks while in that same DWG.
greypaw
2006-11-17, 03:35 PM
R.K.
Thanks.
You're dead right!
I hadn't gotten as far as moving around in the drawing. I was so disappointed that the icon appeared not to have retained its colour!!
R.
madcadder
2006-11-17, 03:36 PM
right after the added code add a
(command "regenall")
Ok... Nevermind.
I changed mine to RED with:
(setenv "UcsiconActiveColor" "1")
(command "regenall")
and it worked.
Then I tried to set it back with an IF statement and it changed the ENV back to 7, but I can not get it to update what is on the screen back to the correct color, the GETENV shows it as "7", but the view is still RED.
I changed it in the dialog box successfully back to "white" or "7" and then tried again to change it in LISP.
I can not get it to view correctly, no matter what the variable says it is still the color I changed it to in the dialog box and only the dialog box shows the current color.
greypaw
2006-11-17, 04:12 PM
One of us VEEEERY confused...
:-)
I don't think putting the "regenall" in the acaddoc.lsp will help.
That file is only read the 1st time Acad is opened.
The environment variable will overrule the ucsicon setting that comes in with the new drawing, but it needs a screen refresh to see it.
I guess it would be possible to add a regenall after the "file-open" or "file-new" command, but I doubt it's worth it!
Thanks again anyway.
Have a good weekend and don't wake up screaming "UCS"!!
R.
One of us VEEEERY confused...
:-)
I don't think putting the "regenall" in the acaddoc.lsp will help.
That file is only read the 1st time Acad is opened.
The environment variable will overrule the ucsicon setting that comes in with the new drawing, but it needs a screen refresh to see it.
I guess it would be possible to add a regenall after the "file-open" or "file-new" command, but I doubt it's worth it!
Thanks again anyway.
Have a good weekend and don't wake up screaming "UCS"!!
R.
The ACADDOC.LSP file is read for each drawing that is opened. The ACAD.LSP file is read only once unless ACADLSPASDOC system variable is set to 1.
madcadder
2006-11-17, 08:24 PM
Good. Now that one of us is a little less confused :p
I will add that while the color was showing as RED on the screen, the GETENV stated "7", and the dialog showed RED I opened a new drawing. The icon was still red in the new drawing and GETENV still showed "7" for "UcsiconActiveColor" in Drawing2.dwg.
Now, we have something to be confused about. :(
Edit: Oh, and yes. All this was done in modelspace.
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.