Steven P Posted April 11, 2018 Share Posted April 11, 2018 Good afternoon, Last week I had 1000+ drawings to process (a simple purge on them all). What took the time was saving each drawing - is there a fast method in a script (or a LISP )to save a drawing (1000 drawings at 3 seconds a save per drawing = about 50 minutes just for saving) The second longest thing was opening a drawing but I don't think I can do much with that. I would prefer to uses something that wasn't modifying system variables, though I can cope with them if it makes a difference Thanks Quote Link to comment Share on other sites More sharing options...
tombu Posted April 11, 2018 Share Posted April 11, 2018 SAVEALL (Express Tool) http://help.autodesk.com/view/ACD/2019/ENU/?guid=GUID-C3E8083E-6C0D-4975-B05F-BCA5E9AE1FA7 Quote Link to comment Share on other sites More sharing options...
pendean Posted April 11, 2018 Share Posted April 11, 2018 Question: what are you doing this for exactly? Also let everyone here know which version of AutoCAD (or LT) are you using. Quote Link to comment Share on other sites More sharing options...
steven-g Posted April 11, 2018 Share Posted April 11, 2018 Posting the script would help someone spot if there is a reason why things are slow, maybe change the order around or use an alternative command. Quote Link to comment Share on other sites More sharing options...
Steven P Posted April 12, 2018 Author Share Posted April 12, 2018 Thanks for your help so far. I haven't tried any of them yet though - that's a job for next week However... Saveall - yup, but no, I wasn't wanting a saveall in case I had other drawings opened that didn't need saving I'm using AutoCAD 2018, Pretty much the script is: Open a file using the '_.OPEN ' command - run a couple of LISPS, for example 'purgea' - my purge all lisp save using '_.QSAVE' Close the file using 'close' command Open the next file in the list I tend to do them this way because opening, saving and closing produces a .bak file just in case. It seems to do the LIPS bits quickly in the script and outside of the script, just the save was pretty slow in comparison... so any hints where to look? Quote Link to comment Share on other sites More sharing options...
pendean Posted April 12, 2018 Share Posted April 12, 2018 Where you are saving to and what format dwg file you are aiming for some of the many are reasons for slow saves if you've ruled out all of the other reasons like your purge routines etc. Care to tell us more, in a lot more detail? There is no magic bullet solution,this one may be local to you alone. Quote Link to comment Share on other sites More sharing options...
iconeo Posted May 21, 2018 Share Posted May 21, 2018 I used to use a utility called batchindatabase which was perfect for this. It was free but is now $40. Still though, you'd make it up in one session. If all the drawings you need to modify are in the same directory you could use the acaddoc.lsp trick. Sent from my Pixel 2 XL using Tapatalk Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.