Jump to content

Recommended Posts

Posted

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

Posted

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?

Posted

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 ;)

Posted

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?

Posted

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.

Posted

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

Posted

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

Posted

thank you very much for the link.... i hadnt seen it ;)

Posted

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 :D i would appreciate that very much.

Posted

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?

Posted

Short answer: none.

 

See if you can get some idea of what's happening by going over to the (shudder) AutoDesk website.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...