I am trying to write a script for checking, whether all Archimate elements from a specific folder are in some view.
Is there a way, how to get elements from the folder?
Many thanks for the help.
Assuming that you reference the selected folder(s) by using the global variable "selection" then the following iterates over all child elements of the folder:
selection.children().each(function(element) {
console.log(element);
});