Is there a DGML Viewer?

28k views Asked by At

I've started playing around with DGML for visualizing directed graphs based on some manufauctring process flow data. It works slicker than proverbial snot and is quite easy to generate.

The only problem is that the only DGML viewer I can find is VS.NET 2010. It appears that the viewer is built on MSAGL, but even that doesn't appear to support DGML directly.

Does a standalone DGML viewer exist? Preferably as an embeddable component. Even more preferably as WPF.

4

There are 4 answers

0
Ricardo Maroquio On BEST ANSWER

There is a DGML Viewer in Visual Studio 2019. You can install it via Visual Studio Installer. Just open Visual Studio Installer, click on Modify, select Individual Components, Code Tools, DGML Editor. To create the DGML files from a DbContext on an EF Core application, you can use EF Core Power Tools. The image below is from a DGML generated by EF Core Power Tools and viewed using DGML Editor. I hope it helps.

enter image description here

0
JohnLBevan On

The DgmlPowerTools Visual Studio 2012 package gives you the option to export DGML to SVG:

https://visualstudiogallery.msdn.microsoft.com/46b71f5f-a4d5-4867-9d50-0416f7aefe28

Alternatively, I'm pretty sure given a few free weekends it would be easy to knock up something to convert DGML to HTML (e.g. using HTML5 Canvas to display, or one of the many graphing libraries such as D3.js)...

3
Esther Fan - MSFT On

I encourage you to submit a request by selecting Suggest a feature on this page as further support for a standalone DGML viewer. It might help persuade the product team that there's enough of a demand for one.

3
Ayushmati On

The DGML Editor was not available in Visual Studio 2017 by default so I could not see DGML files visually and only saw them in the xml format. I had to fix this by explicitly installing the DGML editor. Please install it as such: (Tools > Get tools and features... > Individual Component > Code tools > DGML Editor)