Visio Guy

Visio Discussions => Programming & Code => Topic started by: felsioufy on November 09, 2016, 05:13:24 PM

Title: Detect Which Shape is Attached to a Line
Post by: felsioufy on November 09, 2016, 05:13:24 PM
Hello there,
I face the following task:
within in a VBA-Code I have a shape that represents a dynamic connection between two shapes (Sh1 & Sh2). Is it possible to detect the ID of Sh1 & Sh2 in the VBA code? What method or witch property gives information about what shape is connected to a line?
Thank you in advance for your Help.
Felsioufy
Title: Re: Detect Which Shape is Attached to a Line
Post by: wapperdude on November 09, 2016, 05:27:35 PM
See this post:  http://visguy.com/vgforum/index.php?topic=7527.msg31896;topicseen#msg31896 (http://visguy.com/vgforum/index.php?topic=7527.msg31896;topicseen#msg31896)

Wapperdude
Title: Re: Detect Which Shape is Attached to a Line
Post by: metuemre on November 10, 2016, 06:27:24 AM
Another sample from microsoft https://social.technet.microsoft.com/Forums/office/en-US/bd16a4d7-bbd0-4fb3-93a7-601ffe5eb1c8/sample-code-shapegluedshapes?forum=visiogeneral (https://social.technet.microsoft.com/Forums/office/en-US/bd16a4d7-bbd0-4fb3-93a7-601ffe5eb1c8/sample-code-shapegluedshapes?forum=visiogeneral)
Note the correction in the first comment on same site
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: 50 (show)
Files included: 25 - 925KB. (show)
Memory used: 747KB.
Tokens: post-login.
Cache hits: 8: 0.00095s for 22,292 bytes (show)
Cache misses: 3: (show)
Queries used: 12.

[Show Queries]