Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider ModelNode.ToDotGraph() method #845

Closed
SubPointSupport opened this issue Jun 2, 2016 · 1 comment
Closed

Consider ModelNode.ToDotGraph() method #845

SubPointSupport opened this issue Jun 2, 2016 · 1 comment
Assignees
Milestone

Comments

@SubPointSupport
Copy link
Contributor

It might be a good idea to have an extension to export current model into DOT format.
That would allow to visualize the model enabling easy understanding of the final graph.

@SubPointSupport SubPointSupport self-assigned this Jun 2, 2016
@SubPointSupport SubPointSupport modified the milestone: 2016-07-04 Jul 3, 2016
@SubPointSupport SubPointSupport modified the milestones: 2016-08-08, 2016.08.15 - 1.2.8 release Aug 6, 2016
@SubPointSupport SubPointSupport changed the title Consider SPMeta2Model.ToDot() method Consider ModelNode.ToDotGraph() method Aug 8, 2016
@SubPointSupport
Copy link
Contributor Author

Implemented as DefaultModelDotGraphPrintService with the following API:

Console.Write(model.ToDotGraph());

The output looks as following, use http://www.webgraphviz.com to see the result graph

digraph {
    compound = "true"
    newrank = "true"
    rankdir = "BT"
    subgraph "root" {
        "[root] iqKRviluQzo4GIX4L1a2PQ" [label = "[WebDefinition] - Title:[] Description:[] Convert(p.LCID):[1033] Convert(p.UseUniquePermission):[False] Url:[/] WebTemplate:[] CustomWebTemplate:[]", shape = "box"]
        "[root] 5UlJoxMeuD7AzTOCZ6zq9w" [label = "[WebDefinition] - Title:[ae2fba0649964a61bcd167fe2ad174c7] Description:[4b9cb22997074acc8b5446fbe90a252b] Convert(p.LCID):[1033] Convert(p.UseUniquePermission):[False] Url:[543181f78de94fde] WebTemplate:[STS#0] CustomWebTemplate:[]", shape = "box"]
        "[root] Dq/tc4I0DrQvHXQHiK7aCw" [label = "[ListDefinition] - Title: [72c9b1ecfb5c44c7ad6182d8e96bc6be] Url: [6f52317bb7054bd8] ContentTypesEnabled:[False] TemplateType:[100] TemplateName:[]", shape = "box"]
        "[root] EHuRNsoVtkjDVSbvQXgRCg" [label = "[FolderDefinition] - Name:[511c5d9033034ca6b662ec1cea2e9564]", shape = "box"]
        "[root] D3r4XU03PTa5Ai4Pz6cdeA" [label = "[FolderDefinition] - Name:[0bf7527a43bf4289b67c305bad0d6ea9]", shape = "box"]
        "[root] oaLhg2wEZ8XQNq1y0vEfMg" [label = "[FolderDefinition] - Name:[8a81ecb7a64c469e9b860cceaba4834c]", shape = "box"]
        "[root] auhgJpC2dnKQJWgTYq6sRw" [label = "[FolderDefinition] - Name:[3f9049fac1344ea7a0edc1ee29b1a3ea]", shape = "box"]
        "[root] k/2xHZ8fW5Ikoq4pK2Rdjw" [label = "[FolderDefinition] - Name:[9db8f6aafa9d479493109d151fed06c2]", shape = "box"]
        "[root] H5mygFHs5e0oKA/jtAJJkQ" [label = "[FolderDefinition] - Name:[37b2285e69114930a3171993953f9c0c]", shape = "box"]
        "[root] ocbqa19GG8h32eZtcZwpZw" [label = "[FolderDefinition] - Name:[9dc02ca2ed5b4d0d996f1c01e3a69016]", shape = "box"]
        "[root] bV06pXnayunOY7jCuTTUnA" [label = "[FolderDefinition] - Name:[9163534e76184ef2bfaaba079ef8bc59]", shape = "box"]
        "[root] 8fo64EOn+fzzqv+W3psWaA" [label = "[FolderDefinition] - Name:[8dc5334038a04a6aaf3819561c818163]", shape = "box"]
        "[root] SfUMXmYPV7fQf2Gt6lTkrQ" [label = "[FolderDefinition] - Name:[be6ba6a55c48470f9d066c35a63eb6ed]", shape = "box"]
        "[root] bxVrpj3RK5a7w7zEsk0Xwg" [label = "[FolderDefinition] - Name:[ce42af6c427f4f3ab8247bc12d146355]", shape = "box"]
        "[root] 7oBI6zKq0hfZFDA2s9yZJw" [label = "[FolderDefinition] - Name:[16374d70f58e4ddfb7428ac43ffd7b17]", shape = "box"]
        "[root] 3yAlb5wLBlFIc6v++BXxZA" [label = "[FolderDefinition] - Name:[1f0dd005f0514ef7851d209f03269b83]", shape = "box"]
        "[root] vpG3A7Yg9tewChvTsVeLPg" [label = "[FolderDefinition] - Name:[fffbbc8c31264237b095d453e7e1d9f5]", shape = "box"]
        "[root] 5UlJoxMeuD7AzTOCZ6zq9w" -> "[root] iqKRviluQzo4GIX4L1a2PQ"
        "[root] Dq/tc4I0DrQvHXQHiK7aCw" -> "[root] 5UlJoxMeuD7AzTOCZ6zq9w"
        "[root] EHuRNsoVtkjDVSbvQXgRCg" -> "[root] Dq/tc4I0DrQvHXQHiK7aCw"
        "[root] D3r4XU03PTa5Ai4Pz6cdeA" -> "[root] EHuRNsoVtkjDVSbvQXgRCg"
        "[root] oaLhg2wEZ8XQNq1y0vEfMg" -> "[root] D3r4XU03PTa5Ai4Pz6cdeA"
        "[root] auhgJpC2dnKQJWgTYq6sRw" -> "[root] D3r4XU03PTa5Ai4Pz6cdeA"
        "[root] k/2xHZ8fW5Ikoq4pK2Rdjw" -> "[root] EHuRNsoVtkjDVSbvQXgRCg"
        "[root] H5mygFHs5e0oKA/jtAJJkQ" -> "[root] k/2xHZ8fW5Ikoq4pK2Rdjw"
        "[root] ocbqa19GG8h32eZtcZwpZw" -> "[root] k/2xHZ8fW5Ikoq4pK2Rdjw"
        "[root] bV06pXnayunOY7jCuTTUnA" -> "[root] Dq/tc4I0DrQvHXQHiK7aCw"
        "[root] 8fo64EOn+fzzqv+W3psWaA" -> "[root] bV06pXnayunOY7jCuTTUnA"
        "[root] SfUMXmYPV7fQf2Gt6lTkrQ" -> "[root] 8fo64EOn+fzzqv+W3psWaA"
        "[root] bxVrpj3RK5a7w7zEsk0Xwg" -> "[root] 8fo64EOn+fzzqv+W3psWaA"
        "[root] 7oBI6zKq0hfZFDA2s9yZJw" -> "[root] bV06pXnayunOY7jCuTTUnA"
        "[root] 3yAlb5wLBlFIc6v++BXxZA" -> "[root] 7oBI6zKq0hfZFDA2s9yZJw"
        "[root] vpG3A7Yg9tewChvTsVeLPg" -> "[root] 7oBI6zKq0hfZFDA2s9yZJw"
    }
}

SubPointSupport added a commit that referenced this issue Aug 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant