FILTER command to select MTEXT objects based on contents

FILTER command to select MTEXT objects based on contents

Anonymous
Not applicable
12,039 Views
6 Replies
Message 1 of 7

FILTER command to select MTEXT objects based on contents

Anonymous
Not applicable

I am using AutoCAD 2015 and I have a drawing with multiple MTEXT objects which are diffuser/grille references ie. SG1, SG2, EG1, B/SG1, B/EG1

 

What I would like to do is use the FILTER command to select all MTEXT items that contain the text SG and EG but I can't for the life of me figure out how to do it.

 

Can anyone help? Any help would be greatly appreciated.

0 Likes
12,040 Views
6 Replies
Replies (6)
Message 2 of 7

h_s_walker
Mentor
Mentor

I would do a quick select.

 

QSELECT

Change the object type to MTEXT

Now select CONTENTS

Change = to WILDCARD MATCH

 

Now put *?G#* in the white box

 

The ? is a single letter before the G

The # is a single digit after the G

The *s at the beginning and end are Any characters at the beginning and end (including no characters at all)

 

You can ignore the question mark if you want

 

 

Howard Walker
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Left Handed and Proud

Message 3 of 7

3wood
Advisor
Advisor

@h_s_walker wrote:

I would do a quick select.

 

QSELECT 


Agree.

Settings as below:

Capture.PNG

Message 4 of 7

sbutler502
Advocate
Advocate

Does not work for me (Civil 3D 2022).

Looking to just select three digit numbers.

 

wild card filter ### gives nothing

wild card filter *** gives everything

wild card filter ??? gives nothing

 

The hidden formatting codes are causing it to fail.  All the numbers are preceded with

\pxqc;

 

Almost as bad as drawing on layer 0.

0 Likes
Message 5 of 7

Patchy
Mentor
Mentor

Use text value

*SG*

it will work

0 Likes
Message 6 of 7

sbutler502
Advocate
Advocate

Nope first I have to strip out some formatting.

I'm trying this

StripMtext Version 5.0b (Removes embedded Mtext formatting)

With the amount of annotative mtext it took awhile.

Wildcard ### now works.

0 Likes
Message 7 of 7

Patchy
Mentor
Mentor

Post your .dwg and see if it works.

0 Likes