<Selection set : 2>

Discussion in 'AutoCAD' started by Adesu, May 19, 2004.

  1. Adesu

    Adesu Guest

    (setq ss (ssget))
    <Selection set: 2>
    Can someone's tell me ,what meaning it "<Selection set : 2>",specially
    meaning "2" or others number,thanks a lot for your help
    Best regards
    Ade Suharna
     
    Adesu, May 19, 2004
    #1
  2. Adesu

    Doug Broad Guest

    The most significant thing it tells me is that
    the selection set contains objects. Ignore
    the number. Its just a reporting feature for
    those writing programs. A different one is
    generated as part of each selection. I
    believe the number is hexadecimal.
     
    Doug Broad, May 19, 2004
    #2
  3. It doesn't really tell you a selection set contains
    objects (use ssdel to remove everything, and you have
    an empty selection set that displays the same thing).

    The number is an intenal 'handle' (e.g., unique id),
    and is used internally to identify the selection set.

    Aside from that, it has no other meaning.
     
    Tony Tanzillo, May 19, 2004
    #3
  4. Adesu

    Doug Broad Guest

    Hi Tony,

    In the context of the original post it does.
    (ssget) returns nil if it finds no objects. ;-)

    I agree that the existance of a selection set
    does not imply it contains any objects. In
    fact, (ssadd) returns an empty selection set.

    I also agree that the number is similar to
    a handle.

    Thanks for the clarifications.

    Regards,
    Doug
     
    Doug Broad, May 19, 2004
    #4
  5. Sorry, didn't see anything about 'nil' in the
    original post. I believe it was not the presence
    of a non-nil result that was being questioned,
    but rather, the numeric value in a non-nil result
    that was the heart of the issue.

    Nice try though :)
     
    Tony Tanzillo, May 20, 2004
    #5
  6. Adesu

    sriaarya2000 Guest

    Hai,

    At first use of (ssget) function
    It gives <selection set: 1>

    And in second use
    It gives <selection set: 2>

    and on....

    The number tells how many times you used
    this function
     
    sriaarya2000, May 20, 2004
    #6
  7. Adesu

    R.K. McSwain Guest

    This is incorrect information.
     
    R.K. McSwain, May 20, 2004
    #7
  8. Adesu

    Paul Turvill Guest

    Not true. Have you actually made several selection sets and looked at the
    numbers? You should.
    ___
     
    Paul Turvill, May 20, 2004
    #8
  9. And as proof, in a new session of AutoCAD 2005 (look, ma! only used (ssget)
    twice):

    Regenerating model.

    AutoCAD menu utilities loaded.
    Command: adcenter

    Command: properties

    Command: SHEETSET

    Command: TOOLPALETTES

    Command: (ssget "X")
    nil

    Command: l LINE Specify first point:
    Specify next point or [Undo]:
    Specify next point or [Undo]:
    Command: LINE Specify first point:
    Specify next point or [Undo]:
    Specify next point or [Undo]:
    Command: (ssget "X")
    <Selection set: 4>

    Command: e ERASE
    Select objects: 1 found

    Select objects:
    Command: (ssget "X")
    <Selection set: 6>


    --
    R. Robert Bell


    Not true. Have you actually made several selection sets and looked at the
    numbers? You should.
    ___
     
    R. Robert Bell, May 20, 2004
    #9
  10. I counted three!
     
    Allen Johnson, May 20, 2004
    #10
  11. oops. ;^)
     
    R. Robert Bell, May 20, 2004
    #11
  12. Adesu

    BillZ Guest

    I went a little further, (one line in the drawing R2005).

    Command: (ssget "X")
    <Selection set: 6>

    Command: (ssget "X")
    <Selection set: 8>

    Command: (ssget "X")
    <Selection set: a>

    Command: (ssget "X")
    <Selection set: c>

    Command: (ssget "X")
    <Selection set: e>

    Command: (ssget "X")
    <Selection set: 10>

    Command: (ssget "X")
    <Selection set: 12>

    Bill
     
    BillZ, May 20, 2004
    #12
  13. Adesu

    sriaarya2000 Guest

    I am sorry to all

    Thank you

    I will put trails next time before reply

    Thanks once again
     
    sriaarya2000, May 21, 2004
    #13
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.