Github-Pages on: https://tobiashochguertel.github.io/c4-draw.io/ (which is the same as the README.adoc file, but I think it’s better to read there…)
You can make C4 Architecture Software System Models with draw.io.
This is a C4 Modelling plugin for draw.io, which provides C4 Notation Elements in draw.io.
-
Access to https://www.draw.io/.
-
Save the drawing, or decide later: File → Save → Option
-
Open the plugin dialog: Extras → Plugins
-
Open the add plugin dialog with an click: Add
-
Put in the field Enter Value (URL): the link to the plugin: https://tobiashochguertel.github.io/c4-draw.io/c4.js
-
Click on Apply
-
Reload the page! to see the C4 Notation Shapes in the shape panel (figure 1).
-
Drag a C4 notation shape on the diagram paper
-
The most C4 notation shapes provide an small gear icon when they are selected. (figure 3)
-
Edit the Properties of the selected C4 Notation Shape: (figure 4)
-
Click the small gear to open the properties dialog (figure 3)
-
Press the key-stroke CMD+M to open the properties dialog (figure 3)
-
,or use the menu: Edit → Edit Data (CMD+M) (figure 6)
-
-
Input Cursor / Focus is on the first field of the dialog, and with tab you can jump through the fields and submit (figure 5).
-
Some C4 shapes have issues/limitations which I description in this section:
-
Has also a properties dialog, but the small gear icon isn’t available with this shape. (technical reason, I haven’t found a solution, yet.)
-
To open for a C4 Relationship shape the Properties Editor: — key-stroke or over menu.
-
Has also a little technical issue, to open the properties dialog, — gear icon or over menu.
-
is possible,
-
can be handy when you want to (re-)format the text, e.g. bold, italic, font size or when you want to insert a line break within the text/properties.
-
but keep in mind,
-
if you change the text here directly, and as next open the properties dialog of this shape, your changes will get lost because the information on the shape will be reset to the values from the properties dialog.
Sorry for these issues, I keep fixing these in my spare time, feel free to create an issue, or provide an pull request, hints and ideas what We could improve!
Key-Stroke | Description |
---|---|
CMD+M |
Open’s the Data-Editor Dialog (properties dialog) of an selected shape on the diagram. |
I want to thank the following people and organisations:
-
Draw.io Plugin: AWS Step Functions Workflow Designer, which has inspired me to done this plugin, and what I use as code-base to done the plugin.
-
C4Model Author: Simon Brown, thanks for let me know that this us useful and thanks for sharing your knowledge about software architecture.
-
draw.io, to provide draw.io as open source software system.