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
 problem with search and log text
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

cla
New Member

7 Posts

Posted - January 29 2009 :  7:09:57 PM  Show Profile  Visit cla's Homepage  Reply with Quote
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.

Admin
Administrator



626 Posts

Posted - January 30 2009 :  07:08:51 AM  Show Profile  Visit Admin's Homepage  Reply with Quote
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,

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

cla
New Member

7 Posts

Posted - January 30 2009 :  08:01:54 AM  Show Profile  Visit cla's Homepage  Reply with Quote


; ***************************************************************
; 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
Go to Top of Page

cla
New Member

7 Posts

Posted - January 30 2009 :  08:14:16 AM  Show Profile  Visit cla's Homepage  Reply with Quote
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)
Go to Top of Page

Admin
Administrator



626 Posts

Posted - January 30 2009 :  08:42:32 AM  Show Profile  Visit Admin's Homepage  Reply with Quote
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


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

cla
New Member

7 Posts

Posted - January 30 2009 :  09:12:10 AM  Show Profile  Visit cla's Homepage  Reply with Quote
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.
Go to Top of Page

cla
New Member

7 Posts

Posted - January 30 2009 :  09:29:57 AM  Show Profile  Visit cla's Homepage  Reply with Quote
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"
Go to Top of Page

Admin
Administrator



626 Posts

Posted - January 30 2009 :  09:43:52 AM  Show Profile  Visit Admin's Homepage  Reply with Quote
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?

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

cla
New Member

7 Posts

Posted - February 02 2009 :  6:03:28 PM  Show Profile  Visit cla's Homepage  Reply with Quote
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.
Go to Top of Page

cla
New Member

7 Posts

Posted - February 02 2009 :  6:20:38 PM  Show Profile  Visit cla's Homepage  Reply with Quote
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.
Go to Top of Page

Admin
Administrator



626 Posts

Posted - February 02 2009 :  6:52:19 PM  Show Profile  Visit Admin's Homepage  Reply with Quote
Thanks cla for reporting the solution back here.

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

Thanks!

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
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Hurricane Forum © 2009 - 2018 Go To Top Of Page
This page was generated in 0.08 seconds. Snitz Forums 2000