+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Full Member
    Using
    AutoCAD 2009
    Join Date
    Mar 2009
    Posts
    75

    Default polyline selection

    Registered forum members do not see this ad.

    Hi

    I want to select a polyline such that one of its end point liest at point p1 and the other end point at point p2. Using ssget how can we do this or what is the simplest technique for such selection.

    One way is to get the start point and end point coordinates of the polyline and match them with p1 and p2 respectively, but is their some simpler method.

    Thanks.

  2. #2
    Forum Deity MSasu's Avatar
    Discipline
    Construction
    MSasu's Discipline Details
    Occupation
    engineer
    Discipline
    Construction
    Details
    AutoLISP programmer
    Using
    AutoCAD 2013
    Join Date
    Mar 2009
    Location
    Brasov, Romania
    Posts
    3,003

    Default

    Registered forum members do not see this ad.

    You need to define a selection filter - the code below will return all polylines that pass the two points:

    Code:
    (setq Point1st (getpoint "\nFirst point: "))
    (setq Point2nd (getpoint "\nsecond point: "))
    
    (ssget "_X" (list '(0 . "LWPOLYLINE") (cons 10 Point1st) (cons 10 Point2nd)))
    Regards,

Similar Threads

  1. Identify a polyline by a point inside this polyline
    By wkplan in forum AutoLISP, Visual LISP & DCL
    Replies: 25
    Last Post: 18th Aug 2009, 07:09 pm
  2. selection preview effect - selection preview filtering
    By dusko in forum AutoCAD Beginners' Area
    Replies: 6
    Last Post: 18th Jun 2008, 08:43 am
  3. Join 2d polyline to 3d polyline
    By Tconn in forum AutoCAD Drawing Management & Output
    Replies: 4
    Last Post: 12th Jul 2007, 05:59 pm
  4. Polyline or line selection
    By bleeargh in forum AutoCAD Drawing Management & Output
    Replies: 5
    Last Post: 14th Feb 2006, 04:20 am
  5. delay in selection of objects/selection windows
    By RedRobMol in forum AutoCAD Drawing Management & Output
    Replies: 2
    Last Post: 31st May 2005, 01:34 pm

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts