Book a Demo

Author Topic: Copy multiple Root Nodes to new project with dependencies  (Read 5780 times)

oiwuernnslkdjf

  • EA Novice
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Copy multiple Root Nodes to new project with dependencies
« on: August 06, 2021, 05:55:43 am »
Hey there,

I have an older EA Project and would like to copy some of the Root Nodes to a new project. Problem is that some Root Nodes depend on each other. How to go about it?

Here is what I tried:
1. copy Root Node -> right click -> Copy/Paste -> Full Structure for Duplication
But there is no context menu to paste the root node to the new project.

2. create new Root Nodes with the same name as in the old project -> copy Views from old project -> paste Views into Root Nodes of new project.
This pastes most of the diagrams correctly but some are missing references to other root nodes.

Do you have any idea on how to solve this issue?

Thanks!

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Copy multiple Root Nodes to new project with dependencies
« Reply #1 on: August 06, 2021, 07:00:07 am »
How about XML ex- and import (with strip guid if you want a "real" copy)?

q.

oiwuernnslkdjf

  • EA Novice
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: Copy multiple Root Nodes to new project with dependencies
« Reply #2 on: August 10, 2021, 03:28:57 pm »
Hi there!

Thanks for the suggestion. What do you mean by "with strip guid"?

oiwuernnslkdjf

  • EA Novice
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: Copy multiple Root Nodes to new project with dependencies
« Reply #3 on: August 10, 2021, 03:37:49 pm »
It worked! Thx!

For everyone else interested:

https://sparxsystems.com/enterprise_architect_user_guide/15.2/model_publishing/exporttoxmi.html
Export to XML: Select Root Node -> Publish > Model Exchange > Export XML > Export XML for Current Package
or Ctrl+Alt+E

https://sparxsystems.com/enterprise_architect_user_guide/15.2/model_publishing/importxmi.html
Import: Select Root Node -> Publish > Model Exchange > Import XML > Import Package from XML
or Ctrl+Alt+I


I also found "Strip GUIDs" which is an option when importing from XML.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Copy multiple Root Nodes to new project with dependencies
« Reply #4 on: August 10, 2021, 05:10:12 pm »
Yes, the strip GUID will create new GUIDs for all imported elements so making them clones of the originals. Basically, if you run a model wizard or create a pattern from a toolbox EA will import the wizard/pattern XML with the strip GUID option.

q.