any lisp to burst multiple files?

any lisp to burst multiple files?

jtm2020hyo
Collaborator Collaborator
2,007 Views
5 Replies
Message 1 of 6

any lisp to burst multiple files?

jtm2020hyo
Collaborator
Collaborator

I need to use "burst" multiple files inside multiple folders and I need a hero to share a lisp to burst multiple files or folders.

attached burst lisp created by lee mac.

0 Likes
Accepted solutions (3)
2,008 Views
5 Replies
Replies (5)
Message 2 of 6

Anonymous
Not applicable
Accepted solution

Lee-mac also has a great lisp for selecting multiple files, see: http://www.lee-mac.com/getfilesdialog.html

For all of my batch file processing needs I use his getfiles routine to select the files then use a foreach loop to go through the returned list and write a script to open each file and run whatever processing is required.

(setq scriptFile (open "C:\\acadscript.scr" "W"));use whatever flie name/path you'd like
(foreach dwgname rtn ;for each drawing on the list of drawings to be processed ;add to the script commands to open the file then perform processing (princ (strcat "_.open \"" dwgname "\" ") scriptFile);opens the correct file ;add princ statements to the script file for drawing processing here (princ "_.qsave _.close " scriptFile);save and close the drawing after being processed ) (close scriptFile);close the editing of the script file (command "_.script" "C:\\acadscript.scr");run the script file

Hope this helps.

Message 3 of 6

jtm2020hyo
Collaborator
Collaborator

please, share any example, I'm newbie.

 

0 Likes
Message 4 of 6

hak_vz
Advisor
Advisor

It takes time to create more than 300 posts on this forum. Don't just ask other members to solve your problems. Make some effort and start learning autolisp. If will help you to better understand autocad, and to be able to create some code when needed. When you ask for help, try to write down some code, there will always be someone ready to guide you or give advice.    

Miljenko Hatlak

EESignature

Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
0 Likes
Message 5 of 6

devitg
Advisor
Advisor
Accepted solution

As far as I know  alisp can not be apply to lot dwg,s 

Script do the trick 

Or ODBX , maybe can do BURST. 

 

 

Message 6 of 6

Sea-Haven
Mentor
Mentor
Accepted solution

You will have to create a script it should be pretty simple.

 

open dwg1

do your burst thing as a normal lisp (Burst all my objects) can be multiple lisps

Close Y

open dwg2

do your burst thing as a lisp (Burst all my objects)

Close Y

open dwg3

do your burst thing as a lisp (Burst all my objects)

Close Y

 

Use lee's scriptwriter to make the script but with the burst lines as well.