I would like to programmatically(C#) update/replace all shapes of a given visio flowchart(*.vsd). The diagram layout remain the same(all connections, coordinates etc. are the same), but the master-shapes should be different(from different stencil). Any examples, suggestions and ideas are highly appreciated.
Thanks for your suggestions! The source-diagram has many protected shapes that are grouped(+multiple subshapes), so I guess it will be better, if I take all the information for a given source-shape, and then drop a new master from the target-stencil and set these properties. Next, I would take the next Shape and do the same. I would create a new Visio document, since Iām not sure, whether the source Page-ShapeSheet is not customized someway. But I don't know how to do basic steps programmatically in C# e.g.
- how to create new vsd file within C# (maybe application.Documents.AddEx(āā))
- must I then open this document with application.Document.OpenEx, or the document is already open/active
- must I create a new Page within this document -ā¦
In this post: "save and close visio documents visual basic macro " similar steps explained, but in VBA and not in C#.