Author Topic: How to get selection set : Window (from p0 to p1) and exclude locked Layer ?  (Read 947 times)

0 Members and 1 Guest are viewing this topic.

e2002

  • Mosquito
  • Posts: 8
I want to get a selection set using ssget.
my code:
Code: [Select]
(setq p0 (getpoint)
        p1 (getcorner p0)
)
(setq ss (ssget ":L+W" p0 p1 '((0 . "TEXT"))))

but the result always return nil.

How to get the selection set with right select_mode string in function "ssget" ?

ribarm

  • Gator
  • Posts: 3265
  • Marko Ribar, architect
Wouldn't just this be enough...

Code: [Select]
(setq ss (ssget "_:L" '((0 . "TEXT"))))
Marko Ribar, d.i.a. (graduated engineer of architecture)

:)

M.R. on Youtube

BIGAL

  • Swamp Rat
  • Posts: 1409
  • 40 + years of using Autocad
You need to look at some help about ssget filters, I suggest http://lee-mac.com/ssget.html

For you maybe WP, CP or  F note needs a list for F (list pt1 pt2) same for other filters.
A man who never made a mistake never made anything