The Hurricane Forum
The Hurricane Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Hurricane for AutoCAD
 General Discussion
 Script Which Refuses to Proceed.

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

   Attach a File

Check here to subscribe to this topic.
   

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

The Hurricane Forum © 2009 - 2021 Go To Top Of Page
This page was generated in 0.16 seconds. Snitz Forums 2000