Jump to content
aaryan

Point coordinate on Polyline

Recommended Posts

aaryan

Hi All,

 

Please Help

How do i get a point coordinate on a polyline from start point at given distance using Lisp.

 

 

Thanks in advance

Aaryan

Share this post


Link to post
Share on other sites
MSasu

Please check the VLAX-CURVE-GETPOINTATDIST function.

(if (and (setq ssetPoly (ssget "_:S" '((0 . "LWPOLYLINE"))))
        (setq theDist  (getreal "\nDistance: ")))
(print (vlax-curve-getPointAtDist (ssname ssetPoly 0) theDist))
)

Share this post


Link to post
Share on other sites
aaryan

Thank You So Much

Mircea

 

Regards

Aaryan

Share this post


Link to post
Share on other sites
MSasu

You’re welcome Aaryan!

 

If you check this function in help, will notify that the curve argument is requested in VLA format; but when test will see that is accepted as entity name, too.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×