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'); |