Is there any way to copy diagrams into different projects?

Go To StackoverFlow.com

9

Our team has been using starUML and we had to divide our job to draw sequence diagram for different parts. But now, I am having trouble how to merge those diagrams into one project.

I've searched on net and found out only package can be imported and exported.

Is there any way to just copy the sequence diagram and paste it in the original one?

They are sharing the same constants from the start.

2012-04-04 08:30
by Jae Park
Years later, this seems to be possible now via the Model Explorer. Create a new model, and copy the sub activities into it, this will copy them including the diagrams. They can then be modified - JohnCambell 2016-07-18 13:46


3

You can copy-paste elements only one-by-one. But you should work with Model Elements. Review please, first method works for me, but the second

Procedure for Copying and Pasting View Elements in Diagram

unfortunately doesn't.

ADDED

Also you can Export - Import entire diagram as XMI

Here is bug-report.

2012-07-10 07:35
by triclosan


1

  1. Open your source & destination projects in an editor such as Visual Studio Code to view them as json formatted text.
  2. In our source project json text locate the diagram name which should have an array below it called "ownedElements" (which contains all the items in the diagram).

    "name": "My Diagram Name", "ownedElements": [ ... ]

  3. Copy the name & array, then paste in the destination json, making sure it is inside of the Project Level "ownedElements" array.

NOTE: Items in an "ownedElements" array MUST be separated by a comma so dont forget to include these before and after you paste your text if they are needed.

2019-03-01 01:10
by Hotpotato


0

in the model explorer view, you can copy a model, then open another star uml with your other project and in the model explorer view, you can now paste the model you have copied.

2014-10-30 20:09
by manu


0

You can export / import fragments, which are items in the model (in file menu, version 2.5)

2015-09-21 15:44
by polarBear64


0

Yes, We can copy and paste the diagram with the help of save As... option.

Please find steps as below: 1. create any type of diagram in StarUML and save it. example: sequence1.mdj 2. Then select File >> save As... option or also you can use short cut keys ctrl + shift + S and save it with different name. For example : sequence2.mdj 3. So now you have 2 different-different files (.mdj). you can modify as you want.

Note: If you simply copy and paste the file then it won't copy content in the second file. This, I already tried. It doesn't work.

2015-10-30 07:44
by Gaurav Kabra


-1

you can make select all ctrl+a and past it in paint as image file and start working with it

2012-11-05 07:39
by lionsmater


-1

Copy whole model and paste it into other model. Then delete unwanted elements.

2013-09-20 18:37
by czlo
Dear what you said is not working - Hemang Rami 2014-05-07 11:05
Ads