This file contains 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 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'); |