Author Topic: Select text filterlist  (Read 1477 times)

0 Members and 1 Guest are viewing this topic.

csgoh

  • Newt
  • Posts: 176
Select text filterlist
« on: July 23, 2009, 06:03:02 AM »
I need to filter text objects that ends with a certain suffix, eg 12.123IL.
How to go about it?
Using (ssget (list (cons 0 "TEXT"))) selects all the text. Any more to add to be more specific so that all texts ends with an IL?
thanks

csgoh

gile

  • Gator
  • Posts: 2520
  • Marseille, France
Re: Select text filterlist
« Reply #1 on: July 23, 2009, 06:45:05 AM »
Hi

With string values, the filter accepts wildcard patterns, you can ty :

(ssget (list (cons 0 "TEXT") (1 . "*12.123IL")))
Speaking English as a French Frog

csgoh

  • Newt
  • Posts: 176
Re: Select text filterlist
« Reply #2 on: July 23, 2009, 09:47:49 AM »
Thks for q quick reply.

csgoh

csgoh

  • Newt
  • Posts: 176
Re: Select text filterlist
« Reply #3 on: July 27, 2009, 12:56:30 AM »
one more question.
what if i want to select texts that do no end with IL?
i tried using the -4 thingy but no luck.

gile

  • Gator
  • Posts: 2520
  • Marseille, France
Re: Select text filterlist
« Reply #4 on: July 27, 2009, 01:29:45 AM »
Hi,

Look at the wcmatch LISP function topic in the developer's help.

(ssget '((0 . "TEXT") (1 . "~*IL")))
Speaking English as a French Frog

csgoh

  • Newt
  • Posts: 176
Re: Select text filterlist
« Reply #5 on: July 28, 2009, 04:55:27 AM »
thanks gile, shall do that.