bad argument type: VLA-OBJECT NIL...exasperated trying to fix

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I've been trying to build several LISPS for coloring items in blocks. This latest error has me completely stumped, I had it working earlier today, and of course now I've lost it.
I'm getting an error "bad argument type: VLA-OBJECT NIL." I've searched for a while and it seems like an avalanche of issues can cause this. I've loaded the code into the Visual LISP editor inside ACAD, and gotten all the parentheses are straightened out, so at least the code loads initially ok. I've tried tracing the error, but I can't get anywhere with the :CALLBACK-ENTRY error message. AAAAGH!!
The part that isn't cooperating is where I am trying to send ellipses to a certain layer. I swear I've checked all the formatting, used code from previously higher up in the LISP, but I just can't get the darn thing to cooperate; files are attached. Thanks for any help!