Author Topic: Get Binding Expression with Interop.EA  (Read 1170 times)

carlos.ADS

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Get Binding Expression with Interop.EA
« on: May 23, 2023, 01:04:38 am »
Hello,

I have the following code in cpp:

typedef std::list< XXXXX * > List;

I see the following information when I get the template info from the EA application (rigth botton over the element -> features -> Template parameters)

- Template parameter(s) [Empty]
 - Binding(s)
    - Binding Expression: XXXXX *
    - Type: Generalization
    - Target: list


But I don't know how i can obtain this information from the Interop.EA.dll.

I'm trying to get Template Biddings whit the following code:

for (int i = 0; i < typedefElement.TemplateParameters.Count; i++)
{
     TemplateParameter parameter = typedefElement.TemplateParameters.GetAt(i);
}


But the TemplateParameters is empty.

Can you give me some information? I need to get the Binding Expression and the target.

Thank you!
« Last Edit: May 23, 2023, 05:13:41 pm by carlos.ADS »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13065
  • Karma: +544/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Get Binding Expression with Interop.EA
« Reply #1 on: May 24, 2023, 05:07:16 pm »
Can you post an image (actually a link to an image on a public image hosting site such as imgur.com) of how the model looks?

If all else fails you might want to get the info yourself with a little SQL query.
I think this information is stored in t_xref.

Geert