Author Topic: Nesting template fragments ?  (Read 4338 times)

MarcinG

  • EA User
  • **
  • Posts: 53
  • Karma: +0/-0
    • View Profile
Nesting template fragments ?
« on: February 14, 2025, 07:17:54 pm »
Hello everyone,

does anyone know if there is a plan to implement a possibility of nesting document template fragments ?  That would be really helpful, instead of tinkering with the structure of a repository and organization of packages.  My use case if following : I have technology items (nodes, with ports) for all projects in a single place, applications components in a single places, instances in another ... you get the thought.  Now I have a package with a diagram where things come together.  Now I would like to dump a document that describes what is in the diagram, but also get elements from outside the diagram, in case there is any relationship  (i.e. another node having a flow to a port of a node in the diagram).  It should be structured in the document as :
-- diagram
---node in the diagram
----port on the node, and below the list/table of
-------node connecting to this port
-------node connecting to this port
-------node connecting to this port
-------node connecting to this port
----port on the node
-------node connecting to this port
-------node connecting to this port
----port on the node
-------node connecting to this port

---node in the diagram ...
---node in the diagram ...
---node in the diagram ...

Kind regards
Marcin

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13295
  • Karma: +557/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Nesting template fragments ?
« Reply #1 on: February 14, 2025, 08:24:24 pm »
I think that should be possible with the current possibilities.

Geert

MarcinG

  • EA User
  • **
  • Posts: 53
  • Karma: +0/-0
    • View Profile
Re: Nesting template fragments ?
« Reply #2 on: February 14, 2025, 08:55:00 pm »
Hi Geert,

I do not think currently one Fragment can be embedded into another Fragment.  It could probably work if reporting on Embedded Elements worked, but somehow it does not seem to be working.  Using Diagram Elements - there is no way of getting Embedded Elements, except writing own queries/scripts.

Kind regards
Marcin

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13295
  • Karma: +557/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Nesting template fragments ?
« Reply #3 on: February 14, 2025, 09:21:13 pm »
Hi Geert,

I do not think currently one Fragment can be embedded into another Fragment.  It could probably work if reporting on Embedded Elements worked, but somehow it does not seem to be working.  Using Diagram Elements - there is no way of getting Embedded Elements, except writing own queries/scripts.

Kind regards
Marcin
Oh, I see, you are stuck because you started from diagram element.
In that case I would use a virtual document and create a model document for each individual node.

I often create those virtual documents with a little script.

Geert