Book a Demo

Author Topic: EA REST API  (Read 24447 times)

sarathipriyan

  • EA User
  • **
  • Posts: 22
  • Karma: +0/-0
    • View Profile
EA REST API
« on: July 02, 2020, 08:01:08 pm »
Hi All.

 We are evaluating EA as a plc management system. For this assessment, we need to integrate with the EA system so that our requirements/epics/stories sync up with the EA system. Is the EA REST API the right interface/strategy? Is there a UML plugin or SDK that we should be utilizing? Is there a sample code to facilitate our assessment?
 
1. We have installed an ultimate (trial) version of EA. When we try the REST API to extract objects, based on some documentation, we tried to install an API Plugin opensource and we had a versioning error! Any ideas?

"Unsupported
This version of Visual Studio is unable to open the following projects. The project types may not be installed or this version of Visual Studio may not support them"


2. I tried the API plugin based on the below link
https://github.com/GeertBellekens/Enterprise-Architect-Add-in-Framework


Any pointers is greatly appreciated

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: EA REST API
« Reply #1 on: July 02, 2020, 09:08:52 pm »
There is no REST API on the EA Client, only on the pro-cloud server (PCS)

But there is a regular API that you can use to interact with the application.
The error you got was probably because the project contains WIX installer projects and you don't have the WIX extension installed, but that shouldn't stop you from compiling an add-in. (you won't be able to build the installer though)

For more pointers see https://bellekens.com/writing-ea-add-ins/

Geert
« Last Edit: July 03, 2020, 01:23:48 pm by Geert Bellekens »

sarathipriyan

  • EA User
  • **
  • Posts: 22
  • Karma: +0/-0
    • View Profile
Re: EA REST API
« Reply #2 on: July 02, 2020, 09:48:13 pm »
Thanks for the update @Geert Bellekens.i will let you know if I need any further help

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: EA REST API
« Reply #3 on: July 03, 2020, 08:59:35 am »
There is no REST API on the EA Client, on the pro-cloud server (PCS)
I'm pretty sure you know this, but just to be clear. The OSLC interface provided by PCS is a REST api.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: EA REST API
« Reply #4 on: July 03, 2020, 01:24:24 pm »
There is no REST API on the EA Client, on the pro-cloud server (PCS)
I'm pretty sure you know this, but just to be clear. The OSLC interface provided by PCS is a REST api.
I meant to say "There is no REST API on the EA Client, only on the pro-cloud server (PCS)"

Geert

sarathipriyan

  • EA User
  • **
  • Posts: 22
  • Karma: +0/-0
    • View Profile
Re: EA REST API
« Reply #5 on: July 04, 2020, 02:12:46 am »
Hi Geert,


based on the link: https://bellekens.com/2011/01/29/tutorial-create-your-first-c-enterprise-architect-add-in-in-10-minutes/

Tutorial: Create your first C# Enterprise Architect add-in


I have completed 2 steps based on the instruction

Step 1: Create the add-in DLL

Step 2: Add the registry key


but unable to complete final step

Quote
Step 3: Try it out in EA
Alright, now the add-in is ready to be used. So fire up EA, open a project and right-click on an element in the project browser, or a diagram.

You should now see an additional menu option with the options we defined.

I tried step 3 but not able to add (add-in) EA project .that options not showing

how do I add (add-in) To the EA project?



« Last Edit: July 04, 2020, 04:13:26 am by sarathipriyan »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: EA REST API
« Reply #6 on: July 04, 2020, 03:55:58 am »
Check what the Manage add-ins window says.

Geert

PS. My name is Geert, not greet, the latter is a name for a female.

sarathipriyan

  • EA User
  • **
  • Posts: 22
  • Karma: +0/-0
    • View Profile
Re: EA REST API
« Reply #7 on: July 04, 2020, 04:20:37 am »
Sure Geert, Thanks for the update

sarathipriyan

  • EA User
  • **
  • Posts: 22
  • Karma: +0/-0
    • View Profile
Re: EA REST API
« Reply #8 on: July 08, 2020, 01:44:36 am »
Check what the Manage add-ins window says.

Geert

PS. My name is Geert, not greet, the latter is a name for a female.



Hi Geert,

I try to deploy the demo addin
 (see https://bellekens.com/2011/01/29/tutorial-create-your-first-c-enterprise-architect-addin-in-10-minutes/)

The opensource code has issues compiling due to (Can not register type library)

ERROR:

"Severity   Code   Description   Project   File   Line   Suppression State
Error      Cannot register type library "C:\Users\Terafast\source\repos\MyAddin\MyAddin\bin\Debug\MyAddin.tlb".
Error accessing the OLE registry. (Exception from HRESULT: 0x8002801C (TYPE_E_REGISTRYACCESS))   MyAddin"




and also I'm getting the message 'Error - missing (0x800401f3)' for all add-ins in the Manage Add-in window

googled through the web and tried, but can't find a clear explanation of the problem.



Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: EA REST API
« Reply #9 on: July 11, 2020, 04:58:39 pm »
Looks like you didn't start Visual Studio as administrator.

Geert