---
title: Organising with Boundaries – C4 Designer | Nodinite
description: Learn how to use boundaries in the C4 Designer — bind them to Domains, collapse and expand them, use Focus and Isolate modes to spotlight sections of a large diagram, and move elements between boundaries.
---

# :fa-object-group: Organising with Boundaries

Boundaries are the organisational containers in a C4 diagram in the [C4 Designer][Designer Overview]. They visually group related elements, represent architectural partitions, and can be bound to your :Nodinite: [Repository][]: :new7.12: what a boundary binds to follows its kind. An Enterprise Boundary or a generic Boundary binds a [Domain][Domains], a System Boundary a [System][Systems], a Container Boundary a [Service][Services] or [Contract][Contracts], and a Deployment Node nothing.

In a large landscape, boundaries are also a navigation tool — you can collapse them to reduce clutter, focus on a single boundary to highlight it against a dimmed background, or isolate one boundary by hiding everything else.

![Bind a boundary to the Domain Sales, drag WMS into the Operations boundary, and move Operations with its contents, animated walkthrough (7.13)][1]  
*Animated walkthrough: a Draft Context diagram over the [Order-to-Cash demo][] with the boundaries Sales and Operations, from binding Sales to a Domain to moving Operations by its header with everything inside kept in place. Every element keeps its [Repository binding][Repository Bindings] throughout.*

## What Boundaries Represent

:Nodinite: has five boundary kinds, each mapped to a layer of your architecture. The diagram type decides which ones the Toolbox offers:

| Boundary type | Represents | Available in | Binds to |
|---|---|---|---|
| **Enterprise Boundary** | Your whole organisation or a large division | L0, L1, Dynamic | A [Domain][Domains], or nothing |
| **Boundary** (generic) | Any grouping: a [Domain][Domains], a Layer, a BizTalk receive port | L0, L1, L2, L3, Dynamic | A Domain, or nothing (on L2 and L3 usually an unbound grouping) |
| **System Boundary** | A single Software System and its Containers | L2, Dynamic | A [System][Systems] |
| **Container Boundary** | One [Service][Services] or [Contract][Contracts] and its Components | L3 (Dynamic only from an import) | A [Service][Services] or [Contract][Contracts] |
| **Deployment Node** | An infrastructure zone or server | Deployment | Nothing (an unbound label) |

<div class="mermaid">
graph TB
    Domain["fa:fa-sitemap Domain"]
    Sys1["fa:fa-server System"]
    Svc["fa:fa-gears Service or Contract"]
    subgraph Ent["Enterprise Boundary or Boundary"]
        subgraph Sys["System Boundary"]
            Cont["fa:fa-box Container"]
        end
    end
    subgraph Con["Container Boundary on a Component diagram"]
        Comp["fa:fa-puzzle-piece Component"]
    end
    Domain -.->|"Shape Binding"| Ent
    Sys1 -.->|"Shape Binding"| Sys
    Svc -.->|"Shape Binding"| Con
    style Domain fill:#2678BD
    style Sys1 fill:#2678BD
    style Svc fill:#2678BD
    style Comp fill:#93d16d
    style Cont fill:#93d16d
</div>

*Diagram: each boundary kind binds its own kind of Repository entity (blue): an Enterprise Boundary or Boundary a Domain, a System Boundary a [System][Systems], a Container Boundary a [Service][Services] or Contract. The elements inside (green) are the nodes the boundary groups. On a Dynamic diagram an Enterprise Boundary can hold System Boundaries like this; the Container Boundary lives on a Component diagram.*

In :Nodinite:, an Enterprise Boundary or a generic Boundary can be **bound to a [Domain][Domains]**. When you bind a boundary to a Domain, the boundary header displays the Domain name and the boundary becomes a live representation of that Domain. Changes to the Domain name in the Repository are reflected automatically.

:new7.12: On a Component diagram, a generic Boundary (or an Enterprise Boundary) inside the subject Container Boundary is an **unbound grouping**: an import matches it to no Domain and creates none, not even with **Resolve All**. On a Container diagram, a grouping inside the subject System Boundary still matches a Domain by name.

## Adding a Boundary from the Toolbox

1. Expand the **Boundaries** section in the [Toolbox][Building a Diagram] (visible in Draft mode only)
2. Drag a boundary type onto the canvas
3. Drop it at the position you want — the boundary is created with a default size
4. Resize by dragging the bottom-right handle
5. Drop element nodes inside the boundary to assign them to it

## Binding a Boundary to a Domain

Bind the boundary in [Boundary Properties][Editing Elements]:

1. Click the **boundary header**: **Boundary Properties** opens.
2. Under **Shape Binding**, click **Resolve…**.
3. Choose **Use existing**, the only tab a generic boundary offers.
4. Pick the Domain, for example *Sales*.
5. Click **Confirm**.

The same panel binds the other kinds to what they allow: a System Boundary to a System, a Container Boundary to a Service or Contract; a Deployment Node has no **Resolve…**. Once bound to a Domain:

* The boundary header shows the Domain name
* The boundary hamburger menu gains actions: **View Domain**, **Quick Edit Domain**, and **Go to Edit Domain (new tab)**
* With a [Mapify][] license: **Show in Mapify** ([Mapify Rendering][]) and **Show in Mermaid** ([Mermaid Rendering][]) become available

Use the **Unbind** button to remove the association at any time.

Binding a boundary changes the boundary only. On a Free Draw diagram, the elements inside it keep their own bindings. On a Layered diagram, binding the subject boundary also rebinds the element on the parent layer that zooms into it, and nothing else (see [Layered Mode][Diagram Set Fundamentals]).

![On a Dynamic diagram, the toolbox offers System, Enterprise and generic boundaries; drag a System Boundary onto the canvas, drag the Service INT1337-RCV-Order-Incoming into it, then Resolve, Use existing, the System Portal and Confirm: the boundary is bound to Portal and the participant keeps its Service, animated walkthrough (7.13)][3]  
*Animated walkthrough: draw a System Boundary on a Dynamic and bind it by hand. The Service inside keeps its own binding.*  

### The subject boundary

:new7.12: On a Container diagram, the System Boundary around the diagram's Containers is its **subject boundary**: it is bound from the diagram's Architectural Scope. On a Component diagram, the Container Boundary is bound from the diagram's **Subject**, the Service or Contract whose inside it shows. Next layer, the import, and the generators make the subject boundary. Its **Shape Binding** shows the binding with a lock and *Bound from the diagram's Architectural Scope. Change it in Edit Properties.* (Container) or *Bound from the diagram's Subject. Change it in Edit Properties.* (Component), and has no **Unbind** or **Resolve…**. A System Boundary you drop from the Toolbox is an ordinary System Boundary that you bind by hand.

## Moving Elements Between Boundaries

To move a node into a different boundary, simply drag it. When you release the mouse button, the Designer checks which boundary most tightly contains the node's centre point. If that boundary is different from the node's current parent, the node is automatically **reparented**.

The target boundary lights up while you drag — a visual cue showing which boundary will adopt the node when you release.

>[!INFO]
>A node's parent boundary determines where it appears in the Mermaid output. Reparenting a node also updates the [Mermaid representation][Mermaid View] immediately. :new7.12: Navigation comes from bindings, not from nesting: a boundary shows only its own navigation pills and no longer rolls up those of the nodes inside it. Following a pill to a diagram makes every element bound to the same Repository item blink, a Domain boundary included. See [Navigation Between C4 Diagrams][].

### Moving a boundary with its contents

Drag the **boundary header** to move the entire boundary. All elements inside the boundary — including any nested child boundaries — move together, maintaining their relative positions.

## Collapsing and Expanding Boundaries

Each boundary has a **collapse/expand toggle button** in its header. Collapsing a boundary hides all of its contents and shrinks it to a minimal size.

![Collapse the Operations boundary so its connectors end on the boundary, then expand it again, animated walkthrough (7.13)][2]  
*Animated walkthrough: the Operations boundary with ERP, ERP-Finance, and WMS collapsed to its header, the connectors ending on the boundary, and expanded again with everything back in place.*

| Action | Effect |
|---|---|
| :fa-compress: Collapse | Children are hidden; boundary shrinks to its header; connectors reroute to the boundary edge |
| :fa-expand: Expand | Children are restored; connectors return to their original endpoints |

### Connector Rerouting

When a boundary is collapsed, any connector that would normally connect to a hidden node is rerouted to attach to the collapsed boundary's outline. The connector still shows its label and protocol but connects to the boundary box rather than the individual node. Expanding the boundary restores all connectors to their precise endpoints.

### Collapse State Persistence

Collapse states are saved per viewer, in the browser's local storage, not with the diagram, so other users are not affected. If you close and reopen the diagram, reload the page, or sign out and in again, boundaries are restored to their last collapsed or expanded state. Another browser, or a browser with cleared storage, opens the diagram with every boundary expanded.

## Focus Mode

Focus mode dims the entire canvas except for one boundary, which is raised to the foreground. Use it when you want to present or inspect one part of a complex diagram without visual distractions.

To enter Focus mode:

1. Open the boundary's **hamburger menu** (three-line icon in the boundary header)
2. Choose **Focus** from the menu

To exit, click anywhere outside the elevated boundary.

## Isolate Mode

Isolate mode collapses all **sibling** boundaries and leaves only the selected one expanded. Where Focus mode is a visual overlay effect that is not stored, Isolate mode actually modifies the collapse state of other boundaries, which is kept per browser like any other collapse.

Use Isolate mode when you want to explore a single Domain in detail without the distraction of adjacent boundaries.

Access Isolate through the same boundary hamburger menu.

## Nesting Boundaries

Boundaries can be nested inside other boundaries. To nest a boundary, drag it so that its centre point falls inside another boundary and release. The inner boundary becomes a child of the outer one.

Common patterns are an L2 subject **System Boundary** with generic **Boundaries** inside it (Layers, BizTalk receive ports), and, on a Dynamic diagram, an **Enterprise Boundary** around the **System Boundaries** of the owning Systems.

![Add C4 Diagrams from the Order-to-Cash Integration Landscape, pick the Diagram Set and Generate: the generated Dynamic places each step's Service inside the System Boundary of the System that owns it, in step order Portal, ERP, WMS and ERP-Finance, animated walkthrough (7.13)][4]  
*Animated walkthrough: a generated Dynamic groups its participants by owning System, one System Boundary each, in the order the steps first reach them.*  

An imported Dynamic keeps its boundaries. A **Container Boundary** on a Dynamic comes only from an import: it is bound to its Service or Contract, and the Components inside it stay unbound. Every view and export draws the boundaries around their participants: the interactive view, the Mermaid view, and the Markdown, PlantUML, Structurizr DSL and draw.io exports.

![Import of a Dynamic with the System Boundaries Portal and ERP and a Container Boundary for the Service INT1337-ENT-Order-Entry: Skip the scope step, Review and Resolve with ERP matched to its System and the Container Boundary to its Service, Resolve All, Import, then the steps drawn inside their boundaries in the interactive view and the Mermaid view, animated walkthrough (7.13)][5]  
*Animated walkthrough: import a Dynamic with boundaries; the views draw its steps inside them.*  

### Automatic ancestor expansion

When you move or resize an element so that it extends beyond its parent boundary, the parent boundary automatically expands to contain it. This expansion continues up the nesting chain — all ancestor boundaries grow as needed to ensure no element overflows.

## Frequently Asked Questions

### I moved a node but it went into the wrong boundary

Drag the node again and aim for an empty area of the correct boundary. The boundary must **contain the centre point** of the node to adopt it. If boundaries are overlapping, the *smallest* containing boundary wins.

### My boundary collapsed but I cannot expand it — the expand button is gone

If you have collapsed a boundary and then zoomed out, the boundary may be very small. Zoom in on the boundary header area to see the expand toggle button.

### Boundary headers are not showing the Domain name after binding

The Domain binding takes effect immediately, but if a re-render has not occurred since the binding, refresh the page or move any element to trigger a re-render.

### I can't rebind the boundary around my Containers or Components

That is the subject boundary of a Container or Component diagram: it follows the diagram's Architectural Scope or Subject. Change the scope or subject in **Edit Properties** ([Diagram Lifecycle][]), and the boundary follows.

## :fa-hand-point-right: Next Steps

* :fa-arrow-right-arrow-left: [Drawing Connectors][Drawing Connectors]  
* :fa-sliders: [Editing Elements – Boundary Properties][Editing Elements]  

## :fa-link-horizontal: Related Topics

* :fa-pen-ruler: [C4 Designer Overview][Designer Overview]  
* :fa-diagram-project: [Building a Diagram – Using the Toolbox][Building a Diagram]  
* :fa-sitemap: [Domains in the Repository][Domains]  
* :fa-folder-tree: [Diagram Set Fundamentals][]  
* :fa-code: [Mermaid View][Mermaid View]  
* :fa-book: [Repository Properties for C4 Diagramming][]  

[1]:{ndm}/Documentation%20Pictures/IM/WebClient/Repository/C4/Diagram/C4Designer_Boundaries.gif
[2]:{ndm}/Documentation%20Pictures/IM/WebClient/Repository/C4/Diagram/C4Designer_BoundaryCollapse.gif
[3]:{ndm}/Documentation%20Pictures/IM/WebClient/Repository/C4/Diagram/C4Dynamic_DrawABoundary.gif
[4]:{ndm}/Documentation%20Pictures/IM/WebClient/Repository/C4/Diagram/C4Dynamic_GeneratedOwnerBoundaries.gif
[5]:{ndm}/Documentation%20Pictures/IM/WebClient/Repository/C4/Diagram/C4Dynamic_ImportWithBoundaries.gif

[Building a Diagram]:{ndr}/Repository%20Model/C4%20Diagrams/Designer/Building%20a%20Diagram.md
[Contracts]:{ndr}/Getting%20Started/4.%20Repository/Contracts/Overview.md
[Designer Overview]:{ndr}/Repository%20Model/C4%20Diagrams/Designer/Overview.md
[Diagram Lifecycle]:{ndr}/Repository%20Model/C4%20Diagrams/Designer/Diagram%20Lifecycle.md
[Diagram Set Fundamentals]:{ndr}/Repository%20Model/C4%20Diagrams/Features/Diagram%20Set%20Fundamentals.md
[Domains]:{ndr}/Repository%20Model/Domains/Overview.md
[Drawing Connectors]:{ndr}/Repository%20Model/C4%20Diagrams/Designer/Drawing%20Connectors.md
[Editing Elements]:{ndr}/Repository%20Model/C4%20Diagrams/Designer/Editing%20Elements.md
[Mapify]:{ndr}/Mapify/Overview.md
[Mapify Rendering]:{ndr}/Mapify/Features/Mapify%20Rendering.md
[Mermaid Rendering]:{ndr}/Mapify/Features/Mermaid%20Rendering.md
[Mermaid View]:{ndr}/Repository%20Model/C4%20Diagrams/Features/Mermaid%20View.md
[Navigation Between C4 Diagrams]:{ndr}/Repository%20Model/C4%20Diagrams/Features/Sync.md
[Order-to-Cash demo]:{ndr}/Repository%20Model/BPMs/Examples/Order-to-Cash/Generate-O2C-Demo-Data.md
[Repository]:{ndr}/Repository%20Model/Overview.md
[Repository Bindings]:{ndr}/Repository%20Model/C4%20Diagrams/Designer/Repository%20Bindings.md
[Repository Properties for C4 Diagramming]:{ndr}/Repository%20Model/C4%20Diagrams/Troubleshooting/Repository%20Properties%20for%20C4%20Diagramming.md
[Services]:{ndr}/Repository%20Model/Services/Overview.md
[Systems]:{ndr}/Repository%20Model/Systems/Overview.md