salman Posted June 26, 2010 Share Posted June 26, 2010 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. Quote Link to comment Share on other sites More sharing options...
MSasu Posted June 26, 2010 Share Posted June 26, 2010 You need to define a selection filter - the code below will return all polylines that pass the two points: (setq Point1st (getpoint "\nFirst point: ")) (setq Point2nd (getpoint "\nsecond point: ")) (ssget "_X" (list '(0 . "LWPOLYLINE") (cons 10 Point1st) (cons 10 Point2nd))) Regards, Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.