Friday, 16 December 2022 11:57

Create Single Location for Sparx EA Settings & Configuration Files for Multiple Crossover VMs

Written by
Rate this item
(0 votes)

This provides a single file location on the Mac (or Linux?) to hold the Sparx EA configuration, user searches, database error output when used with Codeweavers Crossover. The same principle would work for the 'bare' Wine.

When Sparx EA is installed into a Bottle each Bottle is deliberately isolated. This is fine normally but if you've created custom search definitions and later create a new Bottle with Sparx EA this new bottle won't have your custom search definitions. You could copy the file containing the search definitions /Search Data/EA_Search.xml but changes to searches in one bottle won't be reflected in the other so you then have to remember to copy from one Bottle to the other, etc.

This method using a symbolic link creates a central single (master) location for these Sparx EA user settings and then places a symbolic link to this common location in each bottle containing Sparx EA.

 

Structure/ Contents of Sparx Systems Folder
Structure / Contents of the Sparx Systems Folder Holding User Configuration Data

Note: Since Sparx EA saves the Workspace layout into a folder named after the specific build of Sparx EA, e.g. 'EA1608Workspace-Layouts' there isn't a common file location that can be used to hold these layouts (unless creating a symbolic link to a single .eaworkspacelout file is used).

Another advantage is that if you delete the Crossover Bottle containing Sparx EA these settings won't be deleted with the Bottle. This becomes increasingly important given the cumulative time spent creating custom searches etc.

Create a New Common Location for Sparx EA Settings

  1. Under your user ~/Library/Application Support folder create a new 'Enterprise Architect' folder i.e.
    • /Users/<<username>>/Library/Application Support/Enterprise Architect
  2. Choose the Bottle holding the Sparx EA data to be used for this common folder, the 'Sparx Systems' folder will be located at
    • up to and including Windows 8 bottle: /Users/<<username>>/Library/Application Support/CrossOver/Bottles/<<bottle name>>/drive_c/users/crossover/Application Data/Sparx Systems
    • Windows 10 bottle: /Users/<<username>>/Library/Application Support/CrossOver/Bottles/<<bottle name>>/drive_c/users/crossover/AppData/Roaming/Sparx Systems
  3. Copy this folder
  4. Paste this folder into the one created at 1 so that you now have
    • /Users/<<username>>/Library/Application Support/Enterprise Architect/Sparx Systems
  5. Rename the existing (old) folder at 2 e.g. 'Sparx Systems - old' to preserve the settings should something go wrong
 Finder New Common Sparx Configuration Location
New Common Location for Sparx Systems Folder

Creating a Symbolic Link to the Enterprise Architect Folder

  1. Open the Terminal app
  2. Type 'ln -s '
  3. Drag and drop the 'Enterprise Architect' folder from the Finder window onto the Terminal window to set the source for the symbolic link
  4. Add a space after this in the Terminal window
  5. Type in the destination where the symbolic link will be saved, for example your desktop '~/Desktop'
  6. If you look at your Desktop there will be a folder with a symbolic link / alias icon
Mac Terminal - Create Symbolic Link to Sparx Systems Folder
Terimanl Window Showing Command to Create Symbolic Link to the 'Sparx Systems' Folder
Finder Symbolic Link to Sparx Systems folder
The Symbolic Link to the Sparx Systems Folder is Marked in an Alias Symbol Bottom Left

 Corner

Copy the Symbolic Link to Each Crossover Bottle with Sparx EA

  1. Copy the newly created 'Sparx Systems' symbolic link, in this example saved on the Desktop
  2. Paste the 'Sparx Systems' symbolic link into each bottle that is to use the common settings
    • /Users/<<username>>/Library/Application Support/CrossOver/Bottles/<<bottle name>>/drive_c/users/crossover/Application Data/Sparx Systems
  3. Validate correct operation by launching Crossover, then the particular Enterprise Architect and displaying the search dialog (Control + F) and verify that your custom search definitions are listed.
  4. When you're satisfied that everything works you can delete the old folder (/Users/<<username>>/Library/Application Support/CrossOver/Bottles/<<bottle name>>/drive_c/users/crossover/Application Data/Sparx Systems - old)
Read 1710 times Last modified on Wednesday, 04 January 2023 22:32
wikitect

Nic Plum

Eclectica Systems Ltd. (Consultant)

Nic is a long time systems engineer/thinker who has worked mostly in aerospace and defence but has diversified into big government projects and more recently rail and transport. He views enterprise architecture and modelling as one of the essentials to any toolkit. Over the last year he has co-created TRAK - an architecture framework based on MODAF - using EA and has developed an MDG Technology to implement it within EA - and learnt a lot in the process! TRAK is a simple, pragmatic, no-nonsense framework which is based firmly around the user (not the specifier or tool vendor ;-) ) - it has to be easy to user & 'obvious'...

sf.net/p/mdgfortrak
Login to post comments