Results 1 to 2 of 2

Thread: How to find the length from the start point of a polyline?

  1. #1
    Active Member pferreira's Avatar
    Join Date
    2006-06
    Location
    Lisbon, Portugal
    Posts
    88
    Login to Give a bone
    0

    Default How to find the length from the start point of a polyline?

    You can find the length from the start point of a polyline without breaking it by using this vlisp expression (vlax-curve-getDistAtPoint (vlax-ename->vla-object (car (entsel))) (getpoint "\nSelect point: \n")), with this it will ask you to select an object and then it will ask you to select a point along the polyline, finally it will return the distance from the start point (vertex 1).


    Best Regards

  2. #2
    Administrator Opie's Avatar
    Join Date
    2002-01
    Location
    jUSt Here (a lot)
    Posts
    9,100
    Login to Give a bone
    0

    Default Re: How to find the length from the start point of a polyline?

    But if you miss the object this would error out. You would need to make sure an item is selected. You will also need to verify that it could have a length.

    Other than that, it looks good.
    If you have a technical question, please find the appropriate forum and ask it there.
    You will get a quicker response from your fellow AUGI members than if you sent it to me via a PM or email.
    jUSt

Similar Threads

  1. Total polyline length
    By jbenway in forum AutoCAD General
    Replies: 6
    Last Post: 2011-10-18, 06:08 AM
  2. polyline length macro
    By brett.warren in forum AutoCAD LT - General
    Replies: 0
    Last Post: 2010-02-18, 03:46 PM
  3. Replies: 9
    Last Post: 2007-02-21, 10:43 PM
  4. Attribute polyline length
    By santoshkumar.bs in forum AutoLISP
    Replies: 0
    Last Post: 2005-12-09, 12:01 PM
  5. C# - closed Polyline length
    By RoSiNiNo in forum ARX
    Replies: 1
    Last Post: 2005-03-02, 03:17 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •