Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started 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.
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?
-
OnInitializeTechnology is called before a model is loaded.
ImportTechnology imports the technology into the current model.
You should return your xml from OnInitializeTechnology.