Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Login
Register
TheSwamp
»
Code Red
»
AutoLISP (Vanilla / Visual)
»
Topic:
Select text filterlist
« previous
next »
Print
Pages: [
1
] |
Go Down
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
Logged
gile
Gator
Posts: 2520
Marseille, France
WWW
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")))
Logged
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
Logged
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.
Logged
gile
Gator
Posts: 2520
Marseille, France
WWW
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")))
Logged
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.
Logged
Print
Pages: [
1
] |
Go Up
« previous
next »
TheSwamp
»
Code Red
»
AutoLISP (Vanilla / Visual)
»
Topic:
Select text filterlist