VBA macro to toggle white background in drawings

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
https://www.edalsolutions.be/index.php/nl-NL/automatisatie/vba-macro-s/52-toggle-white-background-in-drawings
It will also appear on Codestack later on…

Eddy

As of today it is added to Codestack website.
https://www.codestack.net/solidworks-api/options/application/toggle-drawing-background-white/