Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - jespergain

Pages: [1]
1
Hello Modesto,

Thanks for your response.

The classes are indeed related trough generalization. I already discovered that you could display inherited attributes but didn't know you could also set other values to these attributes. That is also very helpful so thank you very much.

I also suspect that there is a possibility to generate the inherited attributes to code but can't seem to find how/where. Anyone else got any idea?

Thanks in advance!

2
Hi all,

I was wondering if it is possible to inherit attributes from other classes and use these inherited attributes for source code generation.
I am fairly new to Enterprise Architect and just started to develop a custom code template for the IEC-61131-3/Structured Text language.

The custom code template works pretty fine already, but I can't figure out how to list inherited attributes from other classes.
I already investigated the Linked Attribute Template from other code templates but can't get the results I hoped for.
An example below:

Class A:             Class B:
AttClassA1         AttClassB1     
AttClassA2         AttClassB2   

Class B inherits from Class A

Now I want to generate code of Class B containing all attributes listed above (so AttClassA1/A2/B1/B2)

Therefore, my question is as follows: Is it possible to list inherited attributes from another class and if so, how can I do this?
Is there a special syntax(code/macro/other templates) that I can use in the Code Template Editor?

I hope my question is clear enough for you all and I am looking forward to your reply!

Kind Regards,

Jesper

Pages: [1]