This is the continuation of Florents request. First the original question:
Hello Jan Hoping that you and your family are fine.
Finishing our discussing for being able to generate the list of blocs with their inputs/output ports we came to a solution where we can first derived a FMEA and then we can add a column of type derived. like :

In the model browser I have :

I succeed to list the port using :self.element.oclAsType(sysml::SysMLElement).the_owned_elements.oclAsType(sysml::SysMLFlowPortUsage)
1. I was wondering why if I removed oclAsType(sysml::SysMLElement) it does not work ?
2. If I use oclAsType(sysml::SysMLFlowPortUsage) to filter only port In Element 3 I should have port and I do not see it ? see the results when I do not have this filtering...

3. Last how to remove Element1:: in the name of ports ?