The Hurricane Forum
The Hurricane Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Hurricane for AutoCAD
 General Discussion
 problem with search and log text

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
cla Posted - January 29 2009 : 7:09:57 PM
Okay, I am really frustrated with this one, because it worked earlier today. Same script, same drawings, first time was just a test run.

Here's the script:

(LOAD "C:/PROGRAM FILES/HURRICANE/LISP/LOG_TEXT.LSP")
;-------------
LOG_TEXT
*BUILT*
ALL

$HUR_PATH$DATA/$USER$-BANZALABTextLog.lst
;-------------

And here's the command lines from AutoCAD

Command: (if (/= (getvar "DBMOD") 0)(command "_.OPEN" "_Y")(command "_.OPEN"))
_.OPEN Enter BACKSPACE to interrupt script.

Command: nil

Command: "h:\CABGOC\Banzala-B\Piping\ICP\BAN-WPB-50-105.dwg"
Unknown command ""H:\CABGOC\BANZALA-B\PIPING\ICP\BAN-WPB-50-105.DWG"". Press
F1 for help.


What could be going on now that was fine just a couple of hours ago?

Thanks for any help.
10   L A T E S T    R E P L I E S    (Newest First)
Admin Posted - February 02 2009 : 6:52:19 PM
Thanks cla for reporting the solution back here.

Hopefully if it happens again, others will be able to find this.

Thanks!
cla Posted - February 02 2009 : 6:20:38 PM
Found the problem. SDI. If it's set to 0, the script won't run unless I switch the open preferences to "Other". If it's set to 1, the script runs like it's supposed to. Just odd that I never had that problem before.
cla Posted - February 02 2009 : 6:03:28 PM
Running through the create and run button in Hurricane. I tried to run the same script today on some other drawings and encountered the same problem.
Admin Posted - January 30 2009 : 09:43:52 AM
Wow... really strange...

Hurricane compiles the script the SAME every time... so there must be something on your system that is changing...

Are you running it by clicking the "create and run" button in Hurricane, or are you running the script through a button in AutoCAD menu?
cla Posted - January 30 2009 : 09:29:57 AM
curiouser and curiouser..

I did try running the script first thing this morning with no luck. After toggling the open method, it worked. Just for the heck of it, I switched it back to open with dbmod and now it is working, except the autocad command line is missing "Enter backspace to interrupt script.", which was in the command line yesterday...

this is the command line now...

Command: (if (/= (getvar "DBMOD") 0)(command "_.OPEN" "_Y")(command "_.OPEN"))
_.OPEN
Enter name of drawing to open <.>: nil

Enter name of drawing to open <.>:
"h:\CABGOC\Banzala-C\Layouts\BAN-WPC-30-001.dwg"
cla Posted - January 30 2009 : 09:12:10 AM
I did try copy pasting the dbmod line yesterday into and autocad session and it worked fine.

I just can't figure out why it worked fine one minute and didn't work later. At this point I am wondering if it's not our IT dept's very aggressive virus scanning activities that are involved.

Well, at least I can work around this. If I ever come up with an answer to why this is happening, I will post it.
Admin Posted - January 30 2009 : 08:42:32 AM
Hmm... seems that your script looks OK. Using only "OPEN" will bypass using any lisp decision-making during opening of the files.

If you copy/paste this into your AutoCAD command line and hit ENTER, what happens?
(if (/= (getvar "DBMOD") 0)(command "_.OPEN" "_Y")(command "_.OPEN"))

You should get a prompt asking you for a filename. If you don't there must be something wrong with your AutoCAD interpreting Lisp.

If you are running LT, then that would be the problem right there.

Please advise,

Thanks,
Bill

cla Posted - January 30 2009 : 08:14:16 AM
Going to Tools>Options>Prefs and changing it to Other _OPEN worked. Odd, because up till now it has been working with "Use "OPEN..." (with DBMOD)
cla Posted - January 30 2009 : 08:01:54 AM


; ***************************************************************
; HURRICANE 6.8.14 - SCRIPT CREATED 1/29/2009 : 6:01:19 PM
; ***************************************************************
(if (/= (getvar "DBMOD") 0)(command "_.OPEN" "_Y")(command "_.OPEN"))
"h:\CABGOC\Banzala-B\Piping\ICP\BAN-WPB-50-105.dwg"
(LOAD "C:/PROGRAM FILES/HURRICANE/LISP/LOG_TEXT.LSP")
;-------------
LOG_TEXT
*BUILT*
ALL

C:/Program Files/Hurricane/DATA/clarabie-BANZALABTextLog.lst
;-------------
_QSAVE
Admin Posted - January 30 2009 : 07:08:51 AM
Hi cla,

I'd double-check the output script (hurricane.scr), as I think you have an issue with the "Open" command.

You'll notice the "Command: nil", then the next "Command: is the filename... this is obviously wrong, as you should have an OPEN FILE prompt before the script should pass the filename through.

post the compiled hurricane.scr file, and I can tell you exactly.

(Also, you can confirm the OPEN settings on the "Tools->Options->Prefs" tab... you may need to toggle it to the "Use OPEN", or the "OTHER" (WITH "_OPEN" in the box).

Regards,

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