lisp & polyline

lisp & polyline

Anonymous
Not applicable
762 Views
2 Replies
Message 1 of 3

lisp & polyline

Anonymous
Not applicable

I have no idea how Googl ask why I ask you.

How to catch, in which part of the polylines were 'clicked' when

(entsel "pick element")

Verse in second position gives the coordinates of the point, but its accuracy is probably dependent on the 'pickbox size', so you can not walk to assume that clicked on the polyline.

 

Jerzy

0 Likes
763 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable

Already I found the solution

vlax-curve-getClosestPointToProjection

Jerzy

Message 3 of 3

Kent1Cooper
Consultant
Consultant

Try putting that (entsel) result into a variable:

 

(setq esel (entsel "pick element"))

 

and following that with:

 

(setq picknear (osnap (cadr esel) "_nearest"))

 

The 'picknear' variable will then hold a location that is truly on the object.

Kent Cooper, AIA
0 Likes