Jump to content

Recommended Posts

Posted

Hi pBe,

Below code I am using for my daily use..

(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)
     )

I kept my promise.

Thanks to YOU and MIRCEA..

  • Replies 24
  • Created
  • Last Reply

Top Posters In This Topic

  • aaryan

    11

  • pBe

    9

  • MSasu

    5

Top Posters In This Topic

Posted

That looks good, Aaryan. Congratulation!

Posted

I kept my promise.

Thanks to YOU and MIRCEA..

 

We know you had it in you Aaryan. :thumbsup: ,

Good job.

 

Keep on coding

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...