Preventing rerouting of dynamic connector

A

Andy

I have a Visio diagram representing an electrical network which I
supply with a stencil containing the various electrical symbols. If the
stencils are changed I have a mechanism to update my shapes on the
diagram using the shapes in the new stencil. Note, the positions of the
connectors on these shapes do not change.

For each shape, I drop the new shape on the diagram on top the existing
shape and copy over any required data. I then glue the dynamic
connector that was connected to the old shape onto the new shape.
Finally, I delete the old shape.

This works perfectly, 99% of the time. However, ocasionally Visio
decides to reroute the connector (more often when its a short straight
line). Ths can be all across the diagram or sometimes not even visible.
If I move one of the spurious segments and then do a Reset Connector
then the connector is redrawn correctly.

I have tried changing the ConFixedCode on the connector to never
reroute etc, but to no avail.

Anyone have any suggestions how I can prevent my dynamic connectors
from rerouting if I need to replace my shapes.

Thanks
 
B

Butch Snyder

Andy,

When this has happened to me, I usually right-click on the line. I then go
to Format > Behavior > Connector > Reroute > Never. That should do it.
 
A

Andy

Thanks, but that has no effect when i'm replacing the shapes
programatically. It still chooses to occasionly reroute the connector
that is being glued.
 
A

Andy

For no particular reason, I thought I would try a DoEvents call after
re gluing each of my connectors. This slows down the update of my
shapes, but the re gluing of the connectors now seems to behave itself.
 

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