Visio Guy

Visio Discussions => Programming & Code => Topic started by: Visisthebest on May 07, 2021, 10:55:44 AM

Title: Known Visio add-in issues compared to VB.NET
Post by: Visisthebest on May 07, 2021, 10:55:44 AM
As I convert code from VBA to a Visio add-in, are there issues other than performance to be aware of?

For 'interop-intensive' operations, meaning doing a lot of reading and writing of shape cells or dropping/deleting shapes, I am aware of the lower performance of add-ins compared to good old VBA.

So in testing converted code, I will use the .net framework StopWatch to test performance of these parts of the code:
https://www.dotnetperls.com/stopwatch-vbnet

But in this stage it is good to be aware of other issues that add-ins may have that VBA doesn't have, so I can plan for them and work around them in this stage.

Many thanks for sharing your knowledge and experience in this regard!