Select all Objects within a polyline

Discussion in 'AutoCAD' started by Greg McLandsborough, Nov 25, 2004.

  1. Whats the best way to select all the entities within a polyline in lisp. I'v
    tried getting the co-ordinates and converting them to a point list and using
    ssget. An comments appreciated

    Cheers

    Greg
     
    Greg McLandsborough, Nov 25, 2004
    #1
  2. Greg McLandsborough

    Jeff Mishler Guest

    Here's a quick sample of how to do it, using an older routine by M. Puckett
    to get the vertex coordinates.

    ;M. Puckett
    (defun cdrs (DxfKey ImpLst / TmpLst OutLst)
    (while (setq TmpLst (assoc DxfKey ImpLst))
    (setq OutLst (cons (cdr TmpLst) OutLst)
    ImpLst (cdr (member TmpLst ImpLst))
    )
    )
    (reverse OutLst)
    )
    (setq plEnt (entget (car (entsel "\nSelect pline:"))))
    (setq plList (cdrs 10 plEnt))
    (setq ss (ssget "WP" plList))
     
    Jeff Mishler, Nov 25, 2004
    #2
  3. Sorry everybody, This thread did not show up in My Outlook Express News
    reader. Dont Know why. used XanaNews, and could read it. Very Strange.

    Sorry again
     
    Greg McLandsborough, Dec 2, 2004
    #3
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.