Coordinates of dynamically created Connection Points

P

Petr Gotthard

Hello,
when using the dynamic (walking) glue in Visio 2003 the gluee's connection
points are automatically created with coordinates e.g. X="Width*0.15",
Y="Height*0".

I need dynamic connection points that does not change when the shape
width/height changes. Please, is there a way how to change the dynamic glue
so the automatically created connection points had absolute coordinates e.g.
X="2.5mm" instead of X="Width*0.15"?

Many thanks for any advise.
Petr Gotthard
 
M

Mark Nelson [MS]

Dynamic glue does not create connection points. Dynamic glue connects to
the shape itself. Perhaps you are trying to describe another action?

--
Mark Nelson
Office Graphics - Visio
Microsoft Corporation

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

Petr Gotthard

I have enabled "Snap & Glue -- Glue to -- Shape geometry" (this is what I
understood as a dynamic glue). Then, connectors can be glued to the visible
shape of the shape. When a connector is glued to a shape in this way, a new
connection point is added to the ShapeSheet of this shape.

Petr Gotthard
 
M

Mark Nelson [MS]

Hi Petr,

Glue to Shape Geometry is different from Dynamic Glue. The first creates
connections points as need to form "static" glue connections. The second
glues to the shape as a whole without creating any connection points.

To convert the glue formulas added by Visio with Glue to Shape Geometry, you
will need to write some code. You could write a macro that scans all the
shapes and fixes up their glue formulas, or you could write an add-on that
listens for glue events and fixes up the formulas as they are created.
There is no setting to get Visio to do this automatically.

--
Mark Nelson
Office Graphics - Visio
Microsoft Corporation

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

David Parker

TO expand on what Mark says, Petr, you have noticed the special AutoGen
connection points, which can be recognized by the Value TRUE using CellsSRC,
eg:

myShape.CellsSRC(Visio.visSectionConnectionPts,MyShape.Section(visio.visSectionConnectionPts).Count-1,visio.visCnnctAutoGen).Formula

Visio should automatically delete these when the user disconnects the
connector from it (although it sometimes doesn't)

You will need to listen, in code, for connections and then update the X and
Y cell formulae to be pinned as you want them to be.
 

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