Custom user action from popup menu is slow

K

Kati Molnar

For some shapes, I have a custom user action available in the popup menu.
When there are only a few shapes and a few pages, the form invoked from the
user action pops up in a second. However, when the Visio document contains
shapes around a 100, the action needs like 10-20 seconds to initialize.

I have 1 GB memory right now. Would increased memory help with this? I would
appreciate any insight about the reason of this lassitude and possible
speed-up.

Kati
 
A

Al Edlund

without knowing/understanding the programming logic behind the "popup menu"
it would be very hard to help with the 'tuning' of making it run faster.
Sounds like it is looking at everything in the document before opening,
which may or may-not be appropriate.
al
 
K

Kati Molnar

I post the solution for others who might have similar problems.

Apparently, the action was sensitive to the number of shapes in a page.

I had 400 shapes in the Visio document, 100 at least in each of 3 pages.
After I had distributed the shapes among more pages (one page contained no
more than 30 shapes now) the action became fast (1 sec) again.

In the action, I used structures like

for each page in Visio.Pages
for each shape in page.Shapes
...
next shape
next page

Kati
 

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