Ssget Filtet list
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
Ssget Filtet list

 
Post new topic   Reply to topic    CADForums.net Forum Index -> Customization
Author Message
SixFeet6
Guest





Posted: Fri Dec 17, 2004 6:10 pm    Post subject: Ssget Filtet list Reply with quote

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 Reply with quote

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 Reply with quote

(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 Reply with quote

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 Reply with quote

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 Reply with quote

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 Reply with quote

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
 
Post new topic   Reply to topic    CADForums.net Forum Index -> Customization All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Powered by phpBB