py-capellambse and sequence links in Functional Chain Description diagrams #173
-
Hello, From the code below, I having problems getting the "Sequence link" objects that exist in a Functional Chain Description diagram. Did I miss anything?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi, and sorry for the late reply. Whenever you deal with diagrams you can investigate its This is what I'm receiving for our test [SFCD] diagram: Now you can iterate over it and filter with the condition This information can also be retrieved from the generated documentation, here. But we want to tackle a mayor refactoring for the aird-parsing and resulting diagram export for a long time. This should then come with a nice notebook showing all the capabilities of our Cheers. |
Beta Was this translation helpful? Give feedback.
Hi,
and sorry for the late reply. Whenever you deal with diagrams you can investigate its
nodes
attribute. E.g.:This is what I'm receiving for our test [SFCD] diagram:
Now you can iterate over it and filter with the condition
.xtype.endswith("SequenceLink")
which is more reliable since instance checks require that an declaration in our model submodule exists.This information can also be retrieved from the generated documentation, here. But we want to tackle a mayor refactoring for the aird-parsing and resulting diagram export for a long time. This should then come with a nice notebook showing all the capabilities of our
Diagram
object and best practices.Cheers.