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
 I need to respond yes between _SDI 1 and _oen
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Kman
Starting Member

Australia
4 Posts

Posted - March 01 2011 :  10:51:38 PM  Show Profile  Reply with Quote
; ***************************************************************
; HURRICANE 6.8.17 - SCRIPT CREATED 2/03/2011 : 1:30:55 PM
; ***************************************************************
; << START OF PRE-BATCH COMMANDS >>
_SDI 1
; << END OF PRE-BATCH COMMANDS >>
I NEED TO RESPOND "Y" AT THIS POINT
_OPEN
"C:\PB Standard Drawings\Concrete\MISCELLANEOUS CONCRETE DETAILS.dwg"
tilemode
0
-layer
When i ran and create a script the script hangs prior to the open command. It asks me "do you want to disregard changes" so i have to put "y" into the script between ; << END OF PRE-BATCH COMMANDS >> and _open. Is there anyway to do this as you create the script.

Admin
Administrator



651 Posts

Posted - March 02 2011 :  07:12:28 AM  Show Profile  Visit Admin's Homepage  Reply with Quote
Hi,

Looks like your AutoCAD instance is making changes to the drawing BEFORE the script is run. This will cause AutoCAD to ask that question "Discard changes?".

To get around this, in Hurricane, go to the Tools->Options->PREFS tab, and in "To Open Drawings", select the TOP choice (OPEN with DBMod). This will insert some inline lisp like this automatically when you press the "CREATE Batch Script" button.

(if (/= (getvar "DBMOD") 0)(command "_.OPEN" "_Y")(command "_.OPEN"))

Rather than the standard "OPEN" command. What this achieves is that if when the script is running, and AutoCAD's drawing database reports it is "modified" (which will trigger the "Discard changes?" prompt), AutoCAD (internally) will read that line as "_.OPEN Y", rather than "_.OPEN"

You should be aware that IF you normally run your Hurricane Batch Scripts from a menu button, you MUST ensure that whatever drawing you are currently working on is SAVED BEFORE you run the script, or your current drawing changes will be lost.

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

Kman
Starting Member

Australia
4 Posts

Posted - March 02 2011 :  7:43:19 PM  Show Profile  Reply with Quote
Thanks very much admim it works great now I will go and purchase the full programjavascript:insertsmilie('')
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Hurricane Forum © 2009 - 2021 Go To Top Of Page
This page was generated in 0.3 seconds. Snitz Forums 2000