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

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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
.



Relevant Pages

  • Re: looking for electronics help in Seattle area
    ... to the "drawing" in the center left. ... the pin numbers on the device ... that pin 1 on the 555 has a wire running off to "B"; ... and a third connection to the "-" side of a 10uF capacitor ...
    (sci.electronics.design)
  • Re: Resources Sought - pas, Someone & Mike D
    ... to populate the Db with data on the pipe sections. ... The user wont alter the drawing in any way. ... Likely to need some library shapes too. ... > area with connection information such as whether it's male/female, ...
    (microsoft.public.vb.winapi.graphics)
  • Re: Resources Sought
    ... > The drawing will place these items on the page following the layout of the ... Likely to need some library shapes too. ... area with connection information such as whether it's male/female, diameter, angle, whether it's sealed/requires a seal and so on. ... If I were approaching this problem then I would create a class for each pipe shape and all these shapes would implement an IPipe ...
    (microsoft.public.vb.winapi.graphics)
  • Re: Ritual use of masks and masking
    ... :> I was drawing a connection of intent from your phrase "but what I ... :> deliberately providing me with rope. ... I was, as I say, drawing a connection. ...
    (uk.religion.pagan)
  • Re: RCX IR Tower communication failure
    ... connection. ... I used HyperTerminal to test the IR tower: if works fine but I don't ... I could make a pin to pin drawing if you need it. ...
    (rec.toys.lego)