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
/* | |
* New Archi Script | |
*/ | |
// Places string on clipboard | |
function SetClipboardString(string) { | |
var Toolkit = Java.type("java.awt.Toolkit"); | |
var Transferable = Java.type("java.awt.datatransfer.StringSelection"); |
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
/* | |
Author: Thomas Klok Rohde | |
Description: Layout ArchiMate views using ELK (Eclipse Layout Kernel) compiled to JavaScript. The current implementation does not consider edges with edges (sections). | |
WARNING: This has only been tested on Windows 10 with Edge (WebView2) | |
History: | |
October 11, 2022 : Created with base set of scripts | |
*/ | |
console.show(); | |
console.clear(); |
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
/**************************************** | |
* Step by Step JArchi script examples * | |
* v0.1 * | |
* Francois Coudeville * | |
* May 2021 #jArchi * | |
* #Beginner #Guide #Tutorial #Example * | |
****************************************/ | |
//--------- | |
// 1 Utils |
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
/* | |
* Import Elements from CSV | |
* | |
* Requires jArchi - https://www.archimatetool.com/blog/2018/07/02/jarchi/ | |
* Requires PapaParse - https://www.papaparse.com/ | |
* | |
* This script imports CSV containg followin structure: | |
* * Name | |
* * Documentation | |
* * Type (element type) |
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
// Merge multiple concepts (and delete others) | |
// | |
// Requires jArchi - https://www.archimatetool.com/blog/2018/07/02/jarchi/ | |
// | |
// This script merges multiple concepts (and delete others) | |
// | |
// Version 1.1 (2020/01/20) Add an option to keep only the content of the "target" concept | |
// Version 1.0 (2019/11/12) First version published | |
// | |
// Known limitation: works only on elements, not relationships |
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 Name: Quality Check - UX Relations | |
Script Description: | |
A jArchi script for use on Archi tool models. | |
Using a specific view called ConceptDefinition to represent a cut down version of the full ArchiMate model, | |
check all the model relationships to flag up any unexpected ones. |
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
/* | |
* Export All Views to Markdown | |
* | |
* Based on smileham/Export to Markdown.ajs - https://gist.github.com/smileham/578bbbb88dc0ed5a1403f3b98711ec25 | |
* (c) 2018 Steven Mileham | |
* | |
* | |
* Requires jArchi - https://www.archimatetool.com/blog/2018/07/02/jarchi/ | |
* | |
* Markdown - https://www.markdownguide.org/ |
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
// RemoveBentpoints | |
// | |
// Requires jArchi - https://www.archimatetool.com/blog/2018/07/02/jarchi/ | |
// | |
// This script takes a selection of visual objects as input, filter it to keep only relationships and remove all their bendpoints | |
// | |
// (c) 2018 Jean-Baptiste Sarrodie | |
$(selection).filter("relationship").filter(function(o) {return o.view}).each(function(o) { | |
var view = o.view; |