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 |
|
|