Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

background color variable

Status
Not open for further replies.

pardal

Automotive
Oct 17, 2001
444
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
You can reach me at k281969@hotmail.com
but keep your post here for mutual benefits.
Pardal
 
Replies continue below

Recommended for you


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
 
Adrian :

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
 
Hey everyone.
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!
 
Hello Pardal
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.
 
Hey CADKID, you are the best kid on the block.

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
 
Hi CadKid:

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]
&quot;Background&quot;=dword:00E6E6E6
&quot;ForeColor&quot;=dword:00000000
&quot;BackColor&quot;=dword:00FFFFFF
&quot;XhairPickboxEtc&quot;=dword:00000000
&quot;MonoVectors&quot;=dword:00000000
&quot;FontFace&quot;=&quot;MS Sans Serif&quot;
&quot;FontHeight&quot;=dword:00000008
&quot;FontWeight&quot;=dword:00000190
&quot;FontItalic&quot;=dword:00000000
&quot;CursorSize&quot;=dword:00000064

This color number in decimal is 15132390, what does it mean ?

Pardal



Pardal
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor