The Hurricane Forum
The Hurricane Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Hurricane for AutoCAD
 General Discussion
 Script Which Refuses to Proceed.
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

n/a
deleted

112 Posts

Posted - June 14 2006 :  4:04:53 PM  Show Profile  Reply with Quote
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?

Steve Bubendorf

Admin
Administrator



652 Posts

Posted - June 15 2006 :  09:33:30 AM  Show Profile  Visit Admin's Homepage  Reply with Quote
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

Hurricane for AutoCAD
http://www.74mph.com
FAQ at
http://www.74mph.com/faq/faq.html
Tutorials at
http://www.74mph.com/tutorials.html
Go to Top of Page

n/a
deleted

112 Posts

Posted - June 15 2006 :  09:45:16 AM  Show Profile  Reply with Quote
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.)

Steve Bubendorf
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Hurricane Forum © 2009 - 2021 Go To Top Of Page
This page was generated in 0.39 seconds. Snitz Forums 2000