LISP to open wblock all files in a folder, and save as with same name

LISP to open wblock all files in a folder, and save as with same name

Anonymous
Not applicable
1,568 Views
5 Replies
Message 1 of 6

LISP to open wblock all files in a folder, and save as with same name

Anonymous
Not applicable

Hi all

 

I'm new to the LISP.

I have multiple files in a folder, and needs to wblock to reduce the file size, then save/save as in the same name in the same folder or different folder.

Hope to get some help from here.

 

Thanks in advance,

Jeff

0 Likes
Accepted solutions (1)
1,569 Views
5 Replies
Replies (5)
Message 2 of 6

maratovich
Advisor
Advisor

Maybe this will help you: AutoImportCAD 

Open ... import ... save as.

---------------------------------------------------------------------
Software development
Automatic creation layouts and viewport. Batch printing drawings from model.
www.kdmsoft.net
0 Likes
Message 3 of 6

Anonymous
Not applicable

not exact, I need to WBLOCK the files, then SAVE AS

thanks for you respond.

0 Likes
Message 4 of 6

davinatkins
Advocate
Advocate
Accepted solution

Hey Jeff,

 

I'm not 100% sure what you are asking. Here are a few answers, depending on what you're trying to accomplish...

 

Several files in folder are too large, need to be purged: the eTransmit tool will allow you to batch process a bunch of drawings. In the options dialog, you should make sure "purge" is selected. eTransmit will then open up each file, purge it, save it, and go to the next dwg on the list. This will reduce the file size for all the files in that folder, and you can choose what folder to place the new dwgs.

 

A couple of drawings have a bunch of blocks in them that you want to run wblock on to split out into different files - part 1: you really don't have to do this. Having a bunch of blocks in one file can make them much easier to manage than each block being its own file. (We totally used to do that, but new tools makes this less desirable). If you use Design center, browse to the file in question, and right click on it, and choose add to tool pallet - you'll automatically get a new tool pallet with all that dwgs blocks available. When you insert a block from the tool pallet, it only loads "that block" so your project DWG stays small. The new block pallet also does this well.

 

A couple of drawings have a bunch of blocks in them that you want to run wblock on to split out into different files - part 2: Take a look here... https://forums.autodesk.com/t5/autocad-forum/wblock-lisp/td-p/5883629 if you run into problems, or aren't sure how to proceed, post back.

0 Likes
Message 5 of 6

maratovich
Advisor
Advisor

WBLOCK = IMPORT

---------------------------------------------------------------------
Software development
Automatic creation layouts and viewport. Batch printing drawings from model.
www.kdmsoft.net
0 Likes
Message 6 of 6

Anonymous
Not applicable

Thanks! The eTransmit works like a charm.

 

0 Likes