I need to cycle through each connector on a page and extract Shape Data from an individual shape or shapes in a container. Extracting the Shape Data is a piece of cake :).
I can identify the connected shapes:
Con ID Con Text Glued Shapes
489 4 Sheet.42 - 0 > Sheet.222 - 0
235 18 Container.319 - 4 > Cloud App Server Sngl.324
10 13 Sheet.58 - 0 > Sheet.222 - 0
11 7 Availability Group - 1 > Cloud App Server Sngl.289
12 8 Container.272 - 3 > Cloud App Server Sngl.278
13 6 Container.272 - 7 > Availability Group - 0
Is there a way to use a connector's 1-D Endpoints info to get a their respective glued shape's IDs, or is there some other way to achieve the same end?
Thanks for any advice.
See the following:
https://msdn.microsoft.com/en-us/vba/visio-vba/articles/shape-connectedshapes-method-visio (https://msdn.microsoft.com/en-us/vba/visio-vba/articles/shape-connectedshapes-method-visio)
https://social.technet.microsoft.com/Forums/office/en-US/7421102b-e7c6-413d-87fe-a523de580d0b/sample-code-shapesconnectedshapes?forum=visiogeneral (https://social.technet.microsoft.com/Forums/office/en-US/7421102b-e7c6-413d-87fe-a523de580d0b/sample-code-shapesconnectedshapes?forum=visiogeneral)
The 2nd entry has more discussion to go with it.
Wapperdude
My diagrams can have one or more connections to individual shapes and containers. Since it's so easy to get the connects collections, I figured that would be the way to.
Thanks. I'll look at ConnectedShapes again.
wapperdude,
Just wanted to say thanks for pointing me in the right direction. Got everything working like clockwork :D
;) You're most welcome. Glad you were able to sort it out. Nice.
Wapperdude
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 - 922KB. (
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: 773KB.
Tokens:
post-login.
Cache hits: 6: 0.00087s for 22,291 bytes (
showget modSettings: 0.00041s - 19982 bytes, get known_languages: 0.00016s - 1277 bytes, get board_parents-0: 0.00010s - 2 bytes, get permissions:-1: 0.00009s - 50 bytes, get theme_settings-1: 0.00010s - 980 bytes, get menu_buttons--1-english: 0.00001s - 0 bytes)
Cache misses: 1: (
showget menu_buttons--1-english)
Queries used: 8.
[Show Queries]