Project Description
An XML based Visio automation project using C#. This C# .Net project converts xml files into Visio diagrams dynamically. Ideal for simple use cases. Extendible. The placement of Visio components follows a zig-zag pattern with 2 items in a row. Edit Config files to control input file location. Edit input.xml to manipulate Visio drawings. Edit SimpleVisioStyles vstx/vss files to extend shapes. The goal is simplicity and so expect features trade off with ease of use.
**Dependency: **
LINQ
.Net 4.5
Visio 2013+
** Usage: **
1. Download the files and unzip or (Go to source code->Downloads->unzip).
2. Navigate bin\debug folder.
3. Locate SimpleVisio.exe.config file and edit the file to point to the correct location of
a. input.xml
b. SimpleVisioStyles.vstx
4. Run SimpleVisio.exe to see Visio being automatically generated from the xml.
5. Save from Visio. The application does not save the files.
** input.xml **
1. This is the input file for the Application to draw Visio diagrams.
2. Container is the outer block diagram
3. Component are visio concept entities e.g) Server, Router etc.
4. types represent the stylesheet element names
5. names represent Label
6. Connector is the connecting line between a component and another component/container.
7. ContainerConnector is the connecting line between a container and another component.
8. id for Component/Container represents that element id.
9. id for a connector/ContainerConnector represents a line between parent element and the element containing this id as target.
10. enable = false/true to represent if you need an outer block surrounding the elements to be drawn.
11. All components must reside in a container regardless of if enable = false/true.
12. Take care to connect the ids carefully.
** SimpleVisioStyles.vstx **
1. This is the starting empty template for the Application on which the diagrams are drawn.
2. All the elements like Server/Router must reside within here.
3. To add more elements open SimpleVisioStyles.vstx file in visio, then open SimpleVisioStyles.vss stencil within that file. Now open other stencils and drag and drop items to the stencil and save them back as SimpleVisioStyles.vstx and SimpleVisioStyles.vss
** Source Code **
1. Use Visual Studio 2013.
2. Open the solution files.
3. Add references to Visio com files (must have visio installed. Check versions for visio issues).
4. Currently in debug mode and .Net 4.5+ target.
**Note: **
1. Limited testing/validations.
**References: **
* * * * * ToDo * * * * *
**Enhancements: **
* * * * * ToDo * * * * *
At the moment, I am too busy to care about the project. If somebody is interesting to do this job, please open discussions. I will try to have a look to the discussions from time to time, but I cannot promise to respond quickly. Sorry