Reset Dynamic Connectors

J

John

Hi there,

I've got a drawing with several pages of connected shapes using dynamic
connectors. If you alter a single connector using its handles, a right
click allows you to "Reset Connector". Can anyone tell me how to do this
programatically, as I've tried the macro recorder, but all you get are the
result formulae generated by the auto layout settings?

(I'm using Visio Standard v11)

Thanks

John
 
J

John

Hi June,

I'm afraid Undo won't cut it as changes have been made in a previous session
(ie pre opening the file).

It seems a shame that you can do this manually but not programmatically.

Anyway, thanks for your response.

Regards

John
 
M

Mark Nelson [MS]

Many menu items can be invoked programmatically using the Application.DoCmd
method. You must pass the command ID, which is defined in the enum
VisUICmds.

The command ID for Reset Connector is visCmdDynConnReroute (1829).
Unfortunately this does not seem to work in Visio 2003. I'm not sure why.
I did find some related commands that work though. Try these:

visCmdConnectorEffectCurved (1945)
visCmdConnectorEffectRightAngle (1943)
visCmdConnectorEffectStraight (1944 )

These will accomplish the reset, but you should pick the one the matches the
proper routing style for your drawing.
 
J

John

Hi Mark,

That's great. Just what I was looking for. The "Curved" one will work
nicely.

Thanks

John
 

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