Geradeaus.VisioJsonExport
0.1.2
dotnet add package Geradeaus.VisioJsonExport --version 0.1.2
NuGet\Install-Package Geradeaus.VisioJsonExport -Version 0.1.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Geradeaus.VisioJsonExport" Version="0.1.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Geradeaus.VisioJsonExport --version 0.1.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Geradeaus.VisioJsonExport, 0.1.2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Geradeaus.VisioJsonExport as a Cake Addin #addin nuget:?package=Geradeaus.VisioJsonExport&version=0.1.2 // Install Geradeaus.VisioJsonExport as a Cake Tool #tool nuget:?package=Geradeaus.VisioJsonExport&version=0.1.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
VisioJsonExport
JSON export that follows the Visio object model. Allows you to process a document without a Visio application.
The export does only contain specific data like:
- User defined cells
- Properties
- Connections
The export does not contain common data like:
- Regular ShapeSheet cells (positions, colors, etc.)
In future we can extend data as reuired.
Usage
Export in .NET
For export we provide a NuGet package: https://www.nuget.org/packages/Geradeaus.VisioJsonExport
Geradeaus.VisioJsonExport.ExportHandler exportHandler = new Geradeaus.VisioJsonExport.ExportHandler(Globals.ThisAddIn.Application.ActiveDocument);
exportHandler.Parse();
exportHandler.Export(@"C:\Temp\VisioExport.json");
Process in Python
For processing in Python we provide a package on PyPi: https://pypi.org/project/visio-json-export
import visio_json_export
visio = visio_json_export.load_file(r'C:\Temp\VisioExport.json')
for page in visio.document.pages.values():
for shape in page.shapes.values():
for row_name, user in shape.user_rows.items():
print(page.name + ' -> ' + shape.name + ' -> ' + row_name + ' = ' + user.value)
for prop in shape.prop_rows.values():
print(page.name + ' -> ' + shape.name + ' -> ' + prop.label + ' = ' + prop.value)
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net48 is compatible. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.8
- Newtonsoft.Json (>= 13.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Added Layers