How to find length of freeform line?

Started by Jennifer, April 22, 2023, 01:50:52 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Jennifer

Is there a way to find the length of a freeform line?

I have a freeform line like this in a Visio drawing. It represents a drip line hose. I'd like to get the length so I can determine how long of a hose to buy.



I found a couple of sites that show a VBA macro.

https://social.msdn.microsoft.com/Forums/lync/en-US/fab64623-ad31-47f6-8361-cd0acb2825ef/length-of-freeform-line?forum=officegeneral

Is there a way to do it without code? Like an attribute of the shape?

Thanks
Using Visio 2019, part of Office 365 on Windows 10

wapperdude

Use the shapesheet function pathlength()'

Open shapesheet of the hose.  Presumably, it's drawn in the Geometry1 section.
Insert the User section.  Add formula =pathlength(Geometry1.path).  Turn values on to see result.
Visio 2019 Pro

Jennifer

Using Visio 2019, part of Office 365 on Windows 10