Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: carlos.ADS 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!
-
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