Dynamically put object into another one.

0 votes
asked Dec 13, 2019 in Question / help by Bartek

Hello,

Currently I'm working on C4 architecture model of application. I would like to create a puml file contains definitions of components and then use them in another file. 

I have two problems:

1.I would like to hide parent(OutsideC2) but display child (InsideC1). It seems to be legit, but it might be useful in some cases to display child. Is there any variable to change this behavior?

2. I cannot put already defined rectangle inside another one. It there anyhow possbile to do this in another file?

Question:

I there a possbility to change parent of item dynamically?

Example:

@startuml "Definitions"

'Case 1

rectangle "OutsideC1" as outsideC1 {

    rectangle "InsideC1" as insideC1 {

    }

}

'Case 2

rectangle "OutsideC2" as outsideC2 {

}

rectangle "InsideC2" as insideC2 {

}

@enduml

In 2nd file

@startuml "Usage"

!include ObjectDefinitions.puml

'Case 1

I would like to hide parent(OutsideC2) but display child (InsideC1)

'Case 2

' Here i would like to put

'InsideC2 into OutsideC2

@enduml

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...