The Hurricane Forum
The Hurricane Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Hurricane for AutoCAD
 General Discussion
 problems with qsave consistency & abort

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 - January 05 2005 : 12:30:25 PM
i am currently using Hurricane in demo mode and just completed my first script, which batch-plots files following our standard format... my first major problem is this: when i select my files to plot, the script generated by hurricane often leaves the QSAVE command out on one of the last files--especially when i am plotting 4 or 5 files, the limit for demo mode. the resulting confusion halts the script. since i don't need to and would rather not save (using aclt 2005) i wouldn't mind fixing this annoyance by simply selecting the ABORT checkbox (my understanding is that it replaced NO SAVE) but ABORT's box is grayed out and can't be selected. since it doesn't seem that anyone has posted on here in about a year, i might be out of luck, but... you know, these are problems i'd like to work through before buying the full version.
11   L A T E S T    R E P L I E S    (Newest First)
Admin Posted - August 02 2005 : 11:48:43 AM
Hi RobbieMeister,

Attempting to QSAVE back to a CDROM is always going to give you an error for obvious reasons. A quick fix is to copy the files locally, and allow the QSAVE to happen, then just delete the files.

As for using LT normally, unfortunately, when in LT mode the "Test Run" check box is greyed out due to the lack of LISP in LT and there is no real way to remove the QSAVE command (without manually going into the Hurricane.scr file and performing a search and replace for it), also make sure that your plot script doesn't actually change the file.

Another way around this is to use the "SAVEAS" option, and just have Hurricane save the files off to a "temp" directory somewhere, where they can be deleted at a later date.

When the "Trial Run" box was not greyed out, it caused too much confusion for users. I will look at the logistics of enabling that for yourself. But for now, you will have to do one of the above for the time being.

Hope this helps!
Bill
alfienoakes Posted - August 02 2005 : 10:47:49 AM
Hi, I'm having a related but slightly different problem.

I have a full version at my own office which I use to update drawings.

At my clients office I use the demo version as login ID's are different at the two locations.

I only use the demo version for plotting. This automatically adds a qsave at the end of each drawing. This is a pain as it changes the file date which I would rather not have, but I put up with it.

Today I am trying to plot some drawings from a CD-RW and the qsave will not work as I get a message saying the file is locked.

The obvious answer was to put a "quit y" in the last line of my script and delete all references to qsave from the pre/post batch setting tab.

But Hurricane still puts in a qsave after the quit and stops the script. Is there any way I can stop this?

Thanks

Forgot to say I'm using LT2000
Admin Posted - January 06 2005 : 10:15:19 AM
Hi Fastcsm,

The update file doesn't contain all the "support" files (which get extracted in real-time), so it is considerably smaller.

If you install Hurricane on a "virgin" machine, you will need the "fat" exe to be run at least once (to perform the extraction), before the smaller exe will function.

Glad it seems to work for you!

Scripting is a very sensitive to any extra carriage returns or spaces, so it could have been something along those lines...

Let me know if you have any more issues.

Regards,
Bill
n/a Posted - January 06 2005 : 09:57:49 AM
guhhh... i don't get it. since i opened that updated .exe you sent me it seems to be working. or maybe i unwittingly did something to fix it. the point is, i can't get this problem to happen any more and it used to come up on every combo of prints i tried. why is the file you posted half the size of the hurricane.exe that was installed with the program? can i delete the first? unless i get this problem again, thanks for all your help. i'll recommend that my boss purchase this program for sure.
Admin Posted - January 06 2005 : 09:19:34 AM
Hi fastcsm,

It's pretty obvious by your Command line Dump, that the file is locked. I'd try rebooting, or take your file, and with AutoCAD manually SAVEAS to a different filename, then substitute the file with the original and also try below...

Can you just check a couple of things...

Go to the Tools->Options and PREFS tab, and make sure that "Warn (with options) when a file in the Queue is Read-Only, or does not exist". Make sure this is CHECKED (on).

Remove the QSAVE from your PostUserScript (Settings tab), as this will snag you on a locked file every time.

Then just press the "Create Batch Script" button, to just generate the script but NOT RUN IT WITH AUTOCAD.

If your file is locked, you should see a window appear telling you what is the case, with an option to continue or cancel.

You can now press "Script->View Previous Script" in the tools window to examine your hurricane.scr output. If you can please e-mail it to me (support at 74mph.com) so I can take a look at it (make sure you ZIP the file) (Unless you want to attach the ZIP to this message thread)

The script is something that Hurricane generates, and AutoCAD just BLINDLY attempts to run. There are measures in Hurricane that help make the script as "errorless" as possible, but somethings (like forcing a QSAVE) will never work in some instances, as AutoCAD won't allow it.

Don't worry about it... we will get this worked out!

Thanks,
Bill
n/a Posted - January 06 2005 : 08:31:30 AM
Wow. I've never seen support like this. Thanks so much. I've added the extra save to make sure all my bases are covered and am getting a new problem that i can't even begin to understand. I feel bad knowing how much work I'm putting you through for this. As you can see, with the following part it is trying to save twice because the program put the save in twice:
Proceed with plot [Yes/No] <Y>: _N

Command: _QSAVE
Drawing saved in AutoCAD LT 2004/AutoCAD 2004 format.

Command: _qsave
Unable to save to drawing P:DRAW5000050016.DWG.
Drawing saved to P:DRAW50000sav91.tmp
Command: _CLOSE

Command: Really want to discard all changes to drawing? <N> _OPEN
Yes or No, please.[/CODE]
at this point the script quits.
if i say no in a rush to close the print, it appears that i lose it... how can i avoid this? it would be no problem for me to save twice in a row in any other circumstance...

i'm familiar with the problem of trying to open/save locked files, but since there are only two computers using autocad at the most in this office and i've been testing this with old prints, i'd say its more likely that your ASIDE note is right. i haven't rebooted since finishing work yesterday, but it seems some problem prints are now okay while others are not (i could be wrong here). I wouldn't mind the print not saving and i wouldn't mind it saving, even twice, i just need autocad to behave consistently enough that the script works for either kind of print.
Admin Posted - January 05 2005 : 5:55:34 PM
Hi Fastcsm,

Yes, you could add your own QSAVE, and you would accomplish the same thing. It would be good to try right now and see if it hangs up on that file you mentioned. Maybe it is "LOCKED" by another AutoCAD session (it's attributes won't show it, so don't bother checking there).

ASIDE - We have had in the past some files that appear "Locked" but nobody is using them, I've found that the PC that keeps showing them as LOCKED had to be rebooted... must be a Windows thing.

About the error message...
Ah! If the error is in Hurricane, then yes, it thinks that you are trying to use LISP with LT, and is warning you. I missed that one!!!

Here is a quick update... (just go into Tools->Options->Prefs Tab, and uncheck the box (at the end of list "Warn When attempting to use Lisp with LT" (it is checked by default)

Download Attachment: hurricane6.3.18.zip
167.78 KB

Let me know if you have any other problems...

Regards,
Bill
n/a Posted - January 05 2005 : 4:23:33 PM
thanks for your timely response. This program will clearly save us hundreds of hours, even if we only write one script to avoid going through pulling old prints, copying and re-filing them every day. regarding my problem, i guess i should elaborate a bit on the root of things.

when i look at my hurricane.scr file that is created using the plotting script i wrote, there should be a -qsave line before every -open, but with certain files (or at least it seems to be specific to files) the qsave line is omitted. now, according to windows explorer's properties box, none of the prints i've checked have any different rights whether they will save or not. unless you are referring to some write protection option in autocad, there seems to be no difference in user privileges.

could i just add the save command to my own postuserscript and deal with it saving some prints twice?

also, i get an error message about lisp commands when i send hurricane off to make my script. it seems to be a result of the parentheses in my paper selection Letter (8.5" x 11") entry. is there any way around this? even with all syntax error messages disabled i run into this problem.
Admin Posted - January 05 2005 : 3:14:03 PM
Hi!

The reason your ABORT box is kind of complicated... The short answer is because you have AutoCAD LT option selected. (But that's just the result of a decision I had to make a while ago)

A while ago I made a change to put, as the OPEN command, a little bit of lisp that discards changes to the last drawing, if it was modified outside of the script (you'll notice the
(if (/= (getvar "DBMOD") 0)(command "_.OPEN" "_Y")(command "_.OPEN"))
as the opener for your files if using full AutoCAD.

BUT, LT won't support lisp, so I had to nuke the lisp, (and use the REGULAR _OPEN command)

The problem is this... when using LT, there is no way for Hurricane to know whether your script made changes to the drawing or not. So I made the decision that each drawing should be SAVED regardless of what the user script did, that way the script would never stall and the users would not get that annoying message.

This meant killing the Abort function, as just about everything you do in a script causes the DBMOD to update (especially since R2000). And there were many people complaining that the "Drawing has changes, Save changes?"? message that kept appearing.

If you can think of a good way around this, I'd entertain it... I could just send you your own version that has the Abort box enabled, and QSAVE just won't appear.

I'd rather fix the root of the problem however... you mention that you have a hanging QSAVE at the end of the script? I've just checked, and the last QSAVE is there, so maybe this needs to be explored a bit. I'm pretty thorough, so if things slip through, I like to fix them ASAP.

Are you sure the file in question is not WRITE PROTECTED, as Hurricane is smart enough to open a read-only file, and NOT ATTEMPT TO SAVE IT. Let me know!?

Either way, I will help you, or fix Hurricane. I've been known to make a little change here and there for you to test and report back on before I provide it to the masses.

I hope this helps!

Regards,
Bill
n/a Posted - January 05 2005 : 2:17:54 PM
I wasn't even sure i'd be able to use a demo version when i downloaded it. there is little mention of it on the site and i am still unsure what exactly my limitations are beyond the 5-file limit.

why is my abort box greyed out?

why do i get these inconsistencies regarding whether or not qsave is applied to each print?
Miksteele Posted - January 05 2005 : 12:49:21 PM
Bill is the expert here, but I believe...for logical reasons, the "NO SAVE" was replaced by "ABORT". At one time the "ABORT" actually was a "DELAY / NO SAVE". Now the "DELAY" is separate from the "ABORT". Were you using Hurricane when the NO SAVE button was there

I'm surprised by your "no posts in a year" comment... I must have misunderstood.

The FULL VERSION is an extremely GREAT value. The DEMO version is VERY VERY limited. Yes, you can do everything, but you are selling yourself short. I'm sure your question will be worked out here...

Good Luck!

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