Lee Ambrosius has written some tools to work with the new AutoCAD 2005 feature Background Masking and posted beta versions on his AutoCAD related blog "Beyond the UI". Lee is a wealth of information and tools for AutoCAD.
LInk to Lee's post with the download of the tools:http://hyperpics.blogs.com/beyond_the_ui/2004/04/background_mask_1.html
The tools:
-DIMMASK - Allows you to apply and remove Background Masking for Dimensions from the command line
DIMMASK - Allows you to apply and remove Background Masking for Dimensions from the command line. Standard colors are selected though the Color dialog box.
-DIMSTYLEMASK - Allows you to apply and remove Background Masking for a Dimension Style from the command line
-MTEXTMASK - Allows you to apply and remove Background Masking for Mtext from the command line
MTEXTMASK - Allows you to apply and remove Background Masking for Mtext from the command line. Standard colors are selected though the Color dialog box.
Cheers,
-Shaan