Jump to content
bcarlso2

Count Occurrences of Specific String

Recommended Posts

bcarlso2

I am trying to script a counter of specific strings. How can I select all occurrences of text that has a specific value? I cannot use filter or quickselect, and I cannot get selection sets to find specified values. Any help would be greatly appreciated. I am using ACADE 2015.

Share this post


Link to post
Share on other sites
BIGAL

You are incorrect about using selection sets, just make a selection set of text or mtext then look at each string using (wcmatch txtstring "your string*") it will return T true if it matches.

Share this post


Link to post
Share on other sites
Dadgad

I don't understand why you are unable to use Filter, how about using FIND & REPLACE, just for the search functionality?

Share this post


Link to post
Share on other sites
tombu
I don't understand why you are unable to use Filter, how about using FIND & REPLACE, just for the search functionality?

 

The Filter command was how I learned to do it a quarter century ago. We have many selection options now, but Filter will always be on my list.

Share this post


Link to post
Share on other sites
bcarlso2
You are incorrect about using selection sets, just make a selection set of text or mtext then look at each string using (wcmatch txtstring "your string*") it will return T true if it matches.

 

I found a way to do it. I ended up finding the dxf group codes I needed to specify the contents with ssget.

Share this post


Link to post
Share on other sites
bcarlso2
I don't understand why you are unable to use Filter, how about using FIND & REPLACE, just for the search functionality?

 

It uses a popup window, therefore it cannot be scripted how I need it.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...