Author Topic: Known Visio add-in issues compared to VB.NET  (Read 1150 times)

0 Members and 1 Guest are viewing this topic.

Visisthebest

  • Sr. Member
  • ****
  • Posts: 376
Known Visio add-in issues compared to VB.NET
« on: May 07, 2021, 05: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!
Visio 2021 Professional