After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 84624 - RFE: Auto relayout of diagrams
RFE: Auto relayout of diagrams
Status: RESOLVED OBSOLETE
Product: dia
Classification: Other
Component: general
CVS head
Other All
: Normal enhancement
: ---
Assigned To: Dia maintainers
Dia maintainers
Depends on:
Blocks:
 
 
Reported: 2002-06-09 03:27 UTC by Idcmp
Modified: 2014-02-01 21:19 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Idcmp 2002-06-09 03:27:15 UTC
It'd be handy if Dia could take a diagram and reformat it. 

Other tools could then create .dia files with <dia:object>'s and just
specify the <dia:connections> to other objects and have Dia generate the
diagram (without needing obj_pos and obj_bb for everything).
Comment 1 Lars Clausen 2002-06-10 14:30:29 UTC
What do you mean, reformat?  Autolayout is a major problem, not even well defined.  Certainly, the bounding box could be recalculated, but object positions are not that easy.  Take a look at 'dot' in the graphviz package to get an idea of what is involved in autolayout.  If you are thinking of something less general, let us know.
Comment 2 Idcmp 2002-06-19 04:03:55 UTC
Autolayout was what I was thinking.  Something along the lines of what
dot can do, builtin to Dia would be quite cool.  I suppose Dia could
even call out to dot to get a clue on positions.
Comment 3 Kjartan Maraas 2003-10-29 12:08:14 UTC
Reopening.
Comment 4 Roland Stigge 2004-02-09 10:33:58 UTC
Hi,

at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=148876 , a Debian
user proposed to integrate with graphviz, or usage of the latter.

Thanks.
Comment 5 Lars Clausen 2004-02-09 12:28:51 UTC
Graphviz integration would probably be the way to go.  A Python plugin
could probably do it.  Problem is that graphviz uses its own internal
formats, and I'm not sure if it can operate on e.g. Dia Class objects.
 It may be possible to make a hack to make it work, and I'd welcome
work on this side.  I don't have the time to do this right now.
Comment 6 Alan Horkan 2005-03-05 23:26:10 UTC
mentioned on the mailing list again
http://mail.gnome.org/archives/dia-list/2005-March/msg00018.html
Comment 7 Hans Breuer 2009-01-29 22:23:27 UTC
More discussion on the mailing list but (may I say again) very few working code (:
http://mail.gnome.org/archives/dia-list/2008-August/msg00031.html

Another option to grphviz could be to integrate with OSGF http://www.oreas.com/
Comment 8 Hans Breuer 2014-02-01 21:19:33 UTC
There is working code on Dia master for some time:
https://git.gnome.org/browse/dia/log/plug-ins/layout