M
Mats-Lennart Hansson
Hi,
I am currently developing a Visio solution where one of the features
includes importing shapes and pages into an empty document. I have noticed
that importing a large number of shapes (i.e. about 5000) is very time
consuming. I have optimized my code using DropMany, DeferRecalc, ShowChanges
etc, which increased the performance a lot but not enough I think... I have
thought of generating a Data Diagram ML structure instead and then save this
XML as a Visio document in order to import the shapes. I have a feeling that
if this was possible it would be faster than using the Visio object model.
Do you think this is a good idea?
Another thought: How do you handle upgrades of Visio applications like mine?
I mean, assume that someone spends a month to create a huge Visio docucment
with thousands of shapes. Then, due to an upgrade of the Visio application,
all of the shapes become obsolete and need to be changed in order for the
application to work. For me, it is no problem to update the Visio stencil
where all shapes originate from. But, is there a way to make changes to the
stencil automatically apply to shapes drawn in the Visio document?
/Mats-Lennart
I am currently developing a Visio solution where one of the features
includes importing shapes and pages into an empty document. I have noticed
that importing a large number of shapes (i.e. about 5000) is very time
consuming. I have optimized my code using DropMany, DeferRecalc, ShowChanges
etc, which increased the performance a lot but not enough I think... I have
thought of generating a Data Diagram ML structure instead and then save this
XML as a Visio document in order to import the shapes. I have a feeling that
if this was possible it would be faster than using the Visio object model.
Do you think this is a good idea?
Another thought: How do you handle upgrades of Visio applications like mine?
I mean, assume that someone spends a month to create a huge Visio docucment
with thousands of shapes. Then, due to an upgrade of the Visio application,
all of the shapes become obsolete and need to be changed in order for the
application to work. For me, it is no problem to update the Visio stencil
where all shapes originate from. But, is there a way to make changes to the
stencil automatically apply to shapes drawn in the Visio document?
/Mats-Lennart