Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: stao on June 09, 2011, 12:37:38 am

Title: Repository.ImportTechnology does not work
Post by: stao on June 09, 2011, 12:37:38 am
Hi,
i have a problem to use this method correctly.
iam using EA from an extern program so i cant use the OnInitializeTechnology method to inject my mdg file.

Code: [Select]
repository = new EA.Repository();
          bool val = repository.ImportTechnology(Properties.Resources.techFile);

the techfile string contains the xml data of the mdg technology.
the returnvalue is always false.
where is my mistake?
Title: Re: Repository.ImportTechnology does not work
Post by: Eve on June 09, 2011, 08:59:57 am
OnInitializeTechnology  is called before a model is loaded.
ImportTechnology imports the technology into the current model.

You should return your xml from OnInitializeTechnology.