myself Posted October 8, 2008 Posted October 8, 2008 hello there, first of all sorry if there is already something doing what i want and havent found. But what i want is a lisp that runs the "purge" command and then says all until its everything purged and then followed by the "audit" to fix any errors.Im looking for this because i like to clean the drawings whenever they are finished and its a bit annoying to do this all the time, and yes, i know that i could do that but now im running out of time and it would be nice if someone had thought about that before, which is very likely thank you very much guys Quote
ReMark Posted October 8, 2008 Posted October 8, 2008 A super purge sounds fine but adding an audit function to the command sounds like overkill to me. What about those pesky items (like layers) the normal purge command just won't take care of? You know that's why AutoCAD has the Layer Delete command. How would you weave that into your Lisp routine? Quote
myself Posted October 8, 2008 Author Posted October 8, 2008 Sorry to ask, but why do you think that have "purge" and "audit" in the same lisp isnt right? i believe that purge doesnt fix all the possible problems,am i right? And about the pesky items you mentioned i dont know, but ok, a lisp as i wanted plus that would be nice Quote
ReMark Posted October 8, 2008 Posted October 8, 2008 I didn't say it "isn't right". I said I thought it was overkill. Are the drawings you intend on using your superpurge routine on corrupted? If so, then Audit makes sense. Maybe you even need to include the Recover command as well. If not, then why waste your time? The AutoCAD Help file has this to say about... AUDIT "If a drawing file is damaged, you can recover some or all of the data by using commands to find and correct errors." So, are your drawings damaged? Quote
ReMark Posted October 8, 2008 Posted October 8, 2008 If you suspect your drawings are somehow being damaged you can reset the system variable AUDITCTL from its default of to . From AutoCAD Help file.... "If you set the AUDITCTL system variable to 1, AUDIT creates an ASCII file describing problems and the action taken and places this report in the same directory as the current drawing, with the file extension .adt." I added the bold to some of the text for emphasis. Quote
ReMark Posted October 8, 2008 Posted October 8, 2008 Here you go. I don't want you to think I'm just trying to be a PITA. It's a purge lisp routine available at JTB World's AutoCAD website. http://www.jtbworld.com/lisp/purger.htm Quote
ReMark Posted October 8, 2008 Posted October 8, 2008 Here's a second batch purge routine. It was originally written for Release 14 but could be adapted to 2009 I should think. http://www.afralisp.net/vbaa/vba2.htm Quote
ReMark Posted October 8, 2008 Posted October 8, 2008 Last one. Click on the link below to be taken to the CADalyst Magazine forum where someone asked the exact same question as you re: Purge and Audit. Read through the entire exchange of comments and pay particular attention to references re: BigPurge, CleanSave and Scriptpro. For this one you'll have to do the bulk of the further searching if you are truely interested in pursuing this. I think I've done enough for one morning. When you get it all sorted out come back and tell us what you decided to do. If you also tweaked or rewritten portions of code you've managed to find tell us what improvements and/or changes you made to the code. We help you...you help us. Got it? Good luck. Here's the link: http://forums.cadalyst.com/showthread.php?t=5526 Quote
myself Posted October 8, 2008 Author Posted October 8, 2008 well, let me explain why i want such routine, the problem is that our cad manager has developed a kind of software to create PDF,DWF,PLOT files and dwg which are copied to our achieved with all the xref binded, this is great but sometimes there's many problems due to some drawings which have errors, so believe it that after run a purge and a audit on those drawings everything works just fine. There’s no problem with that if the project has only 10 or 20 drawings, but when that number rise to more than 100 its a big trouble. therefore a routine like that would be nice so that i could run it whenever i finish a drawing and in the end be secure that my drawings were all ok Quote
myself Posted October 8, 2008 Author Posted October 8, 2008 thank you very much for the link.... i hadnt seen it Quote
myself Posted October 8, 2008 Author Posted October 8, 2008 well, i found really nice those two lisps, "bigpurge" and "cleansave", perfect would be just one lisp routine with them together, i've tried scriptpro but it doesnt run and i think its because im using autocad 2009. I know that im already asking to much, but once my knowledge managing lisp files is pretty bad, is it there anyone willing to put those two lisps together i would appreciate that very much. Quote
ReMark Posted October 8, 2008 Posted October 8, 2008 Scriptpro for AutoCAD 2007 and later. Download it here: http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=4091678&linkID=9240618 Quote
myself Posted October 8, 2008 Author Posted October 8, 2008 Thats the one i tried, and it says that "installation requires that Autocad related product already be installed". Right now i have autocad 2008 and 2009 versions installed on my computer, so any idea why this is happening? Quote
ReMark Posted October 8, 2008 Posted October 8, 2008 Short answer: none. See if you can get some idea of what's happening by going over to the (shudder) AutoDesk website. Quote
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.