Message 1 of 2
entmod to remove MText background
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to remove background mask from MText using entmod and am stuck a bit. If I use the example provided in entmod help article, it works. If I try to adjust it slightly to change Background mask setting instead of changing layer, it doesn't work. What am I missing?
The shortened piece of code, intended to make the entmod working. Before running the script a MText with a background should be made (or existing MText should be copied) so with entlast function a MText with background on would be retrieved:
(defun c:RemoveBackgroundMaskFromMText (/ ss i ent ed) ;ss = Selection Set, i = counter, ent = Entity, ed = Entity Data
(setq ent (entlast))
(setq ed (entget ent))
;(setq ed (subst (cons 8 "1") (assoc 8 ed) ed )) ;<-- This line is copied from Help sample, it works if next line is disabled
(setq ed (subst (cons 90 0) (assoc 90 ed) ed))
(entmod ed)
)