Closed juanrferia closed 2 years ago
You should be able to use a script/plugin to call the removeElementsWithNoRelationships()
method on the view instance; see https://github.com/structurizr/java/blob/master/structurizr-core/src/com/structurizr/view/View.java#L394 for more.
Working like a charm! Thank you Simon.
When defining a view I usually include and exclude elements and relationships based on tags. I observed some cases in which I end with some isolated elements in the view. When that happens, I identified them and exclude them explicitally.
As an example:
In that view, software system 3 will be presented in the diagram as an isolated element. In that case, I usually add it manually exclude softwareSystem3 to exclude that element from the view.
It would be great to have a way to exclude all elements in the view without any relationship. Maybe using an expression which allows it.