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
/* | |
* Select 2 elements of the same type and merge the second one into the first one. | |
* Optional: delete the second one when it's not in use anymore. | |
* 2019, Ad Gerrits | |
*/ | |
function q(text) { | |
return '"' + 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
/* | |
* Show for selected elements in which views they are used | |
* 2019, Ad Gerrits | |
*/ | |
function UsedInViews() { | |
$(selection).each(function(e){ | |
if (typeof(e.concept) !== 'undefined') { | |
if($(e.concept).objectRefs().isEmpty()) { | |
console.setTextColor(255,0,0); |
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
/* | |
* Comparison of two views to see which Archimate elements are missing | |
* 2018, Ad Gerrits | |
*/ | |
console.clear(); | |
function checkViews (v1, v2) { | |
var v2elements = []; | |
$(v2).find('element').each(function (e) { | |
v2elements.push(e.concept.id); |