Author Topic: Automation Inteface : Geting Diagram Model Default  (Read 2576 times)

Diego_Croda

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Automation Inteface : Geting Diagram Model Default
« on: January 22, 2007, 05:30:26 am »
How can i get de Diagram model default using automation interface via API?

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +54/-3
    • View Profile
Re: Automation Inteface : Geting Diagram Model Def
« Reply #1 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.
The Sparx Team
[email protected]