Visio Guy

Visio Discussions => Programming & Code => Topic started by: Michael Dag on November 12, 2008, 12:33:25 PM

Title: Connector no longer repositions on glue???
Post by: Michael Dag on November 12, 2008, 12:33:25 PM
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

Title: Re: Connector no longer repositions on glue???
Post by: Paul Herber on November 12, 2008, 02:50:55 PM
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)

Title: Re: Connector no longer repositions on glue???
Post by: Michael Dag on November 12, 2008, 05:58:33 PM
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)

Title: Re: Connector no longer repositions on glue???
Post by: Michael Dag on November 13, 2008, 09:32:47 AM
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...
Browser ID: smf (is_webkit)
Templates: 1: Printpage (default).
Sub templates: 4: init, print_above, main, print_below.
Language files: 1: index+Modifications.english (default).
Style sheets: 0: .
Hooks called: 49 (show)
Files included: 25 - 925KB. (show)
Memory used: 770KB.
Tokens: post-login.
Cache hits: 6: 0.00122s for 22,291 bytes (show)
Cache misses: 1: (show)
Queries used: 8.

[Show Queries]