Simple script to generate Diagrams.net diagrams of topology files for FPrime framework. This script was created for internal usage.
Feel free to create issues, pull reguests and discussions.
-
Clone this repo:
git clone git@github.com:spacebit-apps/fprime-top2diagrams.net.git
-
Change directory:
cd fprime-top2diagrams.net
-
Install requirements:
pip3 install -r requirements.txt
-
Run script:
python3 top2drawio.py path_to_top_xml_file [output_file]
By default output_file is set to Top.drawio.
-
To view generated *.drawio file please use Desktop Diagrams.netreleases] application.
-
Layouting can be done via Diagrams.net application menu: Arrange -> Layout. According to out observations the most useful layout is Horizontal layout.
Diagram of the Ref application can be found on the Output/Ref.drawio folder. Layouting was done via Diagrams.net capabilites.
- N2G lib that helps to generate Diagrams.net diagrams in Python
- Diagrams.net for great diagrams tools
- Thanks NASA for FPrime - a great framework for space missions