This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Map ArchiMate Subset | |
| * --------------------- | |
| * Analyzes the current Archi model and creates a new model (opened directly in | |
| * Archi's UI) containing a single "ArchiMate Subset" view showing: | |
| * | |
| * - One node per distinct element type (including specializations), labelled | |
| * "TypeName (count)" or "TypeName [Specialization] (count)" | |
| * - One connection per distinct (sourceType, relType, targetType) triple, | |
| * labelled with the count of matching relationships |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Wrap Label | |
| * | |
| * Adds (or updates) a word-wrap label expression on every selected element or relationship. | |
| * | |
| * Behaviour: | |
| * - Asks for the desired character-wrap width (default: 20). | |
| * - For each selected object, inspects any existing labelExpression: | |
| * • No expression → wraps ${name} | |
| * • Already wrapped → updates the wrap width only |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Distribute Elements | |
| * | |
| * Distributes selected diagram elements in the active Archi view either | |
| * horizontally or vertically with equal spacing between them. | |
| * | |
| * Usage: Select 2+ elements in a view, then run the script. | |
| */ | |
| (function () { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Add consecutive ID to selection | |
| * (c) 2025 Timo Laine www.timoroso.com | |
| */ | |
| console.log("Add consecutive ID to selection"); | |
| var propName = window.prompt("To which property do you want to add a consecutive ID for selected elements or relations? (leave empty to cancel)?", ""); | |
| if (propName) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Color relations by property value | |
| * | |
| * Requires jArchi - https://www.archimatetool.com/blog/2018/07/02/jarchi/ | |
| * | |
| * Original script (c) 2022 Steven Mileham | |
| * Modifications to support relationship colorization (c) 2025 Timo Laine | |
| * | |
| */ | |
| var debug = false; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Mapify | |
| * Author: Timo Laine (timoroso.com) | |
| * Arranges selected elements alphabetically into a neat grid. | |
| * The number of columns is user configurable. | |
| */ | |
| // Get Archi's Preference Store | |
| const archiPrefs = Java.type('com.archimatetool.editor.ArchiPlugin').PREFERENCES; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Information flows between applications | |
| * | |
| * This script is under construction! | |
| * | |
| * This script provides a list of information flows between application components. | |
| * It is based strictly on the relationships found in the model and is therefore | |
| * independent of views. In case more attributes for the flows are needed, they can be | |
| * added easily (IntegrationPlatform is provided as an example). | |
| * |