Announcements

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

AutoCAD - Changing background color throughout company

j.Acad
Participant

AutoCAD - Changing background color throughout company

j.Acad
Participant
Participant

I am trying to change the paperspace background to a different color for the entire company. I know how to change it locally (options > display > colors...) but I cannot seem to find the setting for the entire company. I expected that this was done via the CIU, but this does not seem to include this setting. Can anyone point me into the right direction?

 

[ The subject line of this post has been edited for clarity by @handjonathan Original: Changing background color throughout company ]

0 Likes
Reply
Accepted solutions (1)
866 Views
5 Replies
Replies (5)

cadffm
Consultant
Consultant
Accepted solution

Hi,

 

It's part of the (Acad)User-Profile!

Per Windows-User, foreach product, foreach AutoCAD-Profile..

You can setup a line of code what runs on AutoCAD start (familiar with that?)

or as admin - iterate thru all users, all version, all profiles and change the setting.

 


(setq oldcolX (vla-get-GraphicsWinLayoutBackgrndColor (vla-get-Display(vla-get-Preferences(vla-get-application(vlax-get-acad-object))))))

(vla-put-GraphicsWinLayoutBackgrndColor (vla-get-Display(vla-get-Preferences(vla-get-application(vlax-get-acad-object)))) 5987163)
(vla-put-GraphicsWinLayoutBackgrndColor (vla-get-Display(vla-get-Preferences(vla-get-application(vlax-get-acad-object)))) 16777215)

(vla-put-GraphicsWinLayoutBackgrndColor (vla-get-Display(vla-get-Preferences(vla-get-application(vlax-get-acad-object)))) oldcolX)

 

or this way (needs a refresh, so switch the layout one time to see the new color)

(setq oldcolY (getenv "Layout background"))

(setenv "Layout background" "5987163")
(setenv "Layout background" "16777215")
(setenv "Layout background" oldcolY)

same for LT

setenv "Layout background" "5987163"
setenv "Layout background" "16777215"

 

See also tool like <This>

Sebastian

0 Likes

j.Acad
Participant
Participant

Thank you, this was exactly the solution which I was after. Your response and google pointed me into the right direction. We already do use a startup script, so I added the following to it, which seems to work.

 

;set model colors
(vla-put-GraphicsWinModelBackgrndColor (vla-get-Display(vla-get-Preferences(vla-get-application(vlax-get-acad-object)))) 3156001)
(vla-put-ModelCrosshairColor (vla-get-Display(vla-get-Preferences(vla-get-application(vlax-get-acad-object)))) 16777215)
;set layout colors
(vla-put-GraphicsWinLayoutBackgrndColor (vla-get-Display(vla-get-Preferences(vla-get-application(vlax-get-acad-object)))) 3156001)
(vla-put-LayoutCrosshairColor (vla-get-Display(vla-get-Preferences(vla-get-application(vlax-get-acad-object)))) 16777215)

RobDraw
Mentor
Mentor

@j.Acad wrote:

I am trying to change the paperspace background to a different color for the entire company.


Why?


Rob

Drafting is a breeze and Revit doesn't always work the way you think it should.
0 Likes

j.Acad
Participant
Participant
The standard bockground color is white, which does not contrast enough with our standard layer colors. (also, white backgrounds are harder on the eye then darker ones)
0 Likes

RobDraw
Mentor
Mentor

Shouldn't it be a personal choice? Not everyone is bothered by a white background.

 

Don't you print on white paper?


Rob

Drafting is a breeze and Revit doesn't always work the way you think it should.
0 Likes