VBA macro to toggle white background in drawings

Programming and macros
User avatar
Eddy Alleman
Posts: 50
Joined: Thu Apr 01, 2021 10:32 am
Answers: 8
Location: Belgium
x 80
x 89
Contact:

VBA macro to toggle white background in drawings

Unread post by Eddy Alleman »

On the SolidWorks forum someone asked how to make a macro that toggles between the default drawing background color and a white color.

The goal was to make it easier to capture images where a white background was required.

Here is a simple macro that does exactly that. I will also explain the basic buttons/shortcuts/menus you need.
ToggleWhiteBackground.png
ToggleWhiteBackground.png (4.88 KiB) Viewed 712 times
https://www.edalsolutions.be/index.php/ ... n-drawings
It will also appear on Codestack later on...

Eddy
by Eddy Alleman » Tue Nov 02, 2021 8:55 am
As of today it is added to Codestack website.
https://www.codestack.net/solidworks-ap ... und-white/
Go to full post
User avatar
Eddy Alleman
Posts: 50
Joined: Thu Apr 01, 2021 10:32 am
Answers: 8
Location: Belgium
x 80
x 89
Contact:

Re: VBA macro to toggle white background in drawings

Unread post by Eddy Alleman »

As of today it is added to Codestack website.
https://www.codestack.net/solidworks-ap ... und-white/
Post Reply