The Hurricane Forum
The Hurricane Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Hurricane for AutoCAD
 General Discussion
 I need to respond yes between _SDI 1 and _oen

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
Kman Posted - March 01 2011 : 10:51:38 PM
; ***************************************************************
; 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.
2   L A T E S T    R E P L I E S    (Newest First)
Kman Posted - March 02 2011 : 7:43:19 PM
Thanks very much admim it works great now I will go and purchase the full programjavascript:insertsmilie('')
Admin Posted - March 02 2011 : 07:12:28 AM
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.

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