Visio Guy

Visio Discussions => Programming & Code => Topic started by: Thatgoblin on October 26, 2014, 05:13:47 PM

Title: Get Connector string between two Shapes
Post by: Thatgoblin on October 26, 2014, 05:13:47 PM
Assuming the 'Source' shape is selected from the image below, how can I get the string ('Relation') from the connector?

(http://puu.sh/crsEZ/7f22dfb9c1.png)

From what I've read there are ConnectorFormat and Connector properties for Shapes but there is not any helpful information regarding using them.

Thanks!
Title: Re: Get Connector string between two Shapes
Post by: Yacine on October 26, 2014, 07:27:35 PM
Would this link help?
http://visguy.com/vgforum/index.php?topic=6012.msg24320;topicseen#msg24320
Title: Re: Get Connector string between two Shapes
Post by: Thatgoblin on October 26, 2014, 09:24:27 PM
Yes! This helped me out, thank you.

For anyone reading this later, you can use Shape.FromConnects(i).FromSheet to get the the connector Shape object. With this you can use Shape.Text to get the string.
Title: Re: Get Connector string between two Shapes
Post by: Yacine on October 27, 2014, 07:55:03 AM
I am having my difficulties too to remember the path to the desired object.
So I tried to sketch that model.
Everybody is welcome to enhance it.