Using Python4Capella to extract Actors, Activities and Related Diagrams/ Scenarios #208
mm-capella
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have been building a model in the Operational Analysis layer and mainly created scenarios in the OAB space and consequently created diagrams in the OES space. I have been using Python4Capella to extract data through the whole model and have easily collected the actors and their allocated activities, however, I am struggling to find a code to see which diagrams/ scenarios they have been used in. The semantic browser shows that they have been allocated so there should be some data to connect them, however when I check the 'Python4Capella Simplified Metamodel' word document, there seems to be no function that can obtain the scenario/ related diagram from the Operational Analysis class. Alternatively, I tried working from the Scenario class but all I can call on are the State Fragments (attached to Operational Activities) and Sequence Message (Interactions). This would be close, however the StateFragment is unnamed so it returns 'None' for the name.
I was wondering if anyone has worked on extracting the data from different classes or anything similar.
Beta Was this translation helpful? Give feedback.
All reactions