I have been fighting with this for a few months already and have checked all the solutions provided within this forum to extract diagrams for the M2Doc, the ones that do work extract way too many diagrams that are non related
However in M2Doc interpreter this gives empty results. If I try the self.eAllContents().representationsByDescriptorName method it returns all diagrams that have the same descriptor instead of only the children, if I use viewpoint::DRepresentationDescriptor.allInstances().target.id ->select(d | d = ‘id‘) it returns the data package just fine
However I am getting the error “ERROR: Couldn’t find the ‘getSBQuery(EClassifier=DataPkg,java.lang.String)’ service (4, 39)“ when trying to do self.getSBQuery(‘All Related Diagrams‘) - cant add screenshot because it only lets me one per publication!
Did you test in the M2Doc Interpreter view or by generating the document ?
Aso I pasted some code with wrong quotes (‘‘ instead of ‘’ I hope they are not transformed by the forum…) so you might want to check you quotes.