Problems: Shape.Spatial* / "no-glue" area

K

Kari Yli-Kuha

Hi all,

I have two (unrelated) problems in our process control related
Visio application:


1) Shape.SpatialNeighbors and Shape.SpatialRelation work unreliably
with some, but not all, of our shapes, either causing an exception
or failing to find the shape. That we can live with because
Shape.SpatialSearch seems to work.

A sample VisioSpatialProblem.vsd is included in a zip if anyone has
time to look at it. The shape in question is the monitor shape.

The VBA macros contain a more detailed description of the problem.



2) a more serious problem is in the same zip as a sample
VisioConnectionProblemsWithinArea.vsd drawing.

To me it seems that if a drawing gets complex enough (this is a
system layout of one of our customers - I've removed the texts to
not reveal the identity of the customer) Visio simply fails to
find the underlying connection point to glue to in some areas of
the drawing. Outside these areas everything's OK.

I've saved all the Visio settings in registry to pinpoint and solve
the problem but couldn't find anything appropriate to fiddle with.

As a workaround to this problem we at the moment "force glue" the
dynamic connector to the nearest connection point through automation,
but I hope there is a better way.


If anyone has time and interest to look at these little annoyances,
there is a zip at http://www.sqc.fi/~ylikuka/VisioProblems.zip
which contains both of the above sample drawings.

Warning: the zip is ~5MB

greetings,
/C
 

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