Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Diego_Croda on January 22, 2007, 05:30:26 am
-
How can i get de Diagram model default using automation interface via API?
-
How can i get de Diagram model default using automation interface via API?
Not easily. Outside your add-in (in EA) you could define a custom search using the SQL Editor. Use this search:
select value from usys_system where property='Default Diagram'
and then run it from your add-in with Repository.RunModelSearch. This will return a GUID which you can lookup with Repository.GetDiagramByGuid.