Book a Demo

Author Topic: Details of APIs  (Read 3211 times)

pH

  • EA User
  • **
  • Posts: 72
  • Karma: +0/-0
    • View Profile
Details of APIs
« on: June 23, 2010, 03:42:20 pm »
Hi ,
Can some help me with where I can look for C# API details related to EA? I am 2 days old with respect to C# and am trying to write an add in for EA in C#. I could locate the APIs for Java but for C#I get lot of interfaces like IDualCollection, IDualPackage etc when I try to use EA (object?).. Where are those defined?

Any code snippet in C# used to loop through model,packages and elements available?

Thanks,
pH
<a href="http://webuml.org"><img src="http://webuml.org/images/webuml-badge.png" alt="Set UML Free!" style="border-width:0"></a>

mrf

  • EA User
  • **
  • Posts: 311
  • Karma: +0/-0
    • View Profile
Re: Details of APIs
« Reply #1 on: June 23, 2010, 03:57:54 pm »
This is probably the best point to start at for a cross-language description of the API :

http://www.sparxsystems.com/uml_tool_guide/sdk_for_enterprise_architect/repository3.htm

C# examples are shipped with EA at:

%PROGRAM FILES%\Sparx Systems\EA\Code Samples\C#_Sample

There is an example of recursively processing models/packages in the method DumpModel()
Best Regards,

Michael

[email protected]
"It is more complicated than you think." - RFC 1925, Section 2.8