The Hurricane Forum
The Hurricane Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 AutoCAD
 Lisp & Other Handy Files
 W-Block Multiple

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
jjbritt Posted - August 08 2007 : 2:49:17 PM
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
5   L A T E S T    R E P L I E S    (Newest First)
n/a Posted - August 08 2007 : 6:44:10 PM
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
jjbritt Posted - August 08 2007 : 6:31:45 PM
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
Admin Posted - August 08 2007 : 4:50:54 PM
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
jjbritt Posted - August 08 2007 : 4:34:23 PM
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
Admin Posted - August 08 2007 : 4:27:37 PM
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

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