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
 W-Block Multiple
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

jjbritt
Starting Member

USA
3 Posts

Posted - August 08 2007 :  2:49:17 PM  Show Profile  Visit jjbritt's Homepage  Reply with Quote
I have this lisp routine that w-blocks all blocks in a specific drawing to a designated folder. Does anybody know how to create a script file to use in Hurricane to do this with multiple drawings. I want to save the blocks in one directory.

Thanks
jjbritt

Download Attachment: wblockm.zip
1.48 KB

Admin
Administrator



652 Posts

Posted - August 08 2007 :  4:27:37 PM  Show Profile  Visit Admin's Homepage  Reply with Quote
Hi jjbritt,

I got your e-mail, and was working on a response... I'll post it here instead.

I've attempted to run that lisp (In AutoCAD 2007), and I'm getting some strange results.

Seems it somehow causes the script to halt, and not continue, after it completes the first drawing.
(However, it works flawlessly in AutoCAD 2005)
(I'm using OPEN instead of OPEN with DBMOD in Hurricane)

Here is the script that runs the first drawing.
(If anyone out there knows what might be causing the AutoCAD to dump it's script parser (must be something in the lisp), please post it here!, this is a GREAT lisp, especially if it would work over multiple drawings)


;START OF SCRIPT
(LOAD "I:/PROGRAM FILES/AUTOCAD 2005/SUPPORT/WBLOCKM.LSP")
WBLOCKM
;NEXT LINE IS THE PATH (THAT MUST EXIST) TO DUMP THE BLOCKS
C:\OUTPUT
;END OF SCRIPT


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

jjbritt
Starting Member

USA
3 Posts

Posted - August 08 2007 :  4:34:23 PM  Show Profile  Visit jjbritt's Homepage  Reply with Quote
Thanks a bunch Bill for taking a look at it. Its very strange that it dumps the script in 2007. I am using 2007 electrical, could it have a conflict with a menu trying to open? any way, I appreciate what you've done. I knew that if it got on the forum that it would be very useful for some of us CAD junkies; seeing how it could be time consuming if you had multiple drawings to deal with.

jjbritt
Go to Top of Page

Admin
Administrator



652 Posts

Posted - August 08 2007 :  4:50:54 PM  Show Profile  Visit Admin's Homepage  Reply with Quote
Hmmmm.. interesting you mention Electrical, I was actually trying it on Mechanical Desktop...

Is there anyone out there that can try it with vanilla AutoCAD 2007?

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

jjbritt
Starting Member

USA
3 Posts

Posted - August 08 2007 :  6:31:45 PM  Show Profile  Visit jjbritt's Homepage  Reply with Quote
By golly I've got it! At least I think. I was able to use the Vanilla profile in Autocad 2007 Electrical(it can either run as electrical or not) and used the Autocad Classic workspace as my default. The above script that you posted Bill works, except in the settings tab, I had to put the (LOAD "C:/PROGRAM FILES/AUTODESK/ACADE 2007/SUPPORT/WBLOCKM.LSP") in my pre-batch command and added an extra enter after file path. Try it and let me know if you can get it to work for you doing it this way. I was able to run 10 drawings without a hitch.

;START OF SCRIPT
WBLOCKM
;NEXT LINE IS THE PATH (THAT MUST EXIST) TO DUMP THE BLOCKS
C:\OUTPUT

;END OF SCRIPT
Go to Top of Page

n/a
deleted

112 Posts

Posted - August 08 2007 :  6:44:10 PM  Show Profile  Reply with Quote
I see the problem may be solved.

I got it to work in Vanilla AutoCAD 2007, but I removed the prompt within the lisp for the output folder location. I hard coded the output to C:\Output. It moved through a couple of drawings for me (that's all I tested with), but dozens of blocks. It worked pretty slick, but I think one would have to be careful of duplicate blocks, or they may get over-written by a later copy from a drawing farther back in the que. I guess I didn't look carefully at the lisp. Maybe there is code in there to prevent that?

I'm outta here.



Download Attachment: wblockm.zip
2.61 KB

Steve Bubendorf
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.33 seconds. Snitz Forums 2000