See the top rated post in this thread. Click here

Results 1 to 5 of 5

Thread: Get total length of selected Polylines

  1. #1
    Member
    Join Date
    2005-12
    Posts
    10
    Login to Give a bone
    0

    Question Get total length of selected Polylines

    I have a problem hopefully someone might have a workaround that i haven't thought of,here goes! I work for the city of Barcelos (Portugal) in the electrical department, After we conclude the drawing part, we have to sum up all the lighting units and cable that will be needed, for the units i make blocks out of them giving tem reference names (ex.. Dorus ) then use qselect to select the blocks and within seconds i get the sum of the blocks that exist in the drawing with that name,easy right, problem comes from the cable part, where i have to convert the lines into polylines then use the length command to get the length then write down on paper and at the end sum it all up to get the final count. I tried to use qselect but in the properties tab length just says "VARIES" . Is there a way to sum up all the polylines length values to reach a total value, whether it be by qselect, filter, all on the same layer, hell even programing a routine.If anyone can help, i´ll give my word that i´ll put a good word for you in heaven, unless of course i don´t get in but thats a whole new story. Thanks for listening.

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

    Default Re: Get total length of selected Polylines

    Have you tried Cadalyst.com? The August 1999 code list has a polyline length routine.
    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

  3. #3
    The Silent Type Mike.Perry's Avatar
    Join Date
    2000-11
    Posts
    13,656
    Login to Give a bone
    1

    Default Re: Get total length of selected Polylines

    Hi

    If need be, the following forum links offer additional help on this subject...

    RE: Total polyline length

    LISP to get total length including ARC, Pline & lines?

    Have a good one, Mike

  4. #4
    Member
    Join Date
    2005-12
    Posts
    10
    Login to Give a bone
    1

    Smile Re: Get total length of selected Polylines

    Thank you Opie, Thank you Mike, you can count on my vote if you want to run for president! but seriously thanks alot for the help.

  5. #5
    Administrator rkmcswain's Avatar
    Join Date
    2004-09
    Location
    Earth
    Posts
    9,805
    Login to Give a bone
    0

    Default Re: Get total length of selected Polylines

    Quote Originally Posted by roygoncalves
    Is there a way to sum up all the polylines length values to reach a total value
    Sure, grab TLEN.LSP from http://www.turvill.com/t2/free_stuff/index.htm
    R.K. McSwain | CAD Panacea |

Similar Threads

  1. Lisp for Total Length of Polylines
    By issabhazboun708277 in forum AutoLISP
    Replies: 1
    Last Post: 2015-09-08, 03:56 PM
  2. Polylines: total area and length
    By Wish List System in forum AutoCAD Wish List
    Replies: 6
    Last Post: 2015-05-24, 10:44 AM
  3. Total Length of Polylines
    By vijaybaskergundla in forum AutoLISP
    Replies: 7
    Last Post: 2015-04-30, 04:29 PM
  4. Polylines: total area and length
    By Wish List System in forum AutoCAD Wish List
    Replies: 1
    Last Post: 2014-01-29, 05:16 AM
  5. Polylines and Total Length
    By revit.wishlist1942 in forum Revit Architecture - Wish List
    Replies: 3
    Last Post: 2012-06-13, 08:10 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
  •