You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+82-64Lines changed: 82 additions & 64 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
PlantUML macros and includes for creating Archimate Diagrams easily.
4
4
5
-

5
+

6
6
7
7
## Table of Contents
8
8
1.[Background](#background)
@@ -33,34 +33,59 @@ ArchiMate offers a common language for describing the construction and operation
33
33
[Archimate-PlantUML](https://github.com/plantuml-stdlib/Archimate-PlantUML) combines the benefits of PlantUML and ArchiMate for providing a simple way of creating and managing ArchiMate diagrams. The Archimate-PlantUML is a set of macros and other includes written on top of [PlantUML Archimate specification](http://plantuml.com/archimate-diagram), with an aim to simplify the syntax for creating elements and defining relationships.
34
34
35
35
## Getting Started
36
-
Include the `Archimate.puml` file in your `.puml` or `.wsd` file:
36
+
Include the `Archimate.puml` file in your `.puml` or `.wsd` file. There are multiple options, depending on how current you want to be
'!theme archimate-alternate from <archimate/themes>
45
+
'!theme archimate-handwriting from <archimate/themes>
46
+
'!theme archimate-lowsaturation from <archimate/themes>
47
+
'!theme archimate-saturated from <archimate/themes>
48
+
'!theme archimate-standard from <archimate/themes>
49
+
40
50
```
41
51
42
-
For offline use, download the files and reference them locally:
52
+
### Using a version available on the internet
53
+
54
+
You will need to download the version (`Archimate.puml` file plus the `./themes/` folder that goes with it) and store them
55
+
some place locally. Then reference them like this:
56
+
43
57
```plantuml
44
-
!include path/to/Archimate.puml
58
+
59
+
!global $ARCH_LOCAL = false
60
+
!$LOCAL_FOLDER = "[path to the folder that holds Archimate.puml]"
61
+
!include $LOCAL_FOLDER/Archimate.puml
62
+
63
+
' optionally choose one of the available themes
64
+
'!theme archimate-alternate from $LOCAL_FOLDER/themes
65
+
'!theme archimate-handwriting from $LOCAL_FOLDER/themes
66
+
'!theme archimate-lowsaturation from $LOCAL_FOLDER/themes
67
+
'!theme archimate-saturated from $LOCAL_FOLDER/themes
68
+
'!theme archimate-standard from $LOCAL_FOLDER/themes
69
+
!endif
45
70
```
46
71
72
+
_Note: using `!includeurl` on a `https://raw.githubusercontent.com/plantuml-stdlib/Archimate-PlantUML/master/Archimate.puml`**may** not work, because that file by default relies on the built-in themes, and the latest version on `master` can expect different theme settings._
73
+
47
74
## Usage
48
75
After you have included `Archimate.puml` you can use the defined macros for ArchiMate elements.
49
76
50
77
### ArchiMate Elements
51
78
The ArchiMate elements are defined in the following pattern:
Nesting allows grouping components hierarchically, improving diagram clarity. There are no limitations on the number of levels of nesting.
153
-
The implementation allows nesting of any components inside any other components. When nesting, the element will be displayed as a rectangle with the archimate archetype on the top right corner.
154
-
169
+
The implementation allows nesting of any components inside any other components. When nesting, the element will be displayed in its normal shape, with the archimate archetype on the top right corner.
155
170
156
-
Nesting can be enabled in the following pattern
171
+
Nesting is automatic, just add the nested elements between curly braces `{ ... }`:
If you have any ideas, [open an issue](https://github.com/plantuml-stdlib/Archimate-PlantUML/issues/new) or fork the repository and submit a pull request.
0 commit comments