Total length of Polylines

Total length of Polylines

anna_pa
Contributor Contributor
50,151 Views
18 Replies
Message 1 of 19

Total length of Polylines

anna_pa
Contributor
Contributor

How can I get the length of a Polyline from my drawing?
I want to get the length of the Polyline in km, because the polylines represents streets. 

Best regards

0 Likes
Accepted solutions (2)
50,152 Views
18 Replies
Replies (18)
Message 2 of 19

parkr4st
Advisor
Advisor

select a PLine, the length will be in the properties ( Ctrl1)

 

dataextraction will gather the data from all the selected elements of the drawing and put the output into a table

 

as for the km,  the dwg units are km?

Message 3 of 19

braudpat
Mentor
Mentor
Accepted solution

 

Hello

 

Since a long time, I am using this beautiful French routine from Patrick ...

 

TLENGTH is able to give you the Length off ALL AutoCAD Objects: Line, Arc, Circle, Ellipse, SPline, 2D/3D PLine, MLine, MPolygon, Region, etc ...

 

You can easily modify the routine to filter objects: select only LWPolyline for example

 

To load the routine: APPLOAD <Enter>

 

To run the routine: TLENGTH <Enter>

 

Happy WE, Regards, Patrice

 

Patrice ( Supporting Troops ) - Autodesk Expert Elite
If you are happy with my answer please mark "Accept as Solution" and if very happy please give me a Kudos (Felicitations) - Thanks

Patrice BRAUD

EESignature


Message 4 of 19

АлексЮстасу
Advisor
Advisor

Alexander.Rivilis GeomProps.zip - total lenght in Properties palette.


-- Alexander, private person, pacifist, english only with translator 🙂 --

Object-modeling _ odclass-odedit.com _ Help

Message 5 of 19

braudpat
Mentor
Mentor
Accepted solution

 

Hello Anna

 

1) So with TLENGTH Lisp routine (see my 1st message), you get the Total Length of objects in "current" units (mm ou cm ou m or km or etc)

 

2) I add the other versions: TLENGTH_100 and TLENGTH_1000

 

3) TLENGTH_100 divides the result by 100 so for example: cm to m

 

3) TLENGTH_1000 divides the result by 1000 so for example: m to km

 

4) I hope these 3 Lisp routines (from Patrick) wil help you !?

 

5) You can load (with APPLOAD) the 3 versions and after you will have 3 new commands: TLENGTH , TLENGTH_100 , TLENGTH_1000

 

6) PLEASE remind that these Routines are Lisp/VLisp routines, so they can ONLY interact with real DWG objects !

AND NOT with MAP FDO Objects coming from: SHP, SQLite, SDF, Oracle, PostGIS, ArcGIS, ArcSDE, etc ...

 

7) I will appreciate 2 real simple DotNet routines doing the SAME thing (Total Length / Total Area) with FDO Objects : ONLY the Total Length / Total Area (if applicable) of all FDO selected objects ... Nothing more ... Because MORE means MONEY !!

 

Regards, Patrice

 

Patrice ( Supporting Troops ) - Autodesk Expert Elite
If you are happy with my answer please mark "Accept as Solution" and if very happy please give me a Kudos (Felicitations) - Thanks

Patrice BRAUD

EESignature


Message 6 of 19

АлексЮстасу
Advisor
Advisor

Always available after download - GeomProps.zip

GeomProps_2.png


-- Alexander, private person, pacifist, english only with translator 🙂 --

Object-modeling _ odclass-odedit.com _ Help

Message 7 of 19

АлексЮстасу
Advisor
Advisor

Kudos for Alexander.Rivilis 🙂

 

Now only I myself noticed - GeomProps recalculate with the necessary coefficients:

GeomProps_scale.png

 

I always need free programs the Alexander.Rivilis - ExplodeProxy, selsim.


-- Alexander, private person, pacifist, english only with translator 🙂 --

Object-modeling _ odclass-odedit.com _ Help

0 Likes
Message 8 of 19

jennya
Enthusiast
Enthusiast

Awesome! Thank you  АлексЮстасу

0 Likes
Message 9 of 19

АлексЮстасу
Advisor
Advisor

Awesome Alexander.RivilisSmiley Very Happy

 


-- Alexander, private person, pacifist, english only with translator 🙂 --

Object-modeling _ odclass-odedit.com _ Help

0 Likes
Message 10 of 19

Anonymous
Not applicable

Can you advance lisp ( automatic copy total length )?

Thanks you very much.

0 Likes
Message 11 of 19

Anonymous
Not applicable

hi @braudpat 

Can you update lisp ( automatic copy sum length )?

 🙂

0 Likes
Message 12 of 19

braudpat
Mentor
Mentor

Hello

 

What do you mean exactly by : automatic copy sum length ??

 

THE HEALTH (Stay Safe), Regards, Patrice (The Old French EE Froggy)

 

Patrice ( Supporting Troops ) - Autodesk Expert Elite
If you are happy with my answer please mark "Accept as Solution" and if very happy please give me a Kudos (Felicitations) - Thanks

Patrice BRAUD

EESignature


Message 13 of 19

Anonymous
Not applicable

hi @braudpat 

What do you mean exactly by : automatic copy sum length ??

==> Yes. Eg.I want copy sum length to excel (not Ctr+C)

I wish you do detail lisp for me. Because I don't understand lisp. 😞

😥

0 Likes
Message 14 of 19

Peter2_1
Collaborator
Collaborator

@АлексЮстасу  schrieb:

Alexander.Rivilis GeomProps.zip - total lenght in Properties palette.


It would be great if there is a small information in English about the tools. The homepage and the current info is not that helpful for many users with limited knowledge in different langauges ...

AutoCAD Map 3D 2023 German / Oracle
Message 15 of 19

АлексЮстасу
Advisor
Advisor

Alexander.Rivilis is present in the forums - https ://forums.autodesk.com/t5/user/viewprofilepage/user-id/481027. You can write him a Private Message.

 

What exactly would you like to clarify?

 


-- Alexander, private person, pacifist, english only with translator 🙂 --

Object-modeling _ odclass-odedit.com _ Help

0 Likes
Message 16 of 19

АлексЮстасу
Advisor
Advisor

The author, Alexander.Rivilis, answered me:
The language of the program interface depends on the AutoCAD localization.
Many other Alexander.Rivilis contacts are in the program archive in Readme.txt.

 


-- Alexander, private person, pacifist, english only with translator 🙂 --

Object-modeling _ odclass-odedit.com _ Help

0 Likes
Message 17 of 19

Peter2_1
Collaborator
Collaborator

Info:

 

Alexander just added an English readme to the ZIp package

 

Alexander.Rivilis GeomProps.zip -

 

Thanks a lot!

AutoCAD Map 3D 2023 German / Oracle
0 Likes
Message 18 of 19

Peter2_1
Collaborator
Collaborator

@Anonymous

thanks, a helpful tool.

 

For "GeomPropsGetPerimiter" I suggest to consider:

- it should be Perimeter, not Perimiter

- maybe you could replace it with GeomPropsGetLength to be consistent with the display in the properties and to be consistent with the meaning - a line does not have a perimeter, it has a length

 

Have a fine time!

AutoCAD Map 3D 2023 German / Oracle
0 Likes
Message 19 of 19

Alexander.Rivilis
Mentor
Mentor

@Peter2_1 

I agree that it is my grammatical errors. But this program have been using for 15 years and I would not want to change the names of commands and functions that are used.

Відповідь корисна? Клікніть на "ВПОДОБАЙКУ" цім повідомленням! | Do you find the posts helpful? "LIKE" these posts!
Находите сообщения полезными? Поставьте "НРАВИТСЯ" этим сообщениям!
На ваше запитання відповіли? Натисніть кнопку "ПРИЙНЯТИ РІШЕННЯ" | Have your question been answered successfully? Click "ACCEPT SOLUTION" button.
На ваш вопрос успешно ответили? Нажмите кнопку "УТВЕРДИТЬ РЕШЕНИЕ"


Alexander Rivilis / Александр Ривилис / Олександр Рівіліс
Programmer & Teacher & Helper / Программист - Учитель - Помощник / Програміст - вчитель - помічник
Facebook | Twitter | LinkedIn
Expert Elite Member

0 Likes