Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Why I can't have the number of objects with this code:
(setq selectiopanel (ssget '((2 . "Painel Fotovoltaico" )))) (setq n (sslength selectiopanel))
The selection works fine, but the n value returns nil. And on the command line screen it returns this error:
:CALLBACK-ENTRY.6 (:CALLBACK-ENTRY)
:ARQ-SUBR-CALLBACK.3 (nil 0)
Error: bad function: <Selection set: 92>
TIA
Solved! Go to Solution.