Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Diego_Croda on January 22, 2007, 05:30:26 am

Title: Automation Inteface : Geting Diagram Model Default
Post by: Diego_Croda on January 22, 2007, 05:30:26 am
How can i get de Diagram model default using automation interface via API?
Title: Re: Automation Inteface : Geting Diagram Model Def
Post by: KP on January 22, 2007, 01:26:36 pm
Quote
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:
Code: [Select]
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.