Book a Demo

Author Topic: Model Search and Pattern File Locations  (Read 4594 times)

davisr_uk

  • EA User
  • **
  • Posts: 22
  • Karma: +0/-0
    • View Profile
Model Search and Pattern File Locations
« on: October 01, 2013, 08:11:29 pm »
Hi Everyone,

Over this last weekend our working environment has been virtualised. This involved wiping local machines and now I connect through a virtual client to my desktop. So far, so good, but when I start Enterprise Architect, all my user defined searches and patterns are no longer available. I had assumed (incorrectly) that my searches and patterns would be saved within my model in the SQL Server database.
I do have access to a backup image of my old machine but only in terms of browsing files. Does anyone know where EA keeps user defined searches and patterns? If it's in the registry I may have a problem. Recreating them all from scratch will take days, particularly the searches.

*** UPDATE ***
Patterns are stored with the model, I was being dumb. I am still missing my searches though.
« Last Edit: October 01, 2013, 08:22:50 pm by davisruk »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Model Search and Pattern File Locations
« Reply #1 on: October 01, 2013, 08:36:40 pm »
For searches look at %appdata%\Sparx Systems\EA\Search Data\EA_Search.xml

You should be able to import that file as is.

Geert

davisr_uk

  • EA User
  • **
  • Posts: 22
  • Karma: +0/-0
    • View Profile
Re: Model Search and Pattern File Locations
« Reply #2 on: October 01, 2013, 11:58:59 pm »
Thanks Geert.

I just tested this theory by adding a couple of searches but it doesn't result in a file in that location. EA has to be persisiting them somewhere though because they survive a shutdown and startup of EA.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Model Search and Pattern File Locations
« Reply #3 on: October 02, 2013, 05:02:02 am »
I guess you made some mistake (or it's some config problem with your machine?). I just created a search and resulted in a file where Geert said. Looks like
Quote
<?xml version="1.0" encoding="windows-1252"?>
<RootSearch><Search Name="test" GUID="{47B8BA23-92C4-4c38-8822-19BAED70CB2B}" PkgGUID="-1" Type="0" LnksToObj="0" CustomSearch="0" AddinAndMethodName=""><SrchOn/><LnksTo/></Search></RootSearch>

q.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Model Search and Pattern File Locations
« Reply #4 on: October 02, 2013, 04:03:02 pm »
Quote
Thanks Geert.

I just tested this theory by adding a couple of searches but it doesn't result in a file in that location. EA has to be persisiting them somewhere though because they survive a shutdown and startup of EA.
Are you sure you are looking at the correct location?
Make sure you actually use %appdata% in windows explorer. It will take you to a specific folder for, ... well application data.
On my pc that is "C:\Users\gbellekens\AppData\Roaming"

Geert