Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Eamonn John Casey on September 21, 2017, 09:17:10 pm

Title: C# EA Wrapper available
Post by: Eamonn John Casey 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)
Title: Re: C# EA Wrapper available
Post by: Geert Bellekens 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 (https://github.com/GeertBellekens/Enterprise-Architect-Add-in-Framework)

Geert
Title: Re: C# EA Wrapper available
Post by: qwerty on September 21, 2017, 10:12:13 pm
You should be consistent in naming operations: FindorCreateConnector

q.
Title: Re: C# EA Wrapper available
Post by: Geert Bellekens 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
Title: Re: C# EA Wrapper available
Post by: Eamonn John Casey on September 22, 2017, 08:31:04 pm
Thanks.
Posted here: https://github.com/EamonnJCasey/Sparx-Enterprise-Architect-Wrapper