Code to check if the POINT is on the LINE/PLINE

Discussion in 'AutoCAD' started by Defun, Aug 5, 2003.

  1. Defun

    Defun Guest

       This is the first time I visit this forum. Very interested. I'm writing a lisp routine in which need a code to check if a POINT '(x y z) is on the LINE/PLINE . Does any one help me ?. Hope a lots.
     
    Defun, Aug 5, 2003
    #1
  2. Defun

    nagesh Guest

    (setq point_id (list (x,y,z)))
    this will store ur point or co-ordinate value.
    (setq sset (ssget "c" point_id point_id (list (cons 0 "lwpolyline"))))
    this will create a selection set for pline on that point.
    if it is not returning nil means pline is crossing from that point.
    regards
    nagesh
     
    nagesh, Aug 5, 2003
    #2
  3. Defun

    Defun Guest

       Thanks Nagesh ! Sory for my late reply. I'm so busy. It's a very good idea. Thanks again. :)
     
    Defun, Aug 7, 2003
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.