Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: mse on November 01, 2024, 12:47:57 am

Title: How do you select packages and enforce hierarchy in model documents?
Post by: mse on November 01, 2024, 12:47:57 am
Given the following package structure, where I only care about Block 1 and Block 2:

Package A
   Package B
       Block 1 <<configuration item>>
       Block 2 <<configuration item>>
       Block 3

I want to create a <<model document>> that will output the information for Block 1 and 2, and have as its heading the Package B name like this:

1. Package B
   Block 1
   Block 2

However, my template so far outputs the name of every package, like this:

Package A
Package B
   Block 1  <<configuration item>>
   Block 2 <<configuration item>>

This is understandable because the template looks into the Package and searches through nested packages. I would like to ignore the packages however that do not have blocks of interest. I have a SQL query that gets the  <<configuration item>> blocks already and that works.
Title: Re: How do you select packages and enforce hierarchy in model documents?
Post by: Takeshi K on November 01, 2024, 09:51:51 am
If the package structure is exactly the same as you wrote it, the 'Skip root package' option might help.

HTH,