Message 1 of 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I'm trying to do a very simple lisp which ask the user which layer he wants to clean and delete all items on it.
The layer selected by the user is named "folasup" and I make a selection set by :
(setq sel (ssget "x" (list (cons '8 Folasup))))
Then I try this condition :
(if (> (sslength sel) 0)
My problem is when there is nothing in the selection set... in this case the watch shows me that the content of "sslength sel" is <***ERROR***>.
I don't know how to consider this case.
Could you help me please ?
Solved! Go to Solution.