Community
AutoCAD Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

5 REPLIES 5
Reply
Message 1 of 6
giscivil92
345 Views, 5 Replies

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

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

Hi Everyone

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

Thanks

5 REPLIES 5
Message 2 of 6
cadffm
in reply to: giscivil92

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

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
in reply to: cadffm

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 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

 

 

Message 4 of 6
cadffm
in reply to: giscivil92

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

>>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

Message 5 of 6
vladimir_michl
in reply to: giscivil92

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

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

 

Message 6 of 6
tramber
in reply to: giscivil92

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

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

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report