'remove'/'hide' sub elements in included PlantUML

0 votes
asked Jul 23 in Question / help by hitak
recategorized Aug 9 by Serge Wenger Work

'remove'/'hide' sub elements in included file doesn't work.

For example, two files (parent.pu and child.pu) are in a directory, and parent.pu includes child.pu.

child.pu

@startuml

component a {

    component a_sub

}

component b {

    component b_sub

}

@enduml

parent.pu

@startuml

!include child.pu

remove a

remove b_sub

@enduml

'remove a' works. It removes whole 'component a'

'remove b_sub' doesn't work. Whole 'component b' containing 'b_sub' remains drawn.

I expect that 'remove b_sub' draws only 'component b' (only 'b_sub' should be removed)

This feature used to work as I expected last year, I think. So I made some diagrams which include many other PlantUML files. Without this feature, these diagrams generate so huge figures and almost useless.

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.
...