See the top rated post in this thread. Click here

Results 1 to 7 of 7

Thread: Command to clean up bad drawings

  1. #1
    Member
    Join Date
    2006-03
    Posts
    33
    Login to Give a bone
    0

    Default Command to clean up bad drawings

    I was on here the other day and learned a new command that will erase lines drawn on top of other lines among other stuff.

    My problem is that I thought I could remember the command, and I don't.

    I hate consultant drawings.

    Thanks

  2. #2
    AUGI Addict .chad's Avatar
    Join Date
    2006-04
    Location
    is it lunch time yet?
    Posts
    1,129
    Login to Give a bone
    0

    Default Re: Command to clean up bad drawings

    overkill

    you probably want to audit and purge the drawing after that.

  3. #3
    Certifiable AUGI Addict robert.1.hall72202's Avatar
    Join Date
    2004-07
    Location
    Detroit Michigan
    Posts
    2,508
    Login to Give a bone
    0

    Default Re: Command to clean up bad drawings

    Overkill is a great routine if it gets used.
    There is no indication whatsoever on the screen that will show
    me that I have lines on top of lines.

    I need to have the routine executed on the entire drawing whenever
    I save a file.

    How could I achieve it?

  4. #4
    AUGI Addict Railrose's Avatar
    Join Date
    2000-12
    Location
    Abilene, TX
    Posts
    1,181
    Login to Give a bone
    0

    Default Re: Command to clean up bad drawings

    Quote Originally Posted by Robert.Hall
    Overkill is a great routine if it gets used.
    There is no indication whatsoever on the screen that will show
    me that I have lines on top of lines.

    I need to have the routine executed on the entire drawing whenever
    I save a file.

    How could I achieve it?
    I'm not a lisp writer, but you might be able to get a routine that will run overkill, then purge, or any other clean-up commands that you would like to make "standard" for contractor or vendor drawings. That would give you a single "command" to run on each drawing.
    Give people a job worth doing, the tools to do it, recognition of a job well done & get out of the way.

  5. #5
    AUGI Addict .T.'s Avatar
    Join Date
    2000-12
    Location
    Lost
    Posts
    1,473
    Login to Give a bone
    0

    Default Re: Command to clean up bad drawings

    It could be as simple as adding:
    Code:
    (command "undefine" "save"); undefines the save command
    (defun c:save (); redefines the save command to execute overkill, purge, and save.
      (command "-overkill" [selection; probably "a" to select all] [options]); watch the syntax
      (command "-purge" "a")
      (command "_.save")
    )
    to your startup files. I haven't tested this, and it is only an example. I would thoroughly test before using...

    Someone else may have a better idea, also.

  6. #6
    I could stop if I wanted to andy.manninen's Avatar
    Join Date
    2015-10
    Location
    @ _ork
    Posts
    304
    Login to Give a bone
    1

    Default Re: Command to clean up bad drawings

    Don't forget about the -PURGE and Regapps! Regapps can increase a file size by many megabytes with a mostly empty drawing! You have to watch this especially with drawings received from an outside source. Regapps are virulent also, so if you XREF an infected file into another, all the Regapps will be dragged into the new drawing.

    So, anyway, if the file size seems bid for the amount of info in the drawing do the -PURGE and choose R for Regapps and then choose * for all and verify NO. If verify is YES then you may be hitting yes to purge thousands of files... ouch.
    If you have any questions feel free to ask!

    :Cheers:

  7. #7
    Member
    Join Date
    2006-03
    Posts
    33
    Login to Give a bone
    0

    Default Re: Command to clean up bad drawings

    Thanks everyone. Overkill is what I was looking for. I already have a routine that scrubs a drawing. I call it super crunch. It audits, deletes filters, purges 3 times, sets the save % to 0 and saves. This thing will get everything out of a drawing. The filter lisp is a holdover from 2002. I will try to get overkill to be part of this.

    Thanks for the regapp info. There are a few drawings that I now think I know what is wrong with them.

Similar Threads

  1. Clean your drawings before you start or bofore you close
    By kmwpgca in forum CAD Management - General
    Replies: 4
    Last Post: 2012-04-24, 06:57 PM
  2. Previous Command Available Across Drawings
    By autocad.wishlist1734 in forum AutoCAD Wish List
    Replies: 0
    Last Post: 2007-05-02, 01:44 PM
  3. Replies: 11
    Last Post: 2006-11-10, 09:33 AM
  4. Publish command not Plotting all drawings
    By mwalker.87963 in forum AutoCAD Plotting
    Replies: 1
    Last Post: 2006-03-15, 06:43 PM
  5. Open Command, 2 drawings at once?
    By JasonSelf in forum AutoLISP
    Replies: 8
    Last Post: 2004-09-15, 05:31 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •