Speed improvement

F

Florin Capra

Hello,

I need your advice to improve a little my AddIn performance. Lets me to
explain : the AddIn represent a network with equipments and links
between them. The equipments are represented by a custom shape with
custom properties and Links are represented using Dynamic connectors
with custom properties also. In a page with 140 Equipments and 170 Links
the method that drop all equipments and links and make the connections
between them takes approx 1'40" BUT the main problem is after this
method finished the Visio takes other time to show me the page. The
Connection Add/Delete events are disabled. Also I tried to disable Undo
but without any visible performance.

If you have any ideas how is possible to improve the performance for
this kind of application please help me !

Many thanks for your helps !

Regards
 
F

Florin Capra

Hi,

Yes, i tried but without result. Also a few time take when the custom
properties are set (for dynamic connector I have 18 properties with more
of them as Variable List).

But the main problem is related when page is displayed after the filling
method has finished.

Many thanks !

Regards.
 
M

Mark Nelson [MS]

The final page display time is long only because of the work done to create
the diagram. Your best bet is probably to use DropManyLinkedU to drop all
shapes and connectors on the page. Then glue them together using GlueTo.
Finally make one call to Layout to arrange things if needed. If you are
setting individual properties on a shape, it will take a lot of time.

--
Mark Nelson
Office Graphics - Visio
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no rights.
 
F

Florin Capra

Thank you Mark for your help.

Unfortunately I saw that DropManyLinkedU method was added in Visio 2007
and I am working with Visio 2003. I am connecting shapes with connectors
using GlueTo method. To have an idea about my situation please take a
look : the method (after some improvements using DropMany method and
others) that drop 140 normal shapes and 170 Connectors both with some
properties and connect them takes 50 seconds BUT until the page is
displayed takes other 90+ seconds. I really don't know if I could
improve this part.

Best regards!
 
M

Mark Nelson [MS]

It's not clear what you want me to look at unless you posted code I'm
unaware of.

One potentially helpful tool is the Event Monitor app that comes in the
Visio SDK. I'd be curious to see what it reported during that 90 seconds.
Perhaps your code or another Visio add-on is doing work.

--
Mark Nelson
Office Graphics - Visio
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no rights.
 
S

Senaj Lelic [DE MVP Visio]

Hello,

well in general it helps to improve speed by:
deactivating the Undo (application level)
hiding VIsio or freezing the UI (ShowUpdates)

It helped me in a project a lot already.
 

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