Purge using ObjectDBX?

Discussion in 'AutoCAD' started by James Maeding, Apr 16, 2004.

  1. I have not found a way to do this yet with the acad object model, any ideas?
    James Maeding
    Civil Engineer/Programmer
     
    James Maeding, Apr 16, 2004
    #1
  2. You have to cycle thru the AxDbDocument and perform
    your own cleanup magic :)
     
    michael puckett, Apr 16, 2004
    #2
  3. hmm, wonder if that will be fast enough....

    "michael puckett" <>
    |>You have to cycle thru the AxDbDocument and perform
    |>your own cleanup magic :)
    |>
    |>> I have not found a way to do this yet with the acad object model, any ideas?
    |>> James Maeding
    |>> Civil Engineer/Programmer
    |>

    James Maeding
    Civil Engineer/Programmer
     
    James Maeding, Apr 16, 2004
    #3
  4. Fast enough for me on 10 - 100 MB dwgs.
     
    michael puckett, Apr 16, 2004
    #4
  5. James Maeding

    Mark Propst Guest

    I would think you could just delete from the pertinent collections and trap
    the errors(for those objects that are referenced and there fore cant' be
    deleted(purged)
    eg:
    on error resume next
    For objlay in objLayerscol
    objlay.delete
    next
    etc???
    just an idea
    maybe not even a good one?
    :)
    Mark
     
    Mark Propst, Apr 16, 2004
    #5
  6. That is a good one. Much simpler than me doing the thinking.
    Toolpac has an awesome tool for doing purges without opening drawings by the way.
    I need to do other things besides purge though, so I am trying to do my own dbx batcher...
    thanks

    "Mark Propst" <notmark-at-atreng-dot-com>
    |>I would think you could just delete from the pertinent collections and trap
    |>the errors(for those objects that are referenced and there fore cant' be
    |>deleted(purged)
    |>eg:
    |>on error resume next
    |>For objlay in objLayerscol
    |>objlay.delete
    |>next
    |>etc???
    |>just an idea
    |>maybe not even a good one?
    |>:)
    |>Mark
    |>
    |>|>> I have not found a way to do this yet with the acad object model, any
    |>ideas?
    |>> James Maeding
    |>> Civil Engineer/Programmer
    |>

    James Maeding
    Civil Engineer/Programmer
     
    James Maeding, Apr 16, 2004
    #6
  7. James Maeding

    John Uhden Guest

    Hi, James. Yes you could do a home-grown purge on an ObjectDBX opened file the
    way Mark suggested.
    Do a Google search for "Purge block group code 70" (c. 1/2002) and you'll find
    all kindsa neat advice from Tony and Stephan regarding references. Just do a
    lot of testing before you unleash it. I used their advice to create my PURGEALL
    routine which includes APPIDS and Groups. Never thought of applying it to
    external files, but it would be easy to alter. Watch out for the blocks
    collection as Layouts are members but are not referenced (hint=IsLayout).
     
    John Uhden, Apr 17, 2004
    #7
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.