Author Topic: ssget filter  (Read 1900 times)

0 Members and 1 Guest are viewing this topic.

ronjonp

  • Needs a day job
  • Posts: 7529
ssget filter
« 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>")
  )
   )
  )
« Last Edit: July 18, 2007, 04:26:55 PM by ronjonp »

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

deegeecees

  • Guest
Re: ssget filter
« Reply #1 on: July 18, 2007, 04:30:18 PM »
setq <add space> ss

Just a shot in the dark...

Jeff_M

  • King Gator
  • Posts: 4096
  • C3D user & customizer
Re: ssget filter
« Reply #2 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.
« Last Edit: July 18, 2007, 04:36:27 PM by Jeff_M »

ronjonp

  • Needs a day job
  • Posts: 7529
Re: ssget filter
« Reply #3 on: July 18, 2007, 04:35:13 PM »
Thanks Jeff....sometimes you need another set of eyes :)

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC