Help??! connectionsAdded event Twice??!?!

L

Luke

Hey group.

Having a little trouble with the connectionsAdded Event.
Listening at the page level... in the Process Flow Template
I've drawn a right Pipeline, and drop a Gate Valve on the pipe.
The event is set to CALL ListConnections() and seems to do so
2x2 times (see below)
Does anyone know what's happening here??!!? All I want is to know when
a valve, pipe, or other component has been connected to another
component... but having the connectionsAdded Event fire 4 times makes
this difficult

Help?? --------> Thanks

from Gate valve.34 ??? to Major PipelineR.3 beginX.
from Gate valve.34 ??? to Major PipelineR.3 controlPt_ 1.

from Gate valve.34 ??? to Major PipelineR.3 beginX.
from Gate valve.34 ??? to Major PipelineR.3 controlPt_ 1.

from Major PipelineR.3 end to Gate valve.34 controlPt_ 3.
from Major PipelineR.2 begin to Gate valve.34 controlPt_ 2.

from Major PipelineR.3 end to Gate valve.34 controlPt_ 3.
from Major PipelineR.2 begin to Gate valve.34 controlPt_ 2.
 
J

John Smith

not sure - 2cents
when you connect A to B, don't you also connect B to A so you get the
event fired twice since 2 connections where added?
 
J

John Smith

After some more thought - I think what could be happening is you are
creating 2 connections, (X,Y) and Angle.

Take a look at shape.connections(ii) to see what was connected during the
process.
 
C

Chuck Bowling

If you have the Visio 2002 SDK one of the available tools is a Visio event
monitor. That might give you a clue as to what's going on.
 

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