Background Mask in Text Styles

Background Mask in Text Styles

Anonymous
Not applicable
1,802 Views
3 Replies
Message 1 of 4

Background Mask in Text Styles

Anonymous
Not applicable

Hi all,

 

Has anyone heard of an add-in, lisp or work-around that would allow one to effect background mask as a text style setting?  If not, I'd like to submit it as an idea for future versions of AutoCAD.

 

Thanks,

 

Ryan

AutoCAD 2013, Windows 7, 64-bit

0 Likes
Accepted solutions (1)
1,803 Views
3 Replies
Replies (3)
Message 2 of 4

imadHabash
Mentor
Mentor

Hi,

 

does this routine help . >> Click <<

 

 

Imad Habash

EESignature

0 Likes
Message 3 of 4

Anonymous
Not applicable

Thanks for your response.

 

That lisp does make it a little easier to add background mask to text but, I'm looking for a way for the feature to be added automatically to all text and not have to go back and manually turn it off and on. 

0 Likes
Message 4 of 4

ВeekeeCZ
Consultant
Consultant
Accepted solution

Try this lisp to create new MTEXT.

 

(vl-load-com)

(defun c:MtextMasked (/ enl obj)

  (setq enl (entlast))
  (command "_.MTEXT" pause pause "Text" "")
  (and (not (equal enl (entlast)))
       (setq obj (vlax-ename->vla-object (entlast)))
       (not (vla-put-backgroundfill obj :vlax-true))
       (not (vla-put-textstring obj ""))
       (command "_.MTEDIT" "_L"))
  (princ)
)

And no, the mask can't be added to a text style in any way, so you may consider to submit this as an idea.