Export script demo for exchange scenario elements

Hello everyone,
I use Exchange Scenario[ES] to describe test scenarios. In order to continue the work in test environment, I want to export the instanceRole/SequnceMessage/CombinedFragment as well as Operand out.

Because of the complexity like inner connection between combined fragment and its embedded fragments, type of combined fragment and its operand, it seems better to have a framework to elaboration on. Anyone kind could give a demo scripting framework for that exchange scenarios?

Thanks a lot

Python4Capella should cover this. An example of Python script that retrieves Scenario from Capability and export them to an .xlsx file.

To get InstanceRole, SequenceMessage, and CombinedFragment you can check the Scenario class.