Print Page | Close Window

macro/ lisp mtext background mask

Printed From: CAD Forum
Category: EN
Forum Name: AutoCAD
Forum Description: Discussion about AutoCAD and AutoCAD LT, viewers, DWG and DWF formats, Design Review, AutoCAD 360, add-ons
URL: https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10381
Printed Date: 23.May.2026 at 04:30


Topic: macro/ lisp mtext background mask
Posted By: Sandervp
Subject: macro/ lisp mtext background mask
Date Posted: 13.Jun.2014 at 09:26
Does anybody knows a macro or a lisp which will first select all the mtext objects in a drawing. Second; create a background mask (background color) for all those selected mtext objects. Third; puts the "defined width" to 0 or just as long as the text? 
And finally; send all these mtext object above all other objects with draworder.

The reason why;

I do have a drawing with a lot of mtext objects in different layers. Some do have a background mask and other doesn't have. Some mtext object with a background mask do have a large defined width meanwhile the text is short. Because of that a part of the drawing is not visible (see picture).
If I use the quick select command, I do can select all the mtext objects. After that I can use the draworder command and I can change the background mask settings of all those objects. But I can not change the defined width value. It isn't visible at the properties palette. Do I select only one object it does but all it doesn't...


Example:

(the rectangles are the background masks from the 3 mtext objects)

Does anybody knows a solution for this problem?

(Please excuse me for my bad English writing)

Look-a-like topic:
http://www.cadforum.cz/forum_en/forum_posts.asp?TID=5847



Print Page | Close Window