Ssget help entity without handles.

Discussion in 'AutoCAD' started by Nauman M, Aug 11, 2003.

  1. Nauman M

    Nauman M Guest

    Unattached.
    (360 . <Entity name: 0>)

    Attached
    (360 . <Entity name: 42bdc9f0>)


    I want to select all the objects that are not attached to another
    entity. i.e.e their DF code 360 is (360 . <Entity name: 0>) as comapred
    to the one that are attached have the handle for the object these
    entitties are attached to.


    I cannot figure out the filtering part for the handles.

    I can find all the doors

    (ssget '(( 0 . "AEC_DOOR"))) I want to select all doors that are free
    floasting I know this is a ADT thing, but since I only want to get an
    idea of how I can use ssget I thought to post it here.

    thanks
     
    Nauman M, Aug 11, 2003
    #1
  2. Nauman M

    mataeux Guest

    since nothing can own the named object dictionary, you might think this
    (ssget"X"(list(assoc 330(entget(namedobjdict)))))
    would work... but it doesnt seem reliable!

    use (ssget'((0 . "AEC_WHATEVER")))
    then for each member of the selection set,
    check if its 330 is equal to ename_0
    ((setq ename_0(cdr(assoc 330(entget(namedobjdict))))))
     
    mataeux, Aug 12, 2003
    #2
  3. (ssget) only selects entities. It can't select objects
    that are not entities (objects that you can't see in the
    drawing view).

    --
    http://www.acadxtabs.com


     
    Tony Tanzillo, Aug 12, 2003
    #3
  4. Nauman M

    mataeux Guest

    i'm just suggesting a guaranteed way to retrieve <Entity name: 0>
    would be (assoc 330(entget(namedobjdict))) not suggesting that
    nongraphic entities would be returned by ssget,

    the original post suggested there could exist graphic entities
    that have (330 . <Entity name: 0>) is that true? i thought all objects in
    modelspace would have (330 . <pointer-to-*Modelspace>) ?
    so any 'unowned' objects would be found only in the AEC dictionaries?
    i don't know

    still, (ssget "X" '((330 . <Entity name: 0>)))
    returns a seemingly unpredictable selection set


     
    mataeux, Aug 13, 2003
    #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.