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
| /* | |
| * JArchi Script - Modify User Property Value | |
| * | |
| * This script allows you to search and replace a property value | |
| * on all model objects that have this property. | |
| * | |
| * Uses SWT dialog boxes for user interaction. | |
| */ | |
| // Import necessary SWT classes |
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 relationships between multiple selected elements | |
| * Enhanced version - supports multiple elements selection | |
| * Based on: https://forum.archimatetool.com/index.php?topic=1174.0 | |
| */ | |
| console.log("Distribute relations - Multi-element version"); | |
| var view = selection.parents().filter('archimate-diagram-model').first(); | |
| var elements = selection.filter('element'); |
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
| /* | |
| * JArchi Script - Search and Create View | |
| * Search for model elements by text and create a view with the results | |
| */ | |
| // Import necessary SWT classes | |
| var SWT = Java.type('org.eclipse.swt.SWT'); | |
| var Shell = Java.type('org.eclipse.swt.widgets.Shell'); | |
| var Display = Java.type('org.eclipse.swt.widgets.Display'); | |
| var Dialog = Java.type('org.eclipse.swt.widgets.Dialog'); |
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
| /** | |
| * JArchi Script: Duplicate Relationships | |
| * | |
| * This script duplicates selected relationships by creating: | |
| * - A new relationship with the same type, source, target and properties | |
| * - Visual connections in all views where the original relationship appears (optional) | |
| * | |
| * Usage: Select one or more relationships and run the script | |
| */ |
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
| // Generate Single-page HTML Export - Enhanced with Interactive Views | |
| // | |
| // Based on: https://github.com/archi-contribs/jarchi-single-page-html-export | |
| // Enhanced by: Claude (2026) - Added interactive SVG overlays | |
| // STABLE VERSION - Based on v1.9 + v2.0 uncheck fix | |
| // | |
| // Requires jArchi - https://www.archimatetool.com/blog/2018/07/02/jarchi/ | |
| // Add this script to the repertory of jarchi-single-page-html-export | |
| // === CONFIGURATION === |
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
| /* | |
| * jArchi Script: Create or update view based on properties (Elements and Relationships) | |
| * Creates a new view or updates an existing view with elements and/or relationships matching property/value pairs | |
| * Logic: OR between values of same property, AND between different properties | |
| */ | |
| console.clear(); | |
| console.show(); | |
| // Java imports for the GUI |
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
| /* | |
| * jArchi Script: Export Selected Views with Tree Hierarchy | |
| * | |
| * This script displays a dialog with the complete folder and view hierarchy. | |
| * You can check entire folders or individual views. | |
| * | |
| * Process: | |
| * 1. Display tree with checkboxes | |
| * 2. Save the current model with a new name (Save As) | |
| * 3. Delete non-selected views |
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
| // This script copy appearance of the selected object to all the views of the model for this object. | |
| // Function to copy properties from source to target visual object | |
| function copyVisualObjectProperties(source, target) { | |
| target.borderType = source.borderType; | |
| target.deriveLineColor = source.deriveLineColor; | |
| target.figureType = source.figureType; | |
| target.fillColor = source.fillColor; | |
| target.fontColor = source.fontColor; | |
| target.fontName = source.fontName; |
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
| //Script to put date of the day in the property "Date de mise à jour" | |
| // and also the user name of the git in property Auteur | |
| // Lit le fichier .gitconfig de l'utilisateur pour retrouver le nom | |
| var System = Java.type('java.lang.System'); | |
| var currentDate = currentDate || new Date(); | |
| const Files = Java.type('java.nio.file.Files'); |