Sparx Systems Forum
Enterprise Architect => Uml Process => Topic started by: bherd on November 26, 2004, 06:38:19 am
-
Hello,
i have a big class diagram and I would like to split it into several smaller parts because of clarity. So I want to create a package diagram, which contains packages of classes belonging together (but the relations from package to package should still be visible). I already tried to do this but without any success. i created a package within my class diagram and copied the classes into it, but now all relations are gone ... Is there any tutorial or thread concerning this topic or can anybody give me some advice?
Thank you very much!
-
If you say "copy" then the behaviour is obvious. A copied object does not have the relations from it parent. Instead you should move the original classes to packages. In that case all relations are preserved and will be seen in diagrams.
-
Thank you for your reply. I tried to do so but without success. Within my class diagram I created packages and moved the classes into them. Now I have a package containing the classes, but the original classes are still visible at their original places. How can I define that the classes now shall be replaced by the package symbol?
Thank you!
-
You can't. The diagrams still contain the classes but with an additional informtion about the different source package. If you want to show the package, just drag it onto the diagram. The package contents (your classes) will then be shown as package icon in a concise format. You have to delete the classes from the diagram explicitly (this will not delete the classes themself).
-
OK, thank you very much, now it works really well!