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

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

giscivil92
Collaborator Collaborator
777 Views
5 Replies
Message 1 of 6

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

giscivil92
Collaborator
Collaborator

Hi Everyone

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

Thanks

0 Likes
778 Views
5 Replies
Replies (5)
Message 2 of 6

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

Message 3 of 6

giscivil92
Collaborator
Collaborator

@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
Message 4 of 6

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
Message 5 of 6

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
Message 6 of 6

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

 


EESignature