Diagrams and ownedElements

With the last call I get the error :
Invalid for statement: Couldn’t find the ‘eAllContents(org.obeonetwork.m2doc.element.MImage,EClassifi erLiteral=DRepresentationElement)’ service
I don’t understand why.

With the last call I get the error :
Invalid for statement: Couldn’t find the ‘eAllContents(org.obeonetwork.m2doc.element.MImage,EClassifi erLiteral=DRepresentationElement)’ service
I don’t understand why can you help me please ?

Hello,
You should use “representationByDescriptionName” instead of “asImageByRepresentationDescriptionName”
Regards

Thanks.
But it only returns for diagrams located at the same level under the root element Physical System.
How for all diagrams recursively under the root element Physical System?

In the file atached there is an example how to publish class diagrams following the lists with shown elements.