Connector no longer repositions on glue???

Started by Michael Dag, November 12, 2008, 12:33:25 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Michael Dag

Help...

scratching my head for the past day and can't find why this is not working anymore

I drop a new connector using page.drop(connector, 0, 0) so it appear in the bottom left corner of my page
connection ends are green, then I glue the connector to 2 shapes and
see the connector ends change from green to red blocks

also when I select the shapes (connector or one the two connected shapes and run code to show the connectios)
the shapes are connected... except...

the connector is still in the bottom left corner of my page and not "showing" up between the 2 shapes it is
connected to...

I have been going over a lot of code, but can't find what I changed....

what could be causing this???

I already checked Screenupdating = true, deferrecalc = false


Paul Herber

If you save the drawing and then reload it does it get drawn correctly?

Application.ProcessMessages?
(I'm not sure if it's called exactly that)

Electronic and Electrical engineering, business and software stencils for Visio -

https://www.paulherber.co.uk/

Michael Dag

nope.

all formula's seem to be set ok, except the actual values (coordinates) do not match
with what they should be according to the formula's... ?

the Begin/End formulas are set to: _WALKGLUE(EndTrigger,BegTrigger,WalkPreference)
the End and BegTrigger are set to: _XFTRIGGER(...connectedobject...!EventXFMod)


Michael Dag

Yeah! found it!!! On the drop shape had changed the behaviour to "do not layout and route around",
this caused the objtype to change from 1 to 4 and caused the connectors to behave as described above...

reset the value on my master in the stencil and now all is fine again...