I gave a complex lisp routine to a friend of mine.
It uses ACAD2021...
And in a lot of situations,
something that was working perfectly in ACAD2006,
now doesn't work !
The most frequent issue is that
some very simple instructions
don't work !
(vl-cmdf "explode" (car (entsel)))
(vl-cmdf "_.-explode" (car (entsel)))
(vl-cmdf "_.-ucs" "origin" (getpoint))
(command "_.-ucs" "origin" (getpoint))
(command "_.-erase" (ssget)"")
And ACAD says :
AutoCAD command rejected:
It is not possible to put the code here.
It is too much long and complex.
I would like to understand what could be the cause,
also because the same code,
in ACAD 2021, used in another (simpler) context works!
Any suggestion ?