Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Is it possible to select mtexts based on the number of characters in AutoCAD!?

giscivil92
Advocate

Is it possible to select mtexts based on the number of characters in AutoCAD!?

giscivil92
Advocate
Advocate

Hi Everyone

Is it possible to select Mtexts based on the number of characters in AutoCAD!?

Thanks

0 Likes
Reply
388 Views
5 Replies
Replies (5)

cadffm
Consultant
Consultant

Hi,

 

yes, it should work if you are searching for by using wildcards&the whole string

 

???

String with 3 characters.

 

Should work in Filter,Qselect and Find command.

 

Start tests with TEXT,

because Mtext content can incl. internal formats and they are stored as part of the content.

 

"Hello" = ?????

But if you set the color of that "e" to a different color, the content is no longer "Hello" and ????? will not find this item.

 

 

Sebastian

giscivil92
Advocate
Advocate

@cadffm Thanks for your response 

Actually, i know what you said but I don't want to change the mtext to text because I need the backgrounds

As i said i want to select some mtexts based on number of characters

 

 

0 Likes

cadffm
Consultant
Consultant

>>Actually, i know what you said "

No you doesn't

 

>>"but I don't want to change the mtext to text "

Nobody mentioned that. I said you should TEST with Texts.

 

 

>>"As i said i want to select some mtexts based on number of characters"

If it is okay that you have to type in ???? Instead 4

you have three solutions now.

 

 

And a Tool for  selection by "4" instead ???? is pretty simple,

but I like to show how to do ootb.

Sebastian

0 Likes

vladimir_michl
Advisor
Advisor

There might be problems with formatted Mtexts but for standard Mtext you can just use the "????" wildcards as advised, or the srxText freeware utility and its "seLect" option, with the regular expression:

^.{4}$

to find texts with 4 characters,

^\w{3,5}$

to find texts with 3-5 word characters,

^\d{6,}$

to find texts with 6 or more digits, etc.

See www.cadforum.cz tips and downloads.

 

Vladimir Michl, www.arkance.world  -  www.cadforum.cz

 

0 Likes

tramber
Advisor
Advisor

I gave a try to FILTER, because I like it, made it 2 seconds, it worked on a text, a mtext and even a dim !

The only topic could be: how many characters ? 😊

tramber_0-1720096456817.png

 

0 Likes