Hi,
i'm currently working to create a template to export requirements from a project.
The requirements are organized as depicted in this image:

So there can be one or more requirement diagram (CF001, CF002, etc..)that organize the overall requirements.
A requirement is included in at least one diagram.
I'd like to export a separate chapter for each requirement diagrams, containing image diagram and the description of the included requirements.
now i'm using an OCLData set with the following query:
SafetyRequirement.allInstances()
with this query i can extract all requirements and i can filter them for example using the kinf of requirement as key, to create "static" subchapters.
I'd like to create a flexible way to separate requirements according to the requirements diagram structure. i don't know at prior the requirement diagram number.
Thanks
Samuele