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.
Assuming you have V2010 or newer, there is pathlength shapesheet function. See https://learn.microsoft.com/en-us/office/client-developer/visio/pathlength-function (https://learn.microsoft.com/en-us/office/client-developer/visio/pathlength-function)
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 (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:
(https://i.postimg.cc/BZg6dV8R/image.png)
So it works! 👏👍🥰
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.
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.
(https://i.postimg.cc/ZqWvZtBw/image.png)
I knew the the straight line distances were off, but I wasn't sure by how much. It's about 20%.
(https://i.postimg.cc/K8nsNwvs/image.png)
I think it's pretty cool! Thanks for the help.
Browser ID: smf
(is_webkit)
Templates: 1:
Printpage (default).
Sub templates: 4:
init,
print_above,
main,
print_below.
Language files: 1:
index+Modifications.english (default).
Style sheets: 0:
.
Hooks called: 52 (
showintegrate_autoload, cache_get_data, integrate_pre_load, integrate_load_session, integrate_verify_user, cache_get_data, integrate_user_info, integrate_load_board, cache_get_data, integrate_board_info, cache_get_data, integrate_allowed_to_general, integrate_pre_load_theme, cache_get_data, integrate_allowed_to_general, integrate_simple_actions, integrate_allowed_to_general, integrate_load_theme, integrate_pre_log_stats, integrate_actions, integrate_pre_parsebbc, integrate_bbc_codes, integrate_bbc_print, integrate_post_parsebbc, integrate_pre_parsebbc, integrate_bbc_print, integrate_post_parsebbc, integrate_pre_parsebbc, integrate_bbc_print, integrate_post_parsebbc, integrate_pre_parsebbc, integrate_bbc_print, integrate_post_parsebbc, integrate_pre_parsebbc, integrate_bbc_print, integrate_post_parsebbc, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general, integrate_menu_buttons, integrate_current_action, integrate_theme_context, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general)
Files included: 25 - 925KB. (
show/home/iw0lkfe3x6cq/public_html/vgforum/index.php, /home/iw0lkfe3x6cq/public_html/vgforum/Settings.php, /home/iw0lkfe3x6cq/public_html/vgforum/cache/db_last_error.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/QueryString.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Subs.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Subs-Auth.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Errors.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Load.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Security.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Subs-Compat.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Subs-Db-mysql.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Cache/CacheApi.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Cache/CacheApiInterface.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Cache/APIs/FileBased.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Subs-Charset.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Unicode/Metadata.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Unicode/QuickCheck.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Session.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Logging.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Class-BrowserDetect.php, (Current Theme)/languages/index.english.php, (Current Theme)/languages/Modifications.english.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Printpage.php, (Current Theme)/Printpage.template.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Unicode/CaseUpper.php)
Memory used: 769KB.
Tokens:
post-login.
Cache hits: 6: 0.00106s for 22,291 bytes (
showget modSettings: 0.00047s - 19982 bytes, get known_languages: 0.00021s - 1277 bytes, get board_parents-0: 0.00014s - 2 bytes, get permissions:-1: 0.00011s - 50 bytes, get theme_settings-1: 0.00011s - 980 bytes, get menu_buttons--1-english: 0.00003s - 0 bytes)
Cache misses: 1: (
showget menu_buttons--1-english)
Queries used: 8.
[Show Queries]