jArchi: how to get all elements from specific folder?

Started by David Skarka, November 27, 2018, 15:08:48 PM

Previous topic - Next topic

David Skarka

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.

Phil Beauvoir

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);
});

If you value and use Archi, please consider making a donation!
Ask your ArchiMate related questions to the ArchiMate Community's Discussion Board.