Author Topic: C# EA Wrapper available  (Read 336 times)

Eamonn John Casey

  • EA User
  • **
  • Posts: 87
  • Karma: +0/-0
    • View Profile
C# EA Wrapper available
« on: September 21, 2017, 09:17:10 pm »
If anyone wants it, I have been working on a wrapper for EA API in C#.
includes functions like:
Code: [Select]
EA.Element GetElementByName(int packageID, string elementName, string stereoType)
EA.Connector FindorCreateConnector(string fromElementGUID, string toElementGUID, string connectorDirection, string connectorStereoType)
EA.Element FindOrCreateElement(Package rootPackage, string elementName, string stereoType)
Package FindOrCreatePackage(Package parent, String packageToFind, String packageType)
List<EAQueryResults.EAConnector.Row> GetConnectorsByGuid(String fromGuid)

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 7815
  • Karma: +171/-21
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: C# EA Wrapper available
« Reply #1 on: September 21, 2017, 09:57:28 pm »
Maybe a good idea to publish it as open source software at github or similar?

I did so with my framework: https://github.com/GeertBellekens/Enterprise-Architect-Add-in-Framework

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 9029
  • Karma: +137/-126
  • I'm no guru at all
    • View Profile
Re: C# EA Wrapper available
« Reply #2 on: September 21, 2017, 10:12:13 pm »
You should be consistent in naming operations: FindorCreateConnector

q.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 7815
  • Karma: +171/-21
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: C# EA Wrapper available
« Reply #3 on: September 21, 2017, 11:19:58 pm »
You should be consistent in naming operations: FindorCreateConnector

q.
You don't understand. Its Findor who creates the connector. Findor is a Japanese manga character  ;D

Geert

Eamonn John Casey

  • EA User
  • **
  • Posts: 87
  • Karma: +0/-0
    • View Profile
Re: C# EA Wrapper available
« Reply #4 on: September 22, 2017, 08:31:04 pm »