How to acces to diferent blocks in a included file?

0 votes
asked Sep 25, 2015 in Wanted features by alediazrc (120 points)

I'm traying to access to difrent blocks when i include a file, and i dont know how to do it, because when i include the file without "!1"  the app takes the first block as default, but its impossible (to me) to acces to second block for example. I tried to include again the same file with a different block, but it says to me that "File  already included".

@Code:

@startuml
namespace Yacare.AdiministracionBundle.Entity  {
    class Expediente << class >> {        
    }
    
}
!include /home/alediaz/workspace/Yacare1/docs/Clases/Tapir/Base/Traits.iuml
Tapir.BaseBundle.ConId<...Yacare.AdiministracionBundle.Entity.Expediente: Tapir.BaseBuConNombre<--Yacare.AdiministracionBundle.Entity.Expediente: Implementa
@enduml


Redlabel: is the line that i'm trying to access, is in the same file, but different block.

Waiting for your answer.

Regards

1 Answer

0 votes
answered Sep 28, 2015 by plantuml (134,510 points)

The bug can be reproduce with those two files:

File Traits.iuml containing 9 lines:

@startuml
class block1
@enduml
@startuml
class block2
@enduml
@startuml
class block3
@enduml

Main file:

 @startuml
 class foo
 !include Traits.iuml
 !include Traits.iuml!1
 !include Traits.iuml!2
 @enduml

You can download the last beta that should fix the issue: https://dl.dropboxusercontent.com/u/13064071/plantuml.jar

Does is sound good ?

Thanks!

...