Diagram-model-group mask a component

Started by TNT44, July 22, 2023, 11:20:18 AM

Previous topic - Next topic

TNT44

Hi,

I export a view with a diagram-model-group (group) and an Application component inside.

I found the way to create a diagram-model-group and the Application component


My problem is the order of création

The diagram-model-group mask the Application component inside in the creation of the view.

Any way to correct the display ? a function ?

Thank you

Jean-Baptiste Sarrodie

Hi,

If you want the application to be nested inside the visual group, then you have to add the application after the group or else the group will be on top. Furthermore, you have to either add the application to the view and set the optional autoNest parameter to true, or add the application to the visual group.

Regards,

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

TNT44

#2
Hi Jean Baptiste ..

I understand the solution ..
I export elements to a json file ..
but, I need to know .. if an element is inside another .. and if is nested ?

for exemple an "application component" inside another "application component".
or an "diagram note" inside  an "application component".

I have the same probleme with a Visual Connections ..

Phil Beauvoir

> I need to know .. if an element is inside another .. and if is nested?

If a visual element is nested inside of another visual element its parent is that visual element. Otherwise the parent is the diagram model:

// Get selected object
let selected = selection.first();

// Get the parent
let parent = $(selected).parent().first()

> I have the same probleme with a Visual Connections

Nesting doesn't apply to visual connections as they are on a separate layer.
If you value and use Archi, please consider making a donation!
Ask your ArchiMate related questions to the ArchiMate Community's Discussion Board.