Filters - now and then

Discussion in 'AutoCAD' started by deetee, Apr 13, 2006.

  1. deetee

    deetee Guest

    I am in the middle of a large project documenting computer data outlets and
    GPOs. At the end of each drawing, I have to total up the number of each
    type of outlet and GPO. I have set up saved filters to do this, by looking
    for the block names.

    The problem is, the filters seem to come and go without any reason;
    sometimes a drawing will never have the filters, but another drawing in the
    same folder will. Sometimes it will not have the filters but will have the
    next time it is opened....

    Mostly when I complete a drawing I Saveas to a new name, as this brings all
    my settings, blocks, layers, and (hopefully) filters. I am unable to see
    any pattern to why the filters aren't consistently available. Using Autocad
    2005.

    Any ideas?

    Thanks in advance

    Dave
     
    deetee, Apr 13, 2006
    #1
  2. deetee

    deetee Guest

    Yes, of course, should have thought of that.
    Was looking for the cause of the problem rather than a way around it.

    Your method is in fact quicker and have set it up to give me a list I can
    copy & paste into my billing.

    Thanks

    Dave


    Hello,
    As you use the Autocad filters, i don't now where they are saved, and how
    Autocad manage it.
    But you should make it in lisp adapting what follows :

    (defun c:MyEnddrawingFilter ( / sel)

    ;;1st filter
    (setq sel (ssget "x" '((0 . "INSERT")(2 . "myInsertName1"))))
    (Prompt "\nNumber of myInsertName1 :")
    (print (sslength sel))
    ;;2nd filter
    (setq sel (ssget "x" '((0 . "INSERT")(2 . "myInsertName2"))))
    (Prompt "\nNumber of myInsertName2 :")
    (print (sslength sel))
    ;;here you can define 3rd filter to n filter

    )
     
    deetee, Apr 13, 2006
    #2
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.