• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    AutoCAD Map 3D

    Reply
    Active Contributor
    Posts: 48
    Registered: ‎02-05-2009

    calculate total of polylines

    881 Views, 6 Replies
    07-08-2009 08:58 AM
    I need to calucalte the total length of waterlines (polylines) in our District - is there a command in AutoCAD Map 3D 2010 to do this ... easily?
    Thanks,
    ~Sue
    Please use plain text.
    *David Parker

    Re: calculate total of polylines

    07-08-2009 02:02 PM in reply to: smvest
    Not sure about a command. you can probably find a lsp routine on-line
    somewhere.

    but I'll suggest exporting the polylines to a sdf file and data connecting
    to the sdf. Export with the length property selected along with any other
    data you may use. The data table will have the length of each pline in it
    which when exported out of the data table to a .csv file will open in a
    spreadsheet where you can add, sort, etc to your hearts content. you will
    also be able to style the lines by length groups, etc.

    dave




    wrote in message news:6215015@discussion.autodesk.com...
    I need to calucalte the total length of waterlines (polylines) in our
    District - is there a command in AutoCAD Map 3D 2010 to do this ... easily?
    Thanks,
    ~Sue
    Please use plain text.
    Active Member
    Posts: 6
    Registered: ‎11-13-2006

    Re: calculate total of polylines

    07-09-2009 07:24 AM in reply to: smvest
    On your map pull down menu got to Topologies. Then choose a network topology. Choos what layer you to make the topology from. Then after creating, go back to map pull donw menu and choose Network Analysis, a box will appear on yours screen and it will tell you the total distance of that topology.
    Please use plain text.
    Distinguished Contributor
    Posts: 120
    Registered: ‎11-07-2007

    Re: calculate total of polylines

    07-09-2009 10:48 AM in reply to: smvest
    Hi Sue,

    tallantedd gave you good solution.

    Here I attached simple lisp which can calculate overall length of selected polylines. The only advantages is that you can simply select those polylines which length you would like to calculate without creating of topology. The only limitation is that polylines cannot be closed.

    Let me know if everything functions. Just load attached LSP and start command LNG.


    Regards,

    Drazen Galic
    d dot galic at studioars dot hr
    Please use plain text.
    Distinguished Mentor
    braudpat
    Posts: 578
    Registered: ‎12-15-2006

    Re: calculate total of polylines

    08-20-2009 01:24 AM in reply to: smvest
    Hello

    An other Lisp routine which calculate Area & Perimeter for :
    Pline (Closed or NOT), Circle, Spline, Ellipse, Region, MPOLYGON

    BUT Line, Arc, Multi-lines, etc are NOT treated by this routine

    I use it every day for area & perimeter/length calculations ...

    Sorry for my English, Pat

    PS: the command (with keyboard) to launch this routine is : ZTOTM Edited by: braudpat on Aug 20, 2009 3:13 PM
    Please use plain text.
    Distinguished Contributor
    Posts: 231
    Registered: ‎12-02-2003

    Re: calculate total of polylines

    08-31-2009 11:31 AM in reply to: smvest
    I have been using a lsp to do this for years. There is a free lsp available online from many places that will give a total length of any selected objects. Search for "tlen" lsp online and you will find it easily. I have this permanently loaded into my applications, it's great.
    Please use plain text.
    New Member
    Posts: 2
    Registered: ‎09-14-2009

    Re: calculate total of polylines

    09-14-2009 10:44 PM in reply to: smvest
    how do u solve th eproblemof taling length ofpolylines in 2010, m also trying
    plz help
    after topology
    if i do directly export , inthis there is no link option
    Please use plain text.