Book a Demo

Author Topic: Doubt with the creation of instances via the api  (Read 3493 times)

emiliano.davila

  • EA User
  • **
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Doubt with the creation of instances via the api
« on: August 25, 2023, 06:25:04 am »
Hello everyone,
I have a question about the generation of instances of elements, is there any way to do it through the EA api?
I was reading the documentation and I can't find anything that helps me to do this.

I can simulate the creation of it by making inserts in the database with the fields that correspond to an instance and its relations, but is there a cleaner way to do this?

 To better understand my question, I am trying to replicate a behavior similar to the following:




Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Doubt with the creation of instances via the api
« Reply #1 on: August 25, 2023, 02:29:14 pm »
Create an element of type Object, and set it's classifierID to the elementID of the class.

Geert

emiliano.davila

  • EA User
  • **
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Re: Doubt with the creation of instances via the api
« Reply #2 on: August 26, 2023, 06:18:26 am »
That worked, thank you very much for the help!