News:

BB code in posts seems to be working again!
I haven't turned on every single tag, so please let me know if there are any that are used/needed but not activated.

Main Menu

Can I draw a curved line and see the length?

Started by Jennifer, November 12, 2022, 09:18:35 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Jennifer

Is there a way to draw a curved line (arc, pencil, freeform) and then add a field that will show the length if it were straightened out?

I tried all three, but the length field is the length of the rectangle enclosing the string.
Using Visio 2019, part of Office 365 on Windows 10

wapperdude

Visio 2019 Pro

Jennifer

Quote from: wapperdude on November 12, 2022, 09:51:51 PM
Assuming you have V2010 or newer, there is pathlength shapesheet function.  See https://learn.microsoft.com/en-us/office/client-developer/visio/pathlength-function

I have updated my signature to show that I have Visio 2019.

I opened the shapesheet for the 3 curvy lines that I drew, but there was no Path field in the Geometry 1 section.

Undaunted, I added a field to each shape and entered this custom formula "=PATHLENGTH(Geometry1.Path)". Here's the result:



So it works! 👏👍🥰
Using Visio 2019, part of Office 365 on Windows 10

Jennifer

Curiously, I had to select the Number format and then "Feet and inches" to get any units to be displayed.

When I selected the General category and checked Show units, none were displayed.
Using Visio 2019, part of Office 365 on Windows 10

Jennifer

On the off chance that you might be interested in the application, here's a screenshot of the layout I created to see where we might want to put a home charging station for the electric vehicle we are looking into getting.



I knew the the straight line distances were off, but I wasn't sure by how much. It's about 20%.



I think it's pretty cool! Thanks for the help.
Using Visio 2019, part of Office 365 on Windows 10

Browser ID: smf (possibly_robot)
Templates: 4: index (default), Display (default), GenericControls (default), GenericControls (default).
Sub templates: 6: init, html_above, body_above, main, body_below, html_below.
Language files: 4: index+Modifications.english (default), Post.english (default), Editor.english (default), Drafts.english (default).
Style sheets: 4: index.css, attachments.css, jquery.sceditor.css, responsive.css.
Hooks called: 221 (show)
Files included: 32 - 1207KB. (show)
Memory used: 1048KB.
Tokens: post-login.
Cache hits: 13: 0.00163s for 26,767 bytes (show)
Cache misses: 2: (show)
Queries used: 16.

[Show Queries]