AutoCAD Map 3D General Discussion

AutoCAD Map 3D General Discussion

Reply
Active Contributor
smvest
Posts: 48
Registered: ‎02-05-2009
Message 1 of 7 (2,495 Views)

calculate total of polylines

2495 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
*David Parker
Message 2 of 7 (2,495 Views)

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
Active Member
tallantedd
Posts: 6
Registered: ‎11-13-2006
Message 3 of 7 (2,495 Views)

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.
Distinguished Contributor
drazen-ars
Posts: 140
Registered: ‎11-07-2007
Message 4 of 7 (2,495 Views)

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
*Expert Elite*
braudpat
Posts: 2,407
Registered: ‎12-15-2006
Message 5 of 7 (2,495 Views)

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
Bye, Pat ( Supporting Troops )
If you are happy with my answer please mark "Accept as Solution" and if very happy please give me a Kudos (Compliment) - Thanks
Distinguished Contributor
cedwards
Posts: 237
Registered: ‎12-02-2003
Message 6 of 7 (2,495 Views)

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.
New Member
gold_arora
Posts: 2
Registered: ‎09-14-2009
Message 7 of 7 (2,495 Views)

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
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.