Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IDS on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Background mask

Status
Not open for further replies.

IFRs

Petroleum
Nov 22, 2002
4,658
Is there an easy LISP to turn on the background mask using the drawing background color for selected MText and DIM objects?
 
Replies continue below

Recommended for you

You can change this in the Properties box/palette after selecting them. I would use qselect to select them and then go to the Properties box/palette and set this.
 
That's how I do it now. It is too slow and cumbersome. I'd like a short (2 letter) keyboard command that toggles the ask on or off. Anyone know the settings?
 
D.,
which version? I think in 2008 you can use a lisp...

L.

ADT 2004
 
I have 2008 - keep going!!! I found a routine for MText called MTB but it does not toggle nor work on Dimension text.
 
For dimensions, in 2008, you can modify the dimension style so that it automatically includes a text mask.

(Dimension styles, text tab, fill color)

On most of our dwgs, though, we only use it for specific dimensions. Easiest way I've found to do that, is to change one, then paste properties. (Works for mtext too.) We usually throw a couple dims into the drawing, with the mask on, and then paste properties as we go.

I know there's got to be an easier way, but I don't know what it is.
 
For dimensions I came up with this. Now to do a similar thing for MText and Text...

DEFUN C:DBM (/ DTF DTC NTF NTC) ; Toggle Selected and Future Dimension Background Mask On or Off
(SETQ DTF (GETVAR "DIMTFILL")
DTC (GETVAR "DIMTFILLCLR")
NTF 1
NTC 7
)
(IF (= DTF 1) (SETQ NTF 0 NTC 0))
(SETVAR "DIMTFILL" NTF)
(SETVAR "DIMTFILLCLR" NTC)
(COMMAND "DIM1" "UPDATE" PAUSE)
; (SETVAR "DIMTFILL" DTF)
; (SETVAR "DIMTFILLCLR" DTC)
(PRINC)
)
 
@IFRs

well done, I did not get it...

L.

ADT 2004
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor