How to get Shape Data - the swimlane - of Connected Shape or connector end?

Started by MacGyverRick, January 28, 2021, 10:26:12 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

MacGyverRick

Hi, I've process flow "task" shapes connected using the same arrow type going along and across various swimlane "roles". Meanwhile, I've intentionally distinctly different arrow (line) shape travelling down past all these roles... connecting to shapes contained in specific "system" swimlanes down below.

Cumbersome to scroll up-n-down to check what "system" every "task" is linked to, how do I get the "Task" shapes' Shape Data to contain (and ultimately display) the name of the "System" swimlane that the System's shape is sitting in?

Thinking... I don't necessarily need to look in the System shape, as even the end point of the connector line might do (as dipping into a named swimlane).

Googling I read many discussions, including: 
http://visguy.com/vgforum/index.php?topic=8116.0
https://social.technet.microsoft.com/Forums/office/en-US/7421102b-e7c6-413d-87fe-a523de580d0b/sample-code-shapesconnectedshapes?forum=visiogeneral
https://docs.microsoft.com/en-ca/office/vba/api/Visio.Shape.ConnectedShapes

... specifically the "ConnectedShapes" method... but for my use case, am seeking a non-VBA way.

Possible? Imagined? :-\

Presently I use a working IFERROR(CONTAINERSHEETREF(1,"Swimlane")!User.VISHEADINGTEXT,"") as a displayed text subshape from Shape Data Prop. in both the grouped task master shape and in the grouped system master shape. So thinking along these lines?

Running (swimming? lol!) in Visio 2016 Pro

Thanks for any guidance