- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have commmands defined in .net, that draw things using lisp functions.
But I never have called those commands using lisp like (command "mydotnetcmd1" "string1" "value2"...).
It turns out I do have the need to allow users to call like that in scripts and other lisps.
When I do call them using (command "whatever...), the part of the code that runs a lisp function to draw stuff, does nothing.
It does not throw an error, I used a try-catch to see. It simply returns a resultbuffer of null.
I have to think this is because autocad thinks its still in another lisp function - the (command...), so will not allow a second one to run.
But that honestly does not make sense to me as that is allowed in every other situation.
I guess i do not understand why calling using (command... is different, from .net's point of view.
I tried various commandflags and it did not help.
My thought to work around this is make a lispfunction in .net, instead of a commmand, for times when the user wants to run on command line.
Then .net thinks its already in a lisp function, and that has worked in the past I recall.
I just do not like not understanding what is going on.
Any help appreciated.
internal protected virtual unsafe Human() : mostlyHarmless
I'm just here for the Shelties
Solved! Go to Solution.