Accessing filter command

Discussion in 'AutoCAD' started by Patrick Weaver, Jul 12, 2004.

  1. Is it possible to automatically create a selection set based on a given
    property of an object (a la FILTER or Quick Select) via lsip? I want to
    create a one-click solution for our people who don't normally use Autocad. I
    can make a step by step that's pretty easy to follow, but I'd like to reduce
    the potential phone calls.

    Thanks
    Patrick
     
    Patrick Weaver, Jul 12, 2004
    #1
  2. Patrick Weaver

    Allen Jessup Guest

    If you have Express Tools you already have it. Express > Selection Tools >
    Get Selection Set. You could create a button for that. Command line is
    GETSEL.

    If not look into the SSGET function in Lisp.

    Allen
     
    Allen Jessup, Jul 12, 2004
    #2
  3. Thanks Allan.

    We have the Express tools but I have yet to load them (guess I need to fix
    that now that I have a reason). I'll look at SSGET as well; I used it for
    some other functions on this toolbar but wasn't sure if it would work here.
     
    Patrick Weaver, Jul 12, 2004
    #3
  4. Patrick Weaver

    Allen Jessup Guest

    Hi Patrick,

    Yes. You can use it here. You'll have to obtain the object type first, like
    this:
    (setq SELTYP (assoc 0 (entget (car (entsel)))))
    Select object: (0 . "MTEXT")

    Then pass the type of object (or layer or whatever your criteria will be) to
    the SSGET.

    Allen
     
    Allen Jessup, Jul 12, 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.