strange rerouting behaviour of connectors

R

RobM

Hi!

I have some problems with the Visio connectors.

I use Visio (2003) within a c#-application. This application gathers
information from a database to draw models in Visio.
To connect shapes I don’t use the glueTo method, but I connect them manually
with various cell entries to be able to connect the shapes and define the
exact path (in the geometry section of the shape sheet) in one command
(setResults) and for many shapes at the same time.
This is fast and works quite fine so far. But sometimes there is a strange
rerouting behaviour of the connectors that I absolutely don’t want (nor
understand…).

An example can be found in the following two files (just click the download
button):
http://www.file-upload.net/download-615992/model_reroute.VSD.html
http://www.file-upload.net/download-615995/model_noreroute.VSD.html
It is a copy/paste of exactly the same part of the model. If I draw a new
connection from the event to the function in one case the other connection
reroutes, in the other case it doesn’t. Comparing the two shape sheets of the
connector I couldn’t find any difference. I’ve been sitting on this problem
for hours. Maybe there is someone who can help me? Thanks!

Best regards,
RobM
 
R

RobM

Thanks for your response! Well, I tried on Visio 2007 as well and I had the
same problem, except for the direction of the rerouting.

On the following picture you can see the different behaviour.
http://www.file-upload.net/view-618084/Visio---screen-shots.JPG.html
The version in the middle is what I want in this case. It's the same in both
Visio versions. On the sides you can see what happens with the connector in
the other Visio file.
 
R

RobM

Yes, I have done so before. That worked in this case, but I had problems in
some other cases (see example below). That's why I am posting here, because
either version has different cases where it (sometimes) works as expected and
others where it (sometimes) doesn't, although the values I set are equal.

I'm sorry, that I'm not able to specify more exactly.
If it helps, I can give another example (not copy&paste but reconstructed):
http://www.file-upload.net/download-618369/model2.vsd.html
There are four steps: add the connector and manipulate it three times.
The application I use has undo/redo methods (not the ones from Visio).
The fourth step is different as shown in the given file. Depending on
whether I undo/redo the adding of the connector shape or just the following
steps, it draws the left version (as I want it) or the right one.
This happens, if I set ConFixedCode to 2. If I set it to 1, always the left
version is chosen (which is fine, but causes the previously described problem
at the other part of the model)
 
R

RobM

Ok, found a solution. Setting the value of the ObjType Cell of the connected
shape (not the connector!) to 1 (visLOFlagsPlacable) solved the problem.
Don't ask me why...
Greetings.RM
 

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