background color variable
background color variable
(OP)
Hi Acad people:
Does any one knows wich variable or code keeps or handle the background color and the other colors that we setup at preference.?
I want to change it from a lisp prg.
Thanks
Does any one knows wich variable or code keeps or handle the background color and the other colors that we setup at preference.?
I want to change it from a lisp prg.
Thanks
You can reach me at k281969@hotmail.com
but keep your post here for mutual benefits.
Pardal





RE: background color variable
Dear Pardal;
I am not sure if you can change Autocad's background screen plotting colour. At least I could not find any way of doing it when asked to print copies of drawings with a biege background some weeks ago.
If you change the screen background to a new colour this is not reflected in the plot. To solve this problem I had to save my drawing as a .wmf file and have a freind change the background colour using Corel Draw . This worked and my client was happy.
Regards Adrian
RE: background color variable
My problem is not printing, is viewing, because some drafters use a dark background and I prefer clear one, so when I make a LISP , it must check for the backgronud so it can choose the color used to draw on.
You can reach me at k281969@hotmail.com
but keep your post here for mutual benefits.
Pardal
RE: background color variable
I've gotten some nice pointers here in the past. Maybe someone can help me again.
I'm displaying mtext on top of a solid fill and I want the text to display AND plot white. Please help me find a way to do this. changing the background colour does nothing for plot results.
It seems so basic!
HELP!
RE: background color variable
This may or may not help so take it for what it's worth. If you go into the profiles setup and select the profile you wish to use, you can export that profile into a .arg file with a name and location of your choosing. The file should contain all the information for the profile. Unfortunatley Lisp is my weakness, so I am not sure if this info will work or not. For some strange reason I decided to learn Java before Lisp. The file is written in an ascii text format. I know that with Java you can pull from ascii text and use the info inside your program, I am guessing that you can do the same with Lisp.
RE: background color variable
Sure it can be done with LISP, it has a lot of function to handle file.
Maybe it will be a dificult to generate the *.ARG file at the user or maybbe this file is updated when you cahnege the setting.
But is a beguin .
I will try it.
Thanks again.
You can reach me at k281969@hotmail.com
but keep your post here for mutual benefits.
Pardal
RE: background color variable
I browse at the *.arg files, and it refers to REGEISTER
but with a not understood number, the background color appears as a hexadecimal value that not correspond to the background color number.
I do not know nothing about regedit.
The background colors seem to be belonging to WINDOWS enviroment.
FOLLOW THE PART RELATED TO THIS AFFAIR FROM THE *.ARG
[HKEY_CURRENT_USER\Software\Autodesk\AutoCAD\R14.0\ACAD-2452134:65606680\Profiles\<<Unnamed Profile>>\Drawing Window]
"Background"=dword:00E6E6E6
"ForeColor"=dword:00000000
"BackColor"=dword:00FFFFFF
"XhairPickboxEtc"=dword:00000000
"MonoVectors"=dword:00000000
"FontFace"="MS Sans Serif"
"FontHeight"=dword:00000008
"FontWeight"=dword:00000190
"FontItalic"=dword:00000000
"CursorSize"=dword:00000064
This color number in decimal is 15132390, what does it mean ?
Pardal
Pardal
RE: background color variable
If you want to use hexadecimal value (instead of decimal value), the color chart can be found here:
http://www.forestasia.com/reference/colour_chart.asp