SS bug or ??

Discussion in 'AutoCAD' started by BillZ, Jan 3, 2005.

  1. BillZ

    BillZ Guest

    R2005:

    I know I've been away for a few days and things can change rapidly but why am I getting some points, circles and text in my selection set when I use:

    Command: (setq ss (ssget "X" '((0 . "LINE"))))
    <Selection set: 27>

    Command: list

    Select objects: !ss
    <Selection set: 27>
    854 found, 1 group

    Select objects:

    TEXT Layer: "0"
    Space: Model space
    Handle = 161F
    Group = 70031
    Style = "ROMANS"
    Font file = romans.shx
    start point, X= 142.3191 Y= 52.3964 Z= 0.0015
    height 1.0000
    text UP 12
    rotation angle 268
    width scale factor 1.0000
    obliquing angle 0
    generation normal

    CIRCLE Layer: "OUTSIDE"
    Space: Model space
    Handle = 1621
    Group = 70031
    center point, X= 147.7375 Y= 46.9026 Z= 0.0015
    radius 1.7427
    circumference 10.9497
    area 9.5410

    POINT Layer: "LDRILL"
    Space: Model space
    Handle = 1623
    Group = 70031
    at point, X= 147.0724 Y= 45.0074 Z= 0.0015

    POINT Layer: "LDRILL"
    Space: Model space
    Handle = 1624
    Group = 70031
    at point, X= 148.2053 Y= 46.7126 Z= 0.0015

    POINT Layer: "LDRILL"
    Space: Model space
    Handle = 1625
    Group = 70031
    at point, X= 147.1840 Y= 46.9759 Z= 0.0015

    POINT Layer: "LDRILL"
    Space: Model space
    Handle = 1626
    Group = 70031
    at point, X= 133.8405 Y= 50.5092 Z= 0.0015

    Press ENTER to continue:
    POINT Layer: "LDRILL"
    Space: Model space
    Handle = 1627
    Group = 70031
    at point, X= 142.1862 Y= 53.3715 Z= 0.0015

    POINT Layer: "LDRILL"
    Space: Model space
    Handle = 1628
    Group = 70031
    at point, X= 133.2431 Y= 54.0260 Z= 0.0015

    POINT Layer: "LDRILL"
    Space: Model space
    Handle = 1629
    Group = 70031
    at point, X= 147.3726 Y= 48.8665 Z= 0.0015

    POINT Layer: "LDRILL"
    Space: Model space
    Handle = 162A
    Group = 70031
    at point, X= 149.2738 Y= 48.1721 Z= 0.0015

    TEXT Layer: "0"
    Space: Model space
    Handle = 162B
    Group = 70031
    Style = "ROMANS"
    Font file = romans.shx
    start point, X= 143.1415 Y= 44.6434 Z= 0.0015
    height 1.5000
    text 70031
    rotation angle 340
    width scale factor 1.0000
    obliquing angle 0
    generation normal

    POINT Layer: "LDRILL"
    Space: Model space
    Handle = 162C
    Group = 70031
    at point, X= 141.8021 Y= 44.2561 Z= 0.0015

    POINT Layer: "LDRILL"
    Space: Model space
    Handle = 1632
    Group = 70031
    at point, X= 139.9269 Y= 48.6307 Z= 0.0015
    Press ENTER to continue:

    LINE Layer: "OUTSIDE"
    Space: Model space
    Handle = 163B
    Group = 70031
    from point, X= 141.7417 Y= 44.1184 Z= 0.0015
    to point, X= 150.9204 Y= 41.1091 Z= 0.0015
    Length = 9.6595, Angle in XY Plane = 342
    Delta X = 9.1787, Delta Y = -3.0093, Delta Z = 0.0000

    LINE Layer: "OUTSIDE"
    Space: Model space
    Handle = 163A
    Group = 70031
    from point, X= 130.5336 Y= 48.4641 Z= 0.0015
    to point, X= 141.7417 Y= 44.1184 Z= 0.0015
    Length = 12.0211, Angle in XY Plane = 339
    Delta X = 11.2081, Delta Y = -4.3457, Delta Z = 0.0000

    LINE Layer: "OUTSIDE"
    Space: Model space
    Handle = 1639
    Group = 70031
    from point, X= 130.4191 Y= 58.2471 Z= 0.0015
    to point, X= 130.5336 Y= 48.4641 Z= 0.0015
    Length = 9.7836, Angle in XY Plane = 271
    Delta X = 0.1145, Delta Y = -9.7829, Delta Z = 0.0000

    ect.ect

    Have I forgotten something?

    Seems to work when I use ARC:

    (setq ss (ssget "X" '((0 . "ARC"))))

    I get just arcs.

    TIA

    Bill
     
    BillZ, Jan 3, 2005
    #1
  2. BillZ

    T.Willey Guest

    Is it because the Line you selected is within a group?

    Tim
     
    T.Willey, Jan 3, 2005
    #2
  3. BillZ

    BillZ Guest

    Yes,
    I see that now.

    Any ideas on how to handle that?

    Bill
     
    BillZ, Jan 3, 2005
    #3
  4. BillZ

    T.Willey Guest

    The only thing I can think of is to turn off group selection, then run your routine, then turn it back on.

    Tim
     
    T.Willey, Jan 3, 2005
    #4
  5. If I create a group of 2 lines and a circle

    (setq ss (ssget "x" '((0 . "line"))))
    <Selection set: 12e>

    (sslength ss)
    2

    Am I missing something? How were your groups created?
     
    Jason Piercey, Jan 3, 2005
    #5
  6. BillZ

    BillZ Guest

    That'll work for now.

    Thanks

    Bill
     
    BillZ, Jan 3, 2005
    #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.