Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: dcaruso on January 18, 2017, 04:29:41 am

Title: Importar datos de referencia
Post by: dcaruso on January 18, 2017, 04:29:41 am

I am doing a methodological guide, and my add-in would provide different templates packages with diagrams according to the type of requirement added to a kanban, to administer a project using scrum, with burndown chart and etc. etc. I do not find in the repository class or project class a method for importing data from references. Is it possible to do this?
Title: Re: Importar datos de referencia
Post by: qwerty on January 18, 2017, 04:38:07 am
xmlres = Respository.CustomCommand("Repository", "ImportRefData", sXML);

The parameter sXML is a string value containing the reference data from a former export.

(from my Scripting book)

q.
Title: Re: Importar datos de referencia
Post by: dcaruso on January 18, 2017, 06:15:34 am
Genius!  Thank you. Where can I get your Scripting book? I need import profiles and images
Title: Re: Importar datos de referencia
Post by: qwerty on January 18, 2017, 07:06:22 am
Just click on the icon below my post :-)

There's (or at least had been) a quirk with importing images. I can't remember the details, but it had to do with identifiers being mixed up, which was the reason for me to write my own image import (you'd find more details in my Inside book).

q.