That looks good, Aaryan. Congratulation!


Registered forum members do not see this ad.
Hi pBe,
Below code I am using for my daily use..
I kept my promise.Code:(defun c:InqPoly () (vl-load-com) (setq Kproute (car (entsel "\nSelect polyline Route:"))) (setq Ppoint (getpoint "\nSpecify point:")) (setq dist (if (vlax-curve-getDistAtPoint Kproute Ppoint) (vlax-curve-getDistAtParam Kproute (vlax-curve-getParamAtPoint Kproute Ppoint)) (vlax-curve-getDistAtPoint Kproute (vlax-curve-getClosestPointTo Kproute Ppoint)))) (setq offst (distance (vlax-curve-getClosestPointTo Kproute Ppoint) Ppoint)) (princ (strcat "\nKP on this point is: " (rtos dist 2 3) " " "Offset is:" (rtos offst 2 3))) (princ) )
Thanks to YOU and MIRCEA..
That looks good, Aaryan. Congratulation!
Regards,
Mircea
AutoCAD's happy user equation: FILEDIA + PICKADD² + PICKFIRST = 3


Thank You.


Registered forum members do not see this ad.
Thank You.
Bookmarks