Jump to content

polyline selection


salman

Recommended Posts

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.

Link to comment
Share on other sites

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,

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...