Book a Demo

Author Topic: Model searches  (Read 2864 times)

Emgie

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Model searches
« on: October 04, 2011, 09:15:31 am »
Hi

I am developing an addin with my own MDG. I would like it to be distributable as an installable .exe file.

I am facing a problem: how to import "model searches" xml into the project?

For the MDG, I've found a function, EA_OnInitializeTechnologies() which returns whole MDG as a string - and it works. But I don't know how to make my searches appear automatically in the project (or how to make my installer get them there).

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Model searches
« Reply #1 on: October 04, 2011, 09:39:02 am »
Step 1: Save your searches to XML by Edit>Model Search>Options>Manage Searches and click the "Export Search" button on the toolbar.

Step 2: Incorporate your searches in your MDG Technology by Tools>Generate MDG Technology File and check the "Searches" option on the Contents page of the Wizard.

Step 3: Deploy your technology using the EA_OnInitializeTechnologies() function.

That should be all there is to it.
The Sparx Team
[email protected]