Book a Demo

Author Topic: Moving rtf templates between projects  (Read 4145 times)

Graham_Moir

  • EA User
  • **
  • Posts: 749
  • Karma: +10/-15
    • View Profile
Moving rtf templates between projects
« on: November 18, 2009, 09:48:16 pm »
EA supports exporting the rtf templates to xml,  although it's all or nothing, you don't seem to be able to export a single template.

However you can manually edit the xml to leave the one "datarow" you want.   My question however is to with the import process.

The help says  "When you import data into Enterprise Architect, the system merges the incoming data with the existing data. If a record already exists it is updated to the new values. If the record does not exist, Enterprise Architect adds a new record. Enterprise Architect never deletes records."

But what constitutes the "key" that determines whether a record exists or not.  The xml has

<Column name="DocID" value="{99D388E4-28D7-4e06-A0BE-1FCDF7AD4B19}"/>
<Column name="DocName" value="Name of template"/>

Is it both or just DocID,  if just DocID the chances must be low of different templates between projects having the same id,  but that's possible.

In terms of building confidence in the process, anyone tried this with success ?
thanks

erixon

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: Moving rtf templates between projects
« Reply #1 on: November 21, 2009, 05:16:15 am »
Are you specifically looking to export a single RTF template to XML? If not, you can definitely export/import single RTF templates from one project to another.

Open the template, select File Export.  Go to your other project, create a new blank template and select File Import.

Graham_Moir

  • EA User
  • **
  • Posts: 749
  • Karma: +10/-15
    • View Profile
Re: Moving rtf templates between projects
« Reply #2 on: November 24, 2009, 04:27:10 am »
That's a useful reminder, although I think in this case the export/import is via rtf rather than xml.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Moving rtf templates between projects
« Reply #3 on: November 24, 2009, 08:38:53 am »
Just a quick note, the export/import of templates has been around for... well... longer than I have.  You now also have the option of creating an MDG technology that contains selected templates.  You can then share that across multiple users, and everyone using it will have all the templates available in every model they open.

Graham_Moir

  • EA User
  • **
  • Posts: 749
  • Karma: +10/-15
    • View Profile
Re: Moving rtf templates between projects
« Reply #4 on: November 24, 2009, 08:29:17 pm »
That's even more useful Simon thanks.