[Solved] Polygon line length

Discuss the drawing application
Post Reply
Fritz
Posts: 3
Joined: Sat Jul 25, 2009 12:39 am

[Solved] Polygon line length

Post by Fritz »

I have huge polygon line (not closed, not filled) in my drawing. I need to know exact total length of this line.
Is there any possibilities to get this information without pain in my ...?
Last edited by Hagar Delest on Tue Jul 28, 2009 9:26 pm, edited 1 time in total.
Reason: tagged [Solved].
OOo 3.1.X on Ms Windows Other + Ms Windows 7 RC1
User avatar
acknak
Moderator
Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: polygon line length

Post by acknak »

It is possible to get the total length, but not through the normal user interface. You would have to dig in the file code to extract the object's coordinates and then calculate the length from that data. It's not that hard, but certainly not "painless".

There may be an extension that does this; I don't know. Maybe someone else can say for sure.

If no one has a better suggestion, copy/paste the object to a new drawing and attach it here; I'll take a look at it.
AOO4/LO5 • Linux • Fedora 23
User avatar
acknak
Moderator
Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: Polygon line length

Post by acknak »

Here's a sample:
Attachments
poly_length.ods
(36.13 KiB) Downloaded 363 times
AOO4/LO5 • Linux • Fedora 23
Fritz
Posts: 3
Joined: Sat Jul 25, 2009 12:39 am

Re: Polygon line length

Post by Fritz »

Thank's a lot! Seem's that I have to use this method.
Actually I was expecting that this information exists somewhere in GUI and I just can't find it.
OOo 3.1.X on Ms Windows Other + Ms Windows 7 RC1
User avatar
acknak
Moderator
Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: Polygon line length

Post by acknak »

This extension may be of some use:
http://extensions.services.openoffice.o ... ce-plotter

I have not installed it, but it claims to convert a drawing into a spreadsheet (there's your x,y points). I don't know if it does length calculations, but it sounds like it might.

Please let us know if you try it, and how it works out.
AOO4/LO5 • Linux • Fedora 23
Fritz
Posts: 3
Joined: Sat Jul 25, 2009 12:39 am

Re: Polygon line length

Post by Fritz »

I had quick look at this plotter. It does not do any calculations itself, you have to add length calculations into your calc. But it simplifies points data insertion into calc, so it's right tool for those who do not know how to get points from Content.xml.
Note: you will get points in your Calc coordinates, not in Draw coordinates. But for length calculations offset does not matter.
OOo 3.1.X on Ms Windows Other + Ms Windows 7 RC1
Post Reply