Book a Demo

Author Topic: How to Export Formatting Styles  (Read 4950 times)

jthillmn

  • EA User
  • **
  • Posts: 22
  • Karma: +0/-0
    • View Profile
How to Export Formatting Styles
« on: December 11, 2013, 10:10:30 am »
When I start a new Sparx project, one of the first things I do is create the styles that are commonly used for the components; i.e. a "new" component has a thick blue border, or a "contained" component has a thick red border, etc.  So it's easiest to simply set all of these styles and save them for re-use.

I was attempting to export these styles in the reference data export feature, but it doesn't appear that this type of meta data can be exported.  I have looked into each of the reference data types that can be exported (http://www.sparxsystems.com/enterprise_architect_user_guide/10/projects_and_teams/exportrefdata.html), so wonder if I am missing something or if it's simply not possible.

Thanks for your help...Jim

VKN

  • EA User
  • **
  • Posts: 187
  • Karma: +9/-1
    • View Profile
Re: How to Export Formatting Styles
« Reply #1 on: December 11, 2013, 11:21:15 am »
See:

http://www.sparxsystems.com/enterprise_architect_user_guide/10/modeling_basics/using_element_templates.html

Then export/Import the template package as XMI (not Reference Data).
In the target model Settings->Project Template Package - select that package.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: How to Export Formatting Styles
« Reply #2 on: December 11, 2013, 11:40:39 am »
Another idea is to save your styles in a copy of the EABase.eap file, and use that file to create all your new projects.
The Sparx Team
[email protected]

jthillmn

  • EA User
  • **
  • Posts: 22
  • Karma: +0/-0
    • View Profile
Re: How to Export Formatting Styles
« Reply #3 on: December 12, 2013, 05:19:39 am »
I have a base .EAP file in which I have created these styles.  I used that base to create a new project and then checked that project into SVN.  When a peer pulled down that project from SVN, these styles do not show up in his environment.

I'm taking a look through the use of the "Templates" package to see if I need to do something there, but these are styles that show up for me throughout my copy of the project, but not for my peer who pulled from SVN.

jthillmn

  • EA User
  • **
  • Posts: 22
  • Karma: +0/-0
    • View Profile
Re: How to Export Formatting Styles
« Reply #4 on: December 19, 2013, 05:14:12 am »
Saving as part of the .eap file did not work.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: How to Export Formatting Styles
« Reply #5 on: December 19, 2013, 09:15:29 am »
Quote
Saving as part of the .eap file did not work.
Just to be clear we're talking about the same thing... there is a toolbar along the top of every diagram which includes Apply Style, Get Style and Save Style buttons. These styles are saved in the database, in the t_trxtypes table. If you save them in the EABase.eap database and then create a new database by copying the EABase.eap database, then the contents of the t_trxtypes table must be the same in the new database and the EABase.eap.

Unless of course we're talking about different kind of styles...
The Sparx Team
[email protected]