connector text based on source & destination shape types

V

Vera

I need to set connector text depending on the types of shapes that are being
connected. I see "_XFTRIGGER(Process!EventXFMod)" in the BegTrigger cell, for
example, but can't figure out how to reference the source shape type
("Process") in other shapesheet formulas. Please help? thanks, vera
 
M

Mark Nelson [MS]

There is not a way to generically reference the shapes a connector is glued
to. You must have specific references to other shapes such as Process or
Sheet.5. Since you won't know what shapes you are glued to at the time you
are designing the connector, this is not a behavior you can achieve using
just the ShapeSheet.

You would need to write code to handle Visio's ConnectionAdded and
ConnectionDeleted events. Then walk the Connects object on the connector
shape to find out what shapes are glued to.

--
Mark Nelson
Office Graphics - Visio
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no rights.
 
V

Vera

Thanks Mark for the confirmation and good advice. I'm happy to report that
it's working programatically now. thx, vera
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top