"Fatal Error: Commands may not be nested more than 4 deep"
"Fatal Error: Commands may not be nested more than 4 deep"
(OP)
Hi...I'm creating a lISP file which will do something in 3d... When I load my lisp and start it, I must enter desired data in dialog box, and when I click OK it draws for me a 3d MODEL....now...this 3d model needs to be 3dmirrored...arrayed....etc...but I'm coming up to the following problem...Each time lisp draws for me this model this command 3dmirror remains active (this can be checked if you type cmdnames in autocad's command line). And when I start my dialog box for three times I get an error message like this:
"Fatal Error: Commands may not be nested more than 4 deep"
and my acad crashes. For some reason only this command remains active and I don't know how to shut it off???? Can anyone help me on this?
If I omit this command from my lisp file, and if I create a new lisp to do only mirror, then everything is OK...but this is not a solution?
Is there any chance to deactivate this command when my model is drawn?
Thanks in advance...
"Fatal Error: Commands may not be nested more than 4 deep"
and my acad crashes. For some reason only this command remains active and I don't know how to shut it off???? Can anyone help me on this?
If I omit this command from my lisp file, and if I create a new lisp to do only mirror, then everything is OK...but this is not a solution?
Is there any chance to deactivate this command when my model is drawn?
Thanks in advance...





RE: "Fatal Error: Commands may not be nested more than 4 deep"
It's been a while since I've done any LISP, but it sounds like you may not be exiting one of the other commands properly - meaning you may have missed a command prompt, or accidentally added and extra return and caused the command to repeat. Check it and if that's not it, post your code and I'm sure we can help you figure it out...
HTH
Todd
RE: "Fatal Error: Commands may not be nested more than 4 deep"
ADT 2004
RE: "Fatal Error: Commands may not be nested more than 4 deep"
I'm trying all day today to solve this problem...but I can't.
Problem is whenever I called mirror3d command..and any other command after that (like move in this example)..mirror3d became written in CMDNAMES...and that is the problem..I tried to create separate function only for mirror3d but wont work.
So, I can call mirror3d just for one time..
I'm desperate..
RE: "Fatal Error: Commands may not be nested more than 4 deep"
IIRC, mirror3d is an external program - you need to call it this way:
(mirror3D ....
not
(command "mirror3D" ...
HTH
Todd
RE: "Fatal Error: Commands may not be nested more than 4 deep"
; error: no function definition: MIRROR3D
Am I doing something wrong again??
Thanks
RE: "Fatal Error: Commands may not be nested more than 4 deep"
http
Here says, when explaining what does the c:bn () means, that C: stands for external function..
Does that mean that I must exit my main command, which is call in this case, and then somehow to call 3dmirror.
RE: "Fatal Error: Commands may not be nested more than 4 deep"
Nope, it just means you need to be sure it's loaded before you call it. When you run it from the command line, it's demand loaded, but when you call it from your routine, it's just trying to execute it - I think Acad.lsp (I know it's probably something different now) has some pretty good examples of how to check if a routine is loaded or not...
HTH
Todd
RE: "Fatal Error: Commands may not be nested more than 4 deep"
This site ht
also says to call command (mirror3d..) but just wont work.
RE: "Fatal Error: Commands may not be nested more than 4 deep"
There are couple of things to say here, if someone need this also.
1. When you have external function like this mirror3d you must call it like this (mirror3d....) and not like this (command "mirror3d")...
2. THIS IS THE MOST IMPORTANT... before you do anything you must load file that contains your function. In my case, mirror3d is a part of GEOM3D.ARX file....so,my lisp wasn't working because I didn't load this arx file...When I put in my lisp code this line (arxload "geom3d") everything was ok..
Maybe this can be helpful for someone to know.
Regards, and thank you