Author Topic: Get tagged values given to nested ports  (Read 1830 times)

blea

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Get tagged values given to nested ports
« on: August 12, 2024, 10:44:30 pm »
Hi,

I am relatively new to EA scripting and am experiencing problems with tagged values that are assigned to nested ports.

The idea behind the use of nested ports was to be able to have the same inherited tagged values for the ports in the element blocks to which they have been assigned. So if a change in its tagged value was made, that change will apply to the remaining ports that have the same interface block as type.

As I try to extract/access the given tagged values, I only get those that I have assigned to the specific port and not the tagged values that are given/assigned through the interface blocks.

I'm not quite sure how to attach an image to the post, but the properties window for the tagged values looks something like this:
Port (Power)
         min         12
from in

from interfacePower
         min         64


In the above example, the interfacePower is the interfaceblock which the port has as its type. It is the tagged value assigned to this interfaceblock I want to be able to extract 

Thanks in advance

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13286
  • Karma: +556/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Get tagged values given to nested ports
« Reply #1 on: August 12, 2024, 11:54:13 pm »
The "inherited" tagged values are actually not stored at the instance at all.
It only looks like they are because they are presented here in the GUI.
You'll have to find them at the classifier.

Geert

blea

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Get tagged values given to nested ports
« Reply #2 on: August 13, 2024, 12:53:50 am »
Perfect, thank you.
I solved the problem and can get the tagged values ​​extracted now :)