Is there a DGML Viewer?

℡╲_俬逩灬. 提交于 2019-12-10 00:53:44

问题


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.


回答1:


I encourage you to submit a request at Microsoft Connect as further support for a standalone DGML viewer. It might help persuade the product team that there's enough of a demand for one.




回答2:


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)




回答3:


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)...




回答4:


Take a look at Graphviz DOT. It can generate many different graphical output formats including PNG, JPG, PDF, SVG. It uses syntax similar to DGML.

https://www.graphviz.org/



来源:https://stackoverflow.com/questions/5206450/is-there-a-dgml-viewer

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!