Deleting Layer States

Discussion in 'AutoCAD' started by KCCINC, Dec 16, 2004.

  1. KCCINC

    KCCINC Guest

    Does any one have a lisp routine of deleting multiple (if not all)layer states within a drawing. Going through the dialog box on each drawing is quite cumbersome. I searched past topics on this subject and just had a hard time finding something that worked for me.

    Thanx

    Troy
     
    KCCINC, Dec 16, 2004
    #1
  2. KCCINC

    T.Willey Guest

    T.Willey, Dec 16, 2004
    #2
  3. KCCINC

    Walt Engle Guest

    How about Superpurge? Works wonders.
     
    Walt Engle, Dec 16, 2004
    #3
  4. KCCINC

    KCCINC Guest

    Thanx for the link Tim, but what that lisp routine was referring to was deleting layer filters not layer states, which is what I am trying to do. Can you think of another link that might help???

    Troy
     
    KCCINC, Dec 16, 2004
    #4
  5. ;;; Purge/delete all layer states
    ;;; Example: (DeleteLayerStates)
    (defun DeleteLayerStates ()
    (vl-Catch-All-Apply
    '(lambda ()
    (vla-Remove (vla-GetExtensionDictionary
    (vla-Get-Layers
    (vla-Get-ActiveDocument
    (vlax-Get-Acad-Object))))
    "ACAD_LAYERSTATES")))
    (princ)
    )

    http://www.jtbworld.com/lisp/purger.htm

    --
    Best Regards, Jimmy Bergmark
    CAD and Database Developer Manager at www.pharmadule-emtunga.com
    Blog: http://jtbworld.blogspot.com
    JTB FlexReport (FLEXlm report tool) - www.jtbworld.com/jtbflexreport
    SmartPurger (Purges automatically) - www.jtbworld.com/?/smartpurger.htm
    or download some freeware at www.jtbworld.com
    More on AutoCAD 2005;
    www.jtbworld.com/autocad2005.htm
     
    Jimmy Bergmark, Dec 16, 2004
    #5
  6. KCCINC

    KCCINC Guest

    BEAUTIFUL!!!! Thanx Jim, this is going to make things for efficient.

    Troy
     
    KCCINC, Dec 16, 2004
    #6
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.