Author |
Topic  |
|
cla
New Member

7 Posts |
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.
|
|
Admin
Administrator
    

653 Posts |
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, |
Hurricane for AutoCAD http://www.74mph.com FAQ at http://www.74mph.com/faq/faq.html Tutorials at http://www.74mph.com/tutorials.html |
 |
|
cla
New Member

7 Posts |
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 |
 |
|
cla
New Member

7 Posts |
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) |
 |
|
Admin
Administrator
    

653 Posts |
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
|
Hurricane for AutoCAD http://www.74mph.com FAQ at http://www.74mph.com/faq/faq.html Tutorials at http://www.74mph.com/tutorials.html |
 |
|
cla
New Member

7 Posts |
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. |
 |
|
cla
New Member

7 Posts |
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" |
 |
|
Admin
Administrator
    

653 Posts |
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? |
Hurricane for AutoCAD http://www.74mph.com FAQ at http://www.74mph.com/faq/faq.html Tutorials at http://www.74mph.com/tutorials.html |
 |
|
cla
New Member

7 Posts |
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. |
 |
|
cla
New Member

7 Posts |
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. |
 |
|
Admin
Administrator
    

653 Posts |
|
|
Topic  |
|