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; |
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 add a note to a view with name of the view, date and your name | |
//Thank you to J-B Sarrodie | |
// Get the first view in the current selection | |
var view = selection.filter("archimate-diagram-model").first(); | |
// Get current date | |
var currentDate = new Date(); | |
// Create a new note and set its text |
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
/* | |
jArchi Script to create default application pattern into the active model. It creates the objects and relations. | |
It puts all objects into a folder per application and creates a view. | |
*/ | |
console.clear(); | |
console.log("Creating Default Application Pattern"); | |
//Pop up for application name, and check if that is already in the model | |
var appName = window.prompt("Name of the application to create", "My Application Service"); |
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
// Removes all properties from the model. | |
// | |
// (c) 2019 David Sara | |
function anonymize() { | |
$("element").each(function(element) { | |
properties = $(element).prop(); | |
if (properties.length > 0) { | |
properties.forEach(function(prop) { | |
element.removeProp(prop); |
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
// Delete all unused elements (not used in any View). | |
// | |
// (c) 2019 David Sara | |
function deleteUnusedElements() { | |
$("element").each(function(element) { | |
if($(element).objectRefs().isEmpty()) { | |
element.delete(); | |
} | |
}); |
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
/* | |
---------------------------------------------------About------------------------------------------------------------------------------------------------------------------ | |
Version 1 | |
This script loads archi elements from an Azure service map into archimate. It Shows the network communication between servers as found by azure service map. | |
All will be drawn on an model but without considering the data already in the model. In V2 (if that ever gets created) I will work using existing models and the data it has | |
Use the query below in service map to get the input file. Do not change the fields or field order from the query, you can change the fileters if you like. | |
I highly recomend you to filter out any connection that you consider irrellevant or junk. Running an input file of 2000 lines takes around 90 seconds on my laptop. |
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
/* | |
* Search by Properties | |
* | |
* Requires jArchi - https://www.archimatetool.com/blog/2018/07/02/jarchi/ | |
* | |
* Find all Archimate elements which match the properties of the selected element. | |
* | |
* | |
* Version 1: First release | |
* Version 2: Added layers to results |
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
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | |
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
/* | |
The goal is that a user creates a pattern on a view. Based on that pattern a SQL query is created to analyse the entire model for that view. | |
The model must be in a database created with herve database plugin (Link) This is very powerfull to analyse the model using SQL and by further extention BI tools like PowerBI | |
Check https://gevaertw.wordpress.com/generating-sql-queries-for-the-archi-database for more info | |
*/ | |
// | |
//-------------------------- Script Settings -------------------------------------------------------------- | |
// to set language comment or uncomment |