Discussion:
format conversion between DIA and graphviz (dot)?
Steven Pothier
2001-10-03 16:56:06 UTC
Permalink
The graphviz package, "dot" program does graph layout from a graph
description given in a simple text format.
It outputs a couple formats (not XML though). Has anyone written
anything to transform the formats used by DIA and graphviz?

There is an obvious benefit to being able generated a graph in DIA
format from a (layout free) textual format.

If I find nothing here, I'll likely write a perl script to fullfill
something like:

dot -Tplain mygraph.dot | dotplain2dia.pl > mygraph.dia

-sp-

P.S.
graphviz is described at: http://www.research.att.com/sw/tools/graphviz

P.S.S. I fantasize that I have a tools that completely integrates DIA
and graphviz so that I can do automatic layout, transformations,
filtering AND easy manual editing with the same tool.
Lars Clausen
2001-10-03 17:50:58 UTC
Permalink
Post by Steven Pothier
The graphviz package, "dot" program does graph layout from a graph
description given in a simple text format.
It outputs a couple formats (not XML though). Has anyone written
anything to transform the formats used by DIA and graphviz?
There is an obvious benefit to being able generated a graph in DIA
format from a (layout free) textual format.
If I find nothing here, I'll likely write a perl script to fullfill
dot -Tplain mygraph.dot | dotplain2dia.pl > mygraph.dia
Ah, yes, dot. A wonderful little graph tool. No, there is no
transformation from dot files to dia files, nor does Dia read dot
output. I'd love to see either.
Post by Steven Pothier
P.S.
graphviz is described at: http://www.research.att.com/sw/tools/graphviz
P.S.S. I fantasize that I have a tools that completely integrates DIA
and graphviz so that I can do automatic layout, transformations,
filtering AND easy manual editing with the same tool.
That would be sweet indeed. Take a look at plug-ins/xfig/xfig-import.c if
you want to do it as an import filter. Otherwise, look at any of the
.dia-generating tools listed in the Links section of the Dia page.

-Lars
--
Lars Clausen (http://shasta.cs.uiuc.edu/~lrclause)| HÃ¥rdgrim of Numenor
"I do not agree with a word that you say, but I |----------------------------
will defend to the death your right to say it." | Where are we going, and
--Evelyn Beatrice Hall paraphrasing Voltaire | what's with the handbasket?
John Ellson
2001-10-03 20:11:27 UTC
Permalink
Steven,

Dot supports SVG (which is an XML language) as an output format,
you might be able to use this directly with dia? Dot's SVG output is
already compatible with sodipodi.

I've also been looking at dia recently with a view to offering an automatic
layout feature based on graphviz, however dia's shapes are not
consistently described by SVG which makes this idea somewhat problematic.

We are also interested in extending dot to support an XML graph
description language for input. RGML is a possibility:
http://www.cs.rpi.edu/~puninj/RGML/
Perhaps you have some opinions on this?

John Ellson
Post by Steven Pothier
The graphviz package, "dot" program does graph layout from a graph
description given in a simple text format.
It outputs a couple formats (not XML though). Has anyone written
anything to transform the formats used by DIA and graphviz?
There is an obvious benefit to being able generated a graph in DIA
format from a (layout free) textual format.
If I find nothing here, I'll likely write a perl script to fullfill
dot -Tplain mygraph.dot | dotplain2dia.pl > mygraph.dia
-sp-
P.S.
graphviz is described at: http://www.research.att.com/sw/tools/graphviz
P.S.S. I fantasize that I have a tools that completely integrates DIA
and graphviz so that I can do automatic layout, transformations,
filtering AND easy manual editing with the same tool.
_______________________________________________
Dia-list mailing list
http://mail.gnome.org/mailman/listinfo/dia-list
--
John Ellson (***@lucent.com) Lucent Technologies, Holmdel, NJ, 07733
Hanno 'Rince' Wagner
2001-10-03 20:14:43 UTC
Permalink
Hi people,

I have a quite complex architecture modeled with dia and at one
point I noticed that dia is not showing the right sizes anymore; the
vertical and horizontal beam are very small and not accurate (even
if the position I am is in the middle of the diagram, it shows that
I would be in the top left corner). If I click on the arrows up and
left, I move up and left too; but the beam isn't moving.

In the Page Setup-Menu, I also can not set a scale; the value in
there is "nan" and there is no way to change it; what does this mean?

Ciao, Hanno
--
| Hanno Wagner | Member of the HTML Writers Guild | ***@IRC |
| Eine gewerbliche Nutzung meiner Email-Adressen ist nicht gestattet! |
| 74 a3 53 cc 0b 19 - we did it! | Generation @ |
#"> SCHLIESST DIE GATES!" - Henning Schmiedehausen
#"...egal wie sie heissen: Fido, Bill,..." - Hans-Joachim Koch
# -- ***@hub-wue.franken.de bekommt Fidogate-Bounces
Loading...