DSD-DBS / py-capellambse

A Python 3 headless implementation of the Capella modeling tool.

Home Page:https://dsd-dbs.github.io/py-capellambse/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

State Diagram Export Problem

juanvaccarezza opened this issue · comments

Hi!
While exporting State Machine Diagrams several problems are detected on transitions:

Image inside capella:
MSM  test
Image on jupyter:
Screenshot 2023-01-09 180609

Problem 2:
Image inside capella:
MSM  test2
Image on jupyter:
Screenshot 2023-01-09 180850

Best Regards,
Juan

Hi juanvaccarezza,

I worked on your issue and got to this state:
Capella:
image

generated SVG:
image

The rounded corners aren't easy to fix since 2 individual boxes are rendered. Further more pixel perfect routing (start + end points of transitions) are hard to calculate. We don't get all data from the .aird files. Please let me know if this is enough for you to work with.

Greetings

Hi Juan,
sorry for replying so late. The label is taken directly form the name attribute of the diagram element in the .aird file. Capella takes the text from the trigger expression. On a StateTransition you don't just have a description. Checkout what attributes are available for it here.

Cheers

The Trigger description isn't rendered in the label of the StateTransition in the diagram as Capella isn't doing that either. I hope that diminishes any leftover ambiguity.

Cheers