Message 1 of 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have tried to figure this out but I continue to either get errors or, when I do get success I get the "no objects found" message even when there is one. I am obviously a noob but can't wrap my head around the If statement or if I even need it with the sssetfirst command.
I'm sure I am over complicating this.
SMH
(defun C:GET_N (/ echo ssN)
(setvar "Expert" 3)
(setq echo (getvar 'cmdecho))
(setvar 'cmdecho 1)
;;(sssetfirst nil ssN)
(prompt
(if setq ssN (ssget "_x" '((8 . "*NEW*"))))
;;(command "select" ""))
(print "No objects found"))
(princ)
)
Solved! Go to Solution.