You are not logged in.

#1 2005-11-10 05:01:56

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Dia

I'm having trouble with Dia.... which seems to be dead, it hasn't updated in like a year.

Anyway, I want to do a UML diagram, I guess (ichy, I know). The problem is when I add an association between two classes such that each class has a role and a multiplicity, I can't seem to position these labels. Half the time the role is inside the box or on the line or I can't see the multiplicity label, etc. Is this just Dia being a pain, or am I doing something stupid?

Or Is there a better diagramming tool out there?

Thanks,

Dusty

Offline

#2 2005-11-10 06:15:28

medicated
Member
From: Storm Lake, IA
Registered: 2005-03-11
Posts: 79

Re: Dia

I can't help you with your dia program, but I would also be interested in any other program that shares its features.

Offline

#3 2005-11-10 06:59:21

elasticdog
Member
From: Washington, USA
Registered: 2005-05-02
Posts: 995
Website

Re: Dia

It has been too long since I messed around with Dia (it was fairly disappointing), but I know in Visio you can change the normal text tool to a text repositioning tool (called the Text Block Tool) in the menubar.  It's not real obvious that the tool was there, so perhaps there's a similar option in Dia?  Unfortunately I haven't come across any other diagramming tool that fits the bill for Linux...

Offline

#4 2005-11-10 08:10:15

jftaylor21
Member
From: Arch Linux Forums
Registered: 2004-02-21
Posts: 237

Re: Dia

I've found that my favorite diagramming tool is draw from the openoffice package.

Offline

#5 2005-11-10 16:06:27

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: Dia

jftaylor21 wrote:

I've found that my favorite diagramming tool is draw from the openoffice package.

I never thought of that, good idea....

Is it posible to get UML symbols in draw? How about connecting lines to objects so if I move the object the line moves with it?

Even without this, I think draw might work better for me than dia.

Dusty

Offline

#6 2005-11-10 16:15:41

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: Dia

I figured out how to use glue points for the second question. :oops:

now, what about labelling lines in more places than just the centre of the line?

Dusty

Offline

#7 2005-11-10 16:36:28

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Dia

Dusty wrote:
jftaylor21 wrote:

I've found that my favorite diagramming tool is draw from the openoffice package.

I never thought of that, good idea....

I was going to say "You can try Inkscape" - I mean, it could be done, but it may be a bit more work.

I'd be interested too, if there is an alternative UML/diagram tool that you come across - and while I'm on the topic:
Why have I never found a UML tool that will generate skeletons... I mean, it's not hard to turn a UML spec into something like:

class MyClass(MyBase):
   def __init__(self,a,b):
      pass
   def foo(self):
      pass

Offline

#8 2005-11-10 16:56:03

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: Dia

phrakture wrote:

I was going to say "You can try Inkscape" - I mean, it could be done, but it may be a bit more work.

I'll try it too, cool.

Why have I never found a UML tool that will generate skeletons... I mean, it's not hard to turn a UML spec into something like:

class MyClass(MyBase):
   def __init__(self,a,b):
      pass
   def foo(self):
      pass

1) Hmmm.... might be a good idea to write one.
2) since when does phrakture post code in python? :shock:

Dusty

Offline

#9 2005-11-10 17:02:34

demonus
Member
Registered: 2005-01-31
Posts: 62

Re: Dia

there's poseidon uml in aur repo, but it's slow as hell

Offline

#10 2005-11-10 17:11:06

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Dia

Dusty wrote:

2) since when does phrakture post code in python? :shock:

Laziness 4 teh winz!

I didn't want to write:

class my_class : public my_base
{
   int a,b;
public:
   my_class(int _a, int _b) : a(_a), b(_b) {}
   virtual ~my_class() {}

   virtual void foo() = 0;
};

Offline

#11 2005-11-10 17:19:21

jftaylor21
Member
From: Arch Linux Forums
Registered: 2004-02-21
Posts: 237

Re: Dia

phrakture wrote:
Dusty wrote:
jftaylor21 wrote:

I've found that my favorite diagramming tool is draw from the openoffice package.

I never thought of that, good idea....

I was going to say "You can try Inkscape" - I mean, it could be done, but it may be a bit more work.

I'd be interested too, if there is an alternative UML/diagram tool that you come across - and while I'm on the topic:
Why have I never found a UML tool that will generate skeletons... I mean, it's not hard to turn a UML spec into something like:

class MyClass(MyBase):
   def __init__(self,a,b):
      pass
   def foo(self):
      pass

umbrello in the kdesdk package does uml plus code generation in the following languages:
java, php, javascript, actionscript, sql, python, ada, idl, xmlschema, perl, php5, cpp

Disclaimer: I have never used it though, so I don't know how well it works.

Offline

#12 2005-11-10 17:30:36

jftaylor21
Member
From: Arch Linux Forums
Registered: 2004-02-21
Posts: 237

Re: Dia

Dusty wrote:

I figured out how to use glue points for the second question. :oops:

now, what about labelling lines in more places than just the centre of the line?

Dusty

I am not sure how to make the text "stick" to the lines, but you could just manually place the text anywhere next to lines.
Sorry  sad .

Offline

#13 2005-11-10 17:34:54

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: Dia

phrakture wrote:

Laziness 4 teh winz!

I didn't want to write:

And yet when it comes to coding you prefer C++ over python?

:-P

Dusty

Offline

#14 2005-11-10 19:01:01

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Dia

There's also kivio. It's part of koffice and is similar to Visio (which was mentionned by elasticdog). I don't know if it can do what you want to do.  I tried it once instead of xfig but I came back to xfig because of some features it didn't had.

EDIT: Kivio  Features:

    * Scriptable stencils using Python.
    * Support for Dia stencils.
    * Plugin framework for adding more functionality.

Offline

#15 2005-11-10 21:31:17

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Dia

Dusty wrote:

And yet when it comes to coding you prefer C++ over python?

Ah, but those things are not mutually exclusive:

#include <iostream>
#include <vector>
#include <algorithm>
typedef std::istream_iterator<int> iter; //i'm lazy
int main()
{
   std::vector<int> v;
   std::copy(iter(cin),iter(), std::back_inserter(v));
   std::cout << std::accumulate(v.begin(),v.end(),0);
}

read in an arbitrary set of numbers (stdin) and output the total.

edit: this does it via the command line

#include <iostream>
#include <vector>
#include <algorithm>
#include <cstdlib>
int accum(int i, const char* s) { return i+std::atoi(s); }

int main(int argc, char** argv)
{
   std::cout << std::accumulate(argv+1,argv+argc,0,accum);
}

Offline

#16 2006-04-29 05:12:24

user
Member
Registered: 2006-03-29
Posts: 465

Re: Dia

[url=http://gnomedesktop.org/node/2666]Dia version 0.95 released[/url] wrote:

The developers are happy to announce the release of a new version of the diagramming tool Dia. This release features automatic line layout, better Python plugins, many bug fixes and usability improvements plus a few security fixes. Read details below.

Version 0.95 adds the following major features:

    * New "mainpoint" system allows lines to be added by dragging from anywhere on one object to anywhere on another, and to always point towards the middle of an object even when that object is moved.
    * Python plug-ins added to create DOT output, generate Python bindings by 'self reflection', and allow round-trip engineering plug-ins.
    * The grid can now automatically change size depending on your zoom level.
    * Text input now highlights the object that receives the input, and tabbing between text input areas on one or more objects is possible.
    * Many new shapes added.
    * Several new UML objects added as well as some extensions to existing objects.
    * Several security problems fixed in XFig import and Python plug-in.
    * Full screen mode.
    * Improved SVG import,
    * Plug-in loading and unloading doesn't require restart of Dia.
    * Many i18n problems have been fixed, particularly in export filters.
    * Many bugs have been fixed, too many to mention here.
    * Command line usage has improved to allow the selecting of individual layers
      and specific output filters.
    * Uses the new GTK+ File Dialog.
    * Experimental libgnomeprint and Cairo plug-ins.


I removed my sig, cause i select the flag, the flag often the target of enemy.

SAR brain-tumor
[img]http://img91.imageshack.us/img91/460/cellphonethumb0ff.jpg[/img]

Offline

#17 2006-04-29 23:06:56

RaLX
Member
Registered: 2005-10-17
Posts: 54

Re: Dia

For interested people, another alternative for UML is ArgoUML http://argouml.tigris.org/

Offline

#18 2006-04-29 23:27:01

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: Dia

Dusty try umlet.
http://www.umlet.com/

I don't like argouml, and dia is only really useful for me for making network diagrams (good at what it does..but I couldn't ever use it for uml stuff very well).

EDIT: oh my. this topic is old as hell.
:oops:


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

Board footer

Powered by FluxBB