Visio Guy

Visio Discussions => General Visio => Topic started by: hill041 on December 07, 2018, 09:33:03 AM

Title: Reference shape data from shapes that are glued to the ends of connectors
Post by: hill041 on December 07, 2018, 09:33:03 AM
Dear all,

Is it possible to get shape data from shapes that are glued to the ends of connectors?

For instance, if i have two rectangles with ShapeData Prop.Name=Box1 and Prop.Name=Box2 respectively and connect them to eachother with a connector with Prop.ConnectorName=Connector1

Can i somehow reference the names of the rectangles in the Connector1 shape data? is there a GluedStart or GluedEnd property or similar i can use to get this info?

eg
Prop.ConnectorName=Connector1
Prop.From= GluedStart!Prop.Name
Prop.To=GluedEnd!Prop.Name

I would like to then be able to get a report of all of the connectors on my design and see what each is connected to and build a table like this:

Connector Name      From      To
Connector1              Box1   Box2
Connector2              Box3   Box4
Connector3              Box3   Box5
Connector4              Box4   Box2
Connector...              etc...   etc...

I would prefer to only use the ShapeSheet if possible rather than VBA, I've constructed quite a complex template already and have so far avoided the dreaded Macro Warnings for its users.

Many thanks in advance.

Daniel.
Title: Re: Reference shape data from shapes that are glued to the ends of connectors
Post by: Surrogate on December 07, 2018, 10:18:09 AM
I think this article (https://blog.bvisual.net/2013/05/21/getting-the-name-of-glued-connection-points/) can answer for all your questions!