The Hurricane Forum
The Hurricane Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 AutoCAD
 Lisp & Other Handy Files
 looking for block

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
mbicm Posted - January 03 2007 : 11:29:51 AM
how can i use hurricane to go through a set of drawings to find certain blocks and stop when it either finds it or dont find it?
1   L A T E S T    R E P L I E S    (Newest First)
Admin Posted - January 08 2007 : 8:13:27 PM
Hi mbicm,

Here is something I cooked up.

Download Attachment: StopOnBlock.zip
22.47 KB

Copy/Extract the StopOnBlock.dvb file into your /LISP/ directory and then cut/paste this script into your Hurricane User Script window. (Don't forget to save it once you are done)

quote:
;START OF SCRIPT
-VBALOAD "$HUR_PATH$/LISP/StopOnBlock.dvb"
-VBARUN STOPONBLOCK
BLOCKNAME <----Edit this line to be your blockname
VBAUNLOAD "$HUR_PATH$/LISP/StopOnBlock.dvb"
;-------------
ZOOM E
;END OF SCRIPT


Select the files you want this to run on, and run the batch with script above.

In the event it finds the block you have specified, it will stop with a DIALOG box. At this point you must hit OK on the dialog box and then hit ESC on your keyboard to stop the script in it's tracks. I've messed about trying to get the VBA to stop the batch script automatically, to no avail. (If someone knows how to do this, please let me know).

If you have any questions, don't hesitate to write!

Regards,
Bill

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