How do you know the connection belongs to the line

Started by xiamen168, June 29, 2015, 06:34:03 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

xiamen168

How do i know a connect belongs to the same connector?

for each c in activepage.connects
  debug.print c.fromcell.localname
  debug.print c.tocell.shape.text
next

i got the result below.
----------------
BeginX
M1
EndX
M2
----------------
but i want to prove M1,M2 in the same line!

thanks!

Visio Guy

When you examine a Connect object, the "FromSheet" is the shape that is actually glued. This is usually a 1D connector, but could be a regular shape that has a control handle glued to something, or could be a shape glued to a guide. The "ToSheet" is the thing to which the connector is glued.

So you can find Connects objects where the cnn.FromSheet.ID are the same.

See this article/download: http://www.visguy.com/2009/04/22/analyze-connectivity-between-process-flows/

Analyzing the Connects collections can seem a bit backwards, and difficult, however.

You can also look at individual shapes and analyze their FromConnects collections. This reports on the things that are, say, connected to a box, whereas when you look at Page.Connects, you are essentially looking at all of the connectors on the page, and you have to kind of work backwards to glean the structure of your diagram.


For articles, tips and free content, see the Visio Guy Website at http://www.visguy.com
Get my Visio Book! Using Microsoft Visio 2010