Jump to content
Sign in to follow this  
E&S - Shaun

VectorScript to switch background to white

Recommended Posts

I was wondering if anyone has written a vectorscript to change the background of a drawing to white? I always draft with a black background but when I get a drawing that someone has done on white I can't see half of it. Any easier way than going into the preferences every time?

Share this post

Link to post

With all the boolean preferences you can use a one line script as follows:

SetPref(16, not GetPref(16)); { Black Bkgnd }

This will toggle the current value of the preference to the opposite value. Click on it again, and it toggles back. I use the following a lot

SetPref(9, not GetPref(9)); { ZLT }

to toggle the ZERO LINE THICKNESS preference on and off.

You can find the Preference numbers listed in a table at:

VectorScript Reference - Appendix

Share this post

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  


7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114


© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

  • Create New...