Event blocking

Started by llmmnnoo2002, July 27, 2008, 02:55:34 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

llmmnnoo2002

Hello everyone,

I realized by using the "Visio Event Monitor" AddOn tool that I'm getting many many many FormulaChanged and CellChanged events firing in connectors when dragging and dropping shapes in my drawing, as shown in the example below:

37540 FormulaChanged Connector.360!Geometry1.Y20 -15.9140834829105=-404.21772046593 mm [/doc=1 /page=1 /shape=Sheet.480 /shapeu=Sheet.480 /sec=10 /row=20 /col=1]
37541 CellChanged Connector.360!Geometry1.A20 -0.032808398950138=-0.8333333333335 mm [/doc=1 /page=1 /shape=Sheet.480 /shapeu=Sheet.480 /sec=10 /row=20 /col=2]
37542 FormulaChanged Connector.360!Geometry1.X21 9.95941139221306=252.96904936221 mm [/doc=1 /page=1 /shape=Sheet.480 /shapeu=Sheet.480 /sec=10 /row=21 /col=0]
37542 CellChanged Connector.360!Geometry1.X21 9.95941139221306=252.96904936221 mm [/doc=1 /page=1

I am only dragging one shape but it triggers the events of many other shapes, especially connectors, which are not connected to the dragged shape.

These event are slowing Visio to a halt for long periods of time, and therefore I want to block them. Is there a way to tell Visio not to update the other connectors from one of the menus perhaps ? I looked but nothing worked.
Is there a cell in the ShapeSheet of a connector which controls such behavior ?
If not, can anyone provide a code example ?

Any help would be most helpful.
Thanks


Lars-Erik

There is no way to block certain event using the build in features in Visio.

I don't think Visio will move connectors unless they are conected in SOME way.
Create a new document, copy some connectors and some shapes you are using into the new document, dont copy shapes + conenctors together, do it sepperate. And see if the events still fire.

vojo

The only time I have seen "slowness" is when there is something like 1000 shapes being affected on the page.  I have shape groups with 50 shapes inside and number of user cells per shape around 20-50.

This brings up another issue.   If a group has about 10 shapes or more....dynamics dont work.   In essence, once you start to move the shape, only the group outline is visible until you let go of mouse button.  Then shapes come back at new location.

Frankly, unless you want to do alot of shape customization via custom properties / action buttons (like the pain I go thru)...you are better off getting the shape the way you want and copy/paste as a JPEG or EMF...then add connector points to that image via its shapesheet.  Of course the downside is a stencil with a bizzilion shapes to cover all possibilites (color, feature, action, etc).

Visio Guy

There are options under Format > Behavior > Connector that allow you to change the routing behavior of connectors. You can also right-click individual connnectors and change settings. File > Page Setup also has a Layout tab.

When you run the Event Monitor, the tool signs up for all the events you are seeing. So if you run EventMon, YOU are slowing Visio down, in some respects. Visio won't fire these events if no outside utilities are asking.

If you have shapes that shouldn't be routed-around, like say, a Title Block or a notation, you can set these to Do not layout and route around under Format > Behavior > Placement.
For articles, tips and free content, see the Visio Guy Website at http://www.visguy.com
Get my Visio Book! Using Microsoft Visio 2010

llmmnnoo2002

Problem solved eventually: in the Page Setup menu, in the Layout and Routing tab, I changed Line Jump property to 'None' (same as setting the LineJumpCode cell formula to '0' in the Page Layout section of the Shape Sheet of the page). Dragging shapes now takes about 1 second instead of the minutes I had to wait before the change.

Many thanks for your replies.