draw a perpendicular from a point on the nearest segment of a polyline

Discussion in 'AutoCAD' started by RaghuMN, Jul 14, 2003.

  1. RaghuMN

    RaghuMN Guest

    Can anyone tell me on how to draw a perpendicular from a point on a polyline with MANY vertexes and not straight.
    The point should find the nearest segment of polyline and draw a perpendicular to this segment.

    Any clues, helps..?

    Thanks in advance,

    MNRaghu
     
    RaghuMN, Jul 14, 2003
    #1
  2. RaghuMN

    morrisde Guest

    Get the nearest point on the polyline with vlax-curve-getclosestpointo, and the angle by using vlax-curve-getfirstderiv.
    Regards,
    Dave
     
    morrisde, Jul 14, 2003
    #2
  3. RaghuMN

    RaghuMN Guest

    Thanks Morrisde,
    As the first look, i think it works. I will try this and get back if i find any difficulty.

    MNRaghu
     
    RaghuMN, Jul 15, 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.