The Hurricane Forum
The Hurricane Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 AutoCAD
 Lisp & Other Handy Files
 looking for block
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

mbicm
New Member

13 Posts

Posted - January 03 2007 :  11:29:51 AM  Show Profile  Visit mbicm's Homepage  Reply with Quote
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?

Admin
Administrator



652 Posts

Posted - January 08 2007 :  8:13:27 PM  Show Profile  Visit Admin's Homepage  Reply with Quote
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

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 - 2021 Go To Top Of Page
This page was generated in 0.31 seconds. Snitz Forums 2000