Performance - Drop many shapes and setting the properties from add-in (C#)

Hi guys

In my add-on I import different files to Visio.

It takes a lots of time to import because of Drop method and setting cells values.

Is the any way to make it better? For example first setting shape cells and then drop it?

Or turning off visio calculations, drop all shapes and set cells, and then tell visio to calculate all cells formulas?

Thanks

Danesh

November 28th, 2014 11:40pm

Yes there is:

DropMany - drop many shapes at once

SetFormulas - set all formulas at once

See here more details:
http://blogs.msdn.com/b/mailant/archive/2004/09/22/233082.as

November 29th, 2014 2:19am

Until the item is on the page it doesn't exist as a Visio shape, so you have to drop the shape first.

What type and size of files are you adding?

November 29th, 2014 3:02am

Thank you for your response.

It's an import features. files could be more than 5 pages and more than 60 shapes in each page.

Free Windows Admin Tool Kit Click here and download it now
December 2nd, 2014 1:06am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics