| Author |
Message |
SixFeet6
Guest
|
Posted:
Fri Dec 17, 2004 6:10 pm Post subject:
Ssget Filtet list |
|
|
how do i select all polylines in layer "X" but excluding those with linetype "DOT", all other have linetype "BYLAYER"
(ssget "_X" (list (cons 0 "LWPOLYLINE,POLYLINE") (cons 8 "X") (cons -4 "NOT") (cons 6 "DOT") (cons -4 "NOT")))
does not seem to be excepted.
thk you
|
|
| Back to top |
|
 |
Tom Smith
Guest
|
Posted:
Fri Dec 17, 2004 6:16 pm Post subject:
Re: Ssget Filtet list |
|
|
| Quote: | (ssget "_X" (list (cons 0 "LWPOLYLINE,POLYLINE") (cons 8 "X") (cons -4
"NOT") (cons 6 "DOT") (cons -4 "NOT"))) |
Check the docs -- (cons -4 "<not") and (cons -4 "not>") |
|
| Back to top |
|
 |
BillZ
Guest
|
Posted:
Fri Dec 17, 2004 6:16 pm Post subject:
Re: Ssget Filtet list |
|
|
(ssget "_X" (list (cons 0 "LWPOLYLINE,POLYLINE") (cons 8 "X")(cons 6 "~DOT")))
|
|
| Back to top |
|
 |
Tom Smith
Guest
|
Posted:
Fri Dec 17, 2004 6:34 pm Post subject:
Re: Ssget Filtet list |
|
|
| Quote: | (ssget "_X" (list (cons 0 "LWPOLYLINE,POLYLINE") (cons 8 "X")(cons 6
"~DOT"))) |
Very slick, Bill! In this case there are no variables involved, so the list
could be quoted...
(ssget "_X" '((0 . "LWPOLYLINE,POLYLINE") (8 . "X")(6 . "~DOT"))) |
|
| Back to top |
|
 |
BillZ
Guest
|
Posted:
Fri Dec 17, 2004 6:43 pm Post subject:
Re: Ssget Filtet list |
|
|
| Quote: | In this case there are no variables involved, so the list
could be quoted... |
I thought maybe to try that, but.....
Thanks
Bill |
|
| Back to top |
|
 |
Tom Smith
Guest
|
Posted:
Fri Dec 17, 2004 6:49 pm Post subject:
Re: Ssget Filtet list |
|
|
| Quote: | I thought maybe to try that, but.....
|
Your suggestion was great because it showed a couple of handy ways to
abbreviate a filter list -- multiple items separated by commas, and the
exclusion operator ~ in lieu of the -4 "not" groups. It's easy to overlook
shortcuts like those. |
|
| Back to top |
|
 |
BillZ
Guest
|
Posted:
Fri Dec 17, 2004 6:56 pm Post subject:
Re: Ssget Filtet list |
|
|
| Quote: | Your suggestion was great because it showed a couple of handy ways to
abbreviate a filter list -- multiple items separated by commas, and the |
exclusion operator ~ in lieu of the -4 "not" groups. It's easy to overlook
shortcuts like those.<<<
It's all stuff I learned hangin' around you guys. :^)
Bill |
|
| Back to top |
|
 |
|
|
|
|