Author Topic: ssget filters  (Read 2271 times)

0 Members and 1 Guest are viewing this topic.

ronjonp

  • Needs a day job
  • Posts: 7529
ssget filters
« on: March 08, 2005, 07:10:06 PM »
Why won't this work:

Code: [Select]
(setq ent (entsel "\n Select entity to set layer to total"))
(setq lay (cdr (assoc 8 (entget (car ent)))))
(setq sl
(ssget '((0 . "LWPOLYLINE,CIRCLE,POLYLINE,ELLIPSE,REGION,SPLINE")
      (8 . lay)
)
   )
)


Thanks,

Ron

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

SMadsen

  • Guest
ssget filters
« Reply #1 on: March 08, 2005, 07:15:54 PM »
Coz' of a quoted symbol. Try
Code: [Select]
(ssget
  (list
    '(0 . "LWPOLYLINE,CIRCLE,POLYLINE,ELLIPSE,REGION,SPLINE")
    (cons 8 lay)
  )
)

ronjonp

  • Needs a day job
  • Posts: 7529
ssget filters
« Reply #2 on: March 08, 2005, 07:38:22 PM »
Thanks stig.  :)

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC