TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: ronjonp on July 18, 2007, 04:25:44 PM

Title: ssget filter
Post by: ronjonp on July 18, 2007, 04:25:44 PM
Does anyone see why this ss below would not filter polylines on one layer and blocks on one layer? Right now it is only selecting the blocks?

Code: [Select]
  (setq ss (ssget (list '(-4 . "OR<")
'(-4 . "<AND")
'(0 . "*POLYLINE")
(cons 8 *polylay*)
'(-4 . "AND>")
'(-4 . "<AND")
'(0 . "INSERT")
(cons 8 *entlay*)
'(-4 . "AND>")
'(-4 . "OR>")
  )
   )
  )
Title: Re: ssget filter
Post by: deegeecees on July 18, 2007, 04:30:18 PM
setq <add space> ss

Just a shot in the dark...
Title: Re: ssget filter
Post by: Jeff_M on July 18, 2007, 04:33:26 PM
Code: [Select]
  (setq ss (ssget (list '(-4 . "OR<")
  )

"<OR"

Changing that worked for me.....

Make sure, too, that the *polylay* variable holds the desired layer.
Title: Re: ssget filter
Post by: ronjonp on July 18, 2007, 04:35:13 PM
Thanks Jeff....sometimes you need another set of eyes :)