How could I produce the final colored UML diagram from the generated file svek.dot?

0 votes
asked Sep 29, 2014 in To be sorted by MatthewLiu (160 points)
edited Sep 30, 2014 by MatthewLiu
Dear All,

Now I find that PlantUML could generate a file called "svek.dot". I am able to generate svg or png diagram using DOT command:

dot -Tsvg -O svek.dot

However, the generated svg or png diagram (no color, no text) is different from the one generated by PlantUML.

My question is: is it possible to produce the final UML diagram (with perfect color, text, etc.) from "svek.dot" using DOT command? That is, is it possible to produce the same colored diagram as the one generated by PlantUML, just using dot command from "svek.dot"?

It seems the "svek.dot" does not contain color info and text info.

digraph unix {

nodesep=0.486111;

ranksep=0.833333;

remincross=true;

searchsize=500;

compound=true;

sh0004 [shape=rect,label="",width=0.791667,height=0.666667,color="#000004"];

}

Could anyone please

give some advice about how to generate the perfect colored diagram from "svek.dot"? Thanks!

 

Best regards,

Matthew

1 Answer

+1 vote
answered Sep 30, 2014 by plantuml (294,960 points)
Hello,

Unfortunatly, you cannot produce the final/complete/perfect UML diagram from DOT language. It's not possible to generate the final UML diagram from "svek.dot"

Dot is just used by PlantUML to compute node positions (see information http://www.plantuml.com/svek.html ).

PlantUML retrieves positions from the file generated by Dot, and do the real drawing by itself. We are working this way because drawing capabilities of dot are somehow limited (for what we want to do).

Regards,
commented Sep 30, 2014 by MatthewLiu (160 points)
Thank you for the answer.
...