Questions tagged [dgml]

DGML is an XML-based file format for directed graphs.

32 questions
31
votes
4 answers

Is there a DGML Viewer?

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…
dkackman
  • 15,179
  • 13
  • 69
  • 123
8
votes
1 answer

Directed Graph Markup Language No Longer Recognized with Visual Studio 2017

After installing Visual Studio 2017, I just noticed that my Directed Graph Markup Language(.dgml) files can no longer be opened in a visual-designer for editing; it only opens to see the internal format of the file. Does anyone know how I can fix…
Krythic
  • 4,184
  • 5
  • 26
  • 67
7
votes
0 answers

Can I export a Visual Studio CodeMap (.DGML file) to Visio?

I'm trying to get my head around a rather large solution and I find that Visual Studio's CodeMap feature to be an invaluable aid. However I'd like to take sections of the generated Codemap and from this, generate some pretty documentation from it.…
Mike Wilson
  • 397
  • 1
  • 3
  • 11
4
votes
1 answer

How do you print a dgml file?

I've got a dgml file created in Visual Studio 2017 that contains a schema for a database. We refer to this regularly in our team so I want to print it out. How can I do this? I've tried the File->Print menu, but it is grayed out. Also I've tried…
Scott Langham
  • 58,735
  • 39
  • 131
  • 204
4
votes
2 answers

How to open DGML file in Visual Studio 2010 Professional

How do I open a .dgml file using Visual Studio 2010 Professional so that I see the DGML graph visually? I have read here that VS 2010 supports DGML viewing, but whenever I drag my file into Visual Studio I am presented only with the XML editor.
pauldoo
  • 18,087
  • 20
  • 94
  • 116
3
votes
2 answers

In what way is the DGML graphic coordinate oriented?

Context I am trying to convert a DGML graph into an SVG. I am using Javascript to read and parse the DGML Nodes and Links using Jquery. I created a DGML graph using Visual Studio 2017 (it has an interactive inbuilt editor). Essentially I need to…
sohamangoes
  • 129
  • 2
  • 7
3
votes
0 answers

How do you edit nodes properties in Visual Studio 2017 DGML Editor?

Not sure if the editor isn't working or the documentation sucks, but I cannot seem to figure out how the heck to edit nodes. I can add a new node, label it, and connect nodes. But I cannot add a category to the node, edit the node properties, or…
sk84z
  • 193
  • 1
  • 3
  • 10
3
votes
1 answer

Exporting Large DGML Diagram to XPS

I currently have a fairly large application (about 30k lines of code). I generated a dependency graph using the architecture tool within VS2010. I am trying to export it to XPS, as it states I can, and it will stop at about 300KB, and will not open…
Logan B. Lehman
  • 4,867
  • 7
  • 32
  • 45
2
votes
1 answer

Why xmlns appears at the parents' node in DGML file writing?

When I save a DGML file, unnecessary XNamespace appears. This is a code of saving DGML file. public void saveDGMLFile() { Debug.Log("Save DGML file!"); XNamespace xNamespace = "http://schemas.microsoft.com/vs/2009/dgml"; xDoc = new…
Masahiro
  • 155
  • 9
2
votes
0 answers

Build directed graph on windows forms with data from DB

I have an objects with data, and each object connected to other objects. (Like object1->object2, object2->object3, object1->object3). For example objects and connections represented by two classes: class Object { public int Id{get;set;} …
Paul
  • 47
  • 8
1
vote
0 answers

How to view large DGML or generate smaller DGML from Entity Framework Core

I have a very large scaffolded database (> 1000 tables) and have generated the dgml file for it using using (var myContext = new ModelContext()) { System.IO.File.WriteAllText(System.IO.Path.GetTempFileName() + ".dgml", …
MrD at KookerellaLtd
  • 2,412
  • 1
  • 15
  • 17
1
vote
0 answers

Visual Studio code map does not work - how to transform vb code snippets into a dmgl directed graph / code map using xml and xslt

I can't get Visual Studio to model/map orphaned/discrete VB function code. I am working with a legacy application that is written in VB.Net. Most of the application code/executable is opaque to the end user, but it has user-space customization…
1
vote
2 answers

Is it possible to load DGML file with the function of XDocument like loading XML file?

I would like to load DGML file to a C# code like loading XML files. How should I write to load them? I could not find good examples about DGML file loader, however, I found XML file loader examples. So I've tried to load DGML files like loading XML…
Masahiro
  • 155
  • 9
1
vote
1 answer

Executing custom code on click on DGML node

Is it possible to execute a piece of C# code when the node of a DGML diagram is double clicked? It is possible to navigate to an url, I could create a local web site (on127.0.0.1) where you request an URL which executes a command. Problem is that I…
Serge van den Oever
  • 4,340
  • 8
  • 45
  • 66
1
vote
2 answers

Custom node and links in .dgml editor/viewer

I am trying to use Visual Studio DGML viewer / editor to build a directed graph. I would like to be able to add nodes and links with pre-defined custom properties. As of now, if I right click on the DGML document, I can add a Generic Node with no…
ben
  • 381
  • 1
  • 3
  • 14
1
2 3