Welcome to PlantUML Q&A, where you can ask questions and receive answers from other members of the community.

You can also submit new features request and vote for them.

How to acces to diferent blocks in a included file?

0 votes

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

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

1 Answer

0 votes

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!

answered Sep 28, 2015 by plantuml (124,290 points)
Support This Project Offer 250 Mo! Follow PlantUML on Twitter
...