Originally Posted by
cadconcepts
Hi Tom
I tried your code and got an error message. On the second try, I added the (vl-load-com) code to the routine but I got the same error message. The error message was:
** Error: bad argument type: lentityp nil **
Cannot invoke (command) from *error* without prior call to (*push-error-using-command*).
Converting (command) calls to (command-s) is recommended.
Thanks.
Manuel
Try changing line
Code:
(command ".draworder" ss "" "front")
to
Code:
(command-s ".draworder" ss "" "front")
or
Code:
(vl-cmdf ".draworder" ss "" "front")
The lisp function command-s is newer, but all three of these work for me on Civil 3D 2018. I'll modify the code to use vl-cmdf since it should work for most everyone.
What version are you using?