T O P I C R E V I E W |
n/a |
Posted - June 14 2006 : 4:04:53 PM I have a lisp routine which completes, but when I run it as Hurricane script, it does not continue on to the next drawing in Hurricane.scr. There are no error messages after running; it just refuses to go on to the next drawing.
The lisp routine begins by opening a "dxf" format drawing and saving the name to a text file ("txt"). The lisp then defines an on-the-fly script which opens a dwg format drawing and inserts the previous "dxf" into the "dwg". Finally it saves the "dwg" with the base name of the original "dxf" file, but with a "dwg" extension.
I have attached the text from my command line below.
Download Attachment: Command Line.txt 3.59 KB
I have attached my original lisp routine below. The extension needs to be changed to "lsp".
Download Attachment: kcpart.zip 1.25 KB
I have attached the script resulting from the lisp routine below. It's extension needs to be changed to "scr".
Download Attachment: kcparttmp.txt 494 Bytes
I have attached the second lisp routine (called by the script) below. It's extension needs to be changed to "lsp".
Download Attachment: kcfinish.zip 1.24 KB
My hurricane script is attached below. It's extension will have to be changed to "scr".
Download Attachment: hurricane.txt 66.39 KB
Anyone have any ideas? Bill? Mike? |
2 L A T E S T R E P L I E S (Newest First) |
n/a |
Posted - June 15 2006 : 09:45:16 AM Thanks, Bill. I'm slowly coming to the same conclusion as you. I say slowly, tho, because I swear I have other lisps that do the same thing, which work. Maybe it has to do with order of calls, or from which drawing the script or lisp is called, seeing as this script and the others I'm referring to, all change drawings "mid-stream". I'll have to study some of the others and see if I can't discover the difference.
THANK YOU FOR THE RESPONSE !! (Even though I hoped you'd have better news: a quick and easy fix.) |
Admin |
Posted - June 15 2006 : 09:33:30 AM Hi Steve,
Based on your command line dump... I **think** the bottom line is that you are calling a script from lisp and that lisp is calling a script.
I've experimented with other situations with scripts calling scripts, and contrary to disinformation on the net a script cannot call another script, and then return to the first script to continue. It seems that AutoDesks script parser RESETS it's "stack" as soon as another script is called, so there is no way to nest them.
I hope this answers your question? Sorry for the bad news! but there is nothing I can do about it.
Regards, Bill |
|
|