Message 1 of 7
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello 👋
I have a problem with my routine lisp code, it gives me an error when I have no element selected and I press the enter key.
I would like to know how I can make it check if the selection is empty in (ssget) and if it is, repeat (ssget), until there is a selection or the routine is canceled.
I wanted to use an if statement, but I didn't know where to put the statement.
This is the code
(setq linkvalue (itoa value)
ss (ssget)
len (sslength ss)
cont 0
entdata linkvalue
)Thank you very much for reading my message.
Greetings.
Solved! Go to Solution.