Lisp for deleting layer filters

Discussion in 'AutoCAD' started by Alan Mulhearn, Nov 23, 2004.

  1. Where can I find a lisp routine for deleting layer filters? I believe its a
    free tool available somewhere.
     
    Alan Mulhearn, Nov 23, 2004
    #1
  2. found this somewhere (in this news group i think???)

    (defun C:LFD ()
    (vl-Load-Com)
    (vl-Catch-All-Apply
    '(lambda ()
    (vla-Remove
    (vla-GetExtensionDictionary
    (vla-Get-Layers
    (vla-Get-ActiveDocument
    (vlax-Get-Acad-Object)
    )
    )
    )
    "ACAD_LAYERFILTERS"
    )
    )
    )
    (princ "\nAll layer filters have been deleted.")

    (princ)
    )

    (princ)


    cheers

    mark
     
    Mark Dubbelaar, Nov 23, 2004
    #2
  3. Alan Mulhearn

    Adesu Guest

    Hi Alan, in NG more thread about delet layer filter,see at "re:deleting
    layer filter" "by R.Robert Bell" "9/25/02
     
    Adesu, Nov 23, 2004
    #3
  4. Thanks Mark the lisp routine works fine - took me nearly an hour on one
    drawing to the same job manually.
     
    Alan Mulhearn, Nov 23, 2004
    #4
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.