Being new to UML/OCL/Papyrus the lack of exchange about this gives me a feeling I might be on the wrong path:
Working on a class diagramm I would like to layer a) all objects that are members of a composition and b) all interfaces that inherit from another interface. That is, I would say, layering by direct and indirect association.
In papyrus I could do this by simply adding elements to a layer. More convenient would be the use of Reg Exp Layers, which select all elements returning TRUE on an OCL boolean expression. As an example, it is easy to put a single element on its own layer via self.element.oclAsType(uml::NamedElement).name='myclass'
But I would also like to put all (downwards) associated elements of 'myclass' on that layer. Any suggestions?