Copy-Past Modeling Diagrams and Modeling Elements within VSTS 2010

This is completely new for me… CTRL-A // CTRL-C




It also works in other applications, even Outlook. This kind of functionality [copy past between models] was already written down in the DSL Tools Book [page 437].

Copy past between models is also possible, but than you have to look very careful what and how you do it. For example copy past within the same model create a model element with the same name with a number at the end.


It’s interesting to look at the Model Explorer, also in that one there are shapes added with the same name.
Now, copy pasting from one diagram to another diagram has the same behavior, modelelements are created with a number. [the number is added because they also get shown in the model explorer, two shapes with the same name isn’t possible]


If you want these shapes to be the same, and not a copy, you need to drag and drop the shape from the model explorer on design surface of the new diagram.


The benefit of this is that now these model shapes are connected, changing the name of one [on the diagrams or the model explorer ] will automatically synchronize the other elements.

Another thing to pay attention to is the copy-past behavior between different model projects…. actually you can see it immediately when pasting in the diagram of the other modeling project, no number added. So you could think that the behavior is the same as drag and drop  from the model explorer. But that isn’t the case, while adding an other modeling project also a new root is created in the model explorer. So, those two model elements are two different things. Drag and drop isn’t possible between model projects.


If you do want to re-use mode elements in a different modeling project, you can us the copy past functionality, which works really nice. But, you also can copy past the content of the modeldefinition file to the other project. Don’t think that is the way to go… but it works, it also reminds the relationships between the elements. You could create a default package every project needs to us…

Comments (15) -

I believe this aspect is growing everywhere as business owners learn what it is. For example, Phoenix is much more sophisticated in this regards than here in Tucson. I average small business owner is still way behind in their understanding such incidents.

Valuable information and excellent design you got here! I would like to thank you for sharing your thoughts and time into the stuff you post!! Thumbs up

thank you so much for this post. i really needed help with copy and pasting between the models. This is valuable information and i certainly learned a lot.

Nice to be visiting your blog again, it has been months for me. Well this article that i've been waited for so long. I need this article to complete my assignment in the college, and it has same topic with your article. Thanks, great share.

Aw, this was a really quality post. In theory I'd like to write like this too - taking time and real effort to make a good article... but what can I say... I procrastinate alot and never seem to get something done.

I was looking for crucial information on this subject. The information was important as I am about to launch my own portal. Thanks for providing a missing link in my business.

This article gives the light in which we can observe the reality. this is very nice one and gives indepth information. thanks for this nice article

Thank you for another great article. Where else could anyone get that kind of information in such a perfect way of writing? I have a presentation next week, and I am on the look for such information.

This is my first time i visit here. I found so many interesting stuff in your blog especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the enjoyment here! keep up the good work.

Just try to smile for about 2-3 mins then you can get back to work

Hmmm interesting stuff

Hi! Thanks for trying to find solutions. I am working as an online vendor, I use Outlook as my email client and with the help of Email Sorter Wizard, an Outlook add-on, I get all my email managed. You made a good point.

Please, can you PM me and tell me few more things about this, I am really fan of your blog! I just subscribed to your feed.

Congratulations on your super article. Thank you. It sounds interesting. E-mail is a legitimate means of communication. I prefer Outlook as my email client and with the help of Email Sorter Wizard, an Outlook add-in, I sort all my email fast and with ease. I will read through the rest of your website.

hey webmaster, I found your blog from bing and read a few of your other posts.They are great. Please keep it up.. greets, Ahmed.

Add comment