AutoLisp - Selection set and blocks

Discussion in 'AutoCAD' started by sep1, Jul 1, 2004.

  1. sep1

    sep1 Guest

    I am trying to get a selection set of an existing block at a certain location. Something like:

    (ssget "C" pt1 pt2)

    But the crossing points are located on a pline of the block and it does not return a SS. Is there another way to accomplish this?

    Using AutoCad 2002.
    Thanks
    SEP
     
    sep1, Jul 1, 2004
    #1
  2. sep1

    Jon Guest

    (ssget "x" (list (cons 0 "INSERT")(cons 10 blockinspt)))

    Jon Rasmussen
    not return a SS. Is there another way to accomplish this?
     
    Jon, Jul 1, 2004
    #2
  3. sep1

    hulioman Guest

    The window and crossing parts of the ssget function only work if the object is visible in the AutoCAD display limits. I'll bet if you do a zoom extents before running your ssget, it will select the objects your looking for.
     
    hulioman, Jul 1, 2004
    #3
  4. sep1

    sep1 Guest

    hulioman,

    It worked........ thanks for your help.

    Another words it you can't see the window or crossing (similar to the stretch command, when you pan the display outside or past your first selected crossing point) autocad for some reason cannot see that point location?

    sep1
     
    sep1, Jul 1, 2004
    #4
  5. sep1

    dblaha Guest

    A window or crossing will only select entities that are both within the points provided AND at least partially visible onscreen. SSGET "X" will grab all entities in the database, including ones that are offscreen, on frozen layers, etc.

    One undocumented option I found a few years back is SSGET "all". SSGET "a" also works. It acts just like when you enter "all" at a selection prompt on the command line. It grabs everything in the drawing whether or not it's currently showing on screen, but unlike "x", it excludes nonvisible entities such as entities on frozen and turned off layers and blocks that are in the database but not inserted in the drawing. Pretty handy...
     
    dblaha, Jul 2, 2004
    #5
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.