> ## Documentation Index
> Fetch the complete documentation index at: https://docs.davinci-app.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Sequence View

<img width="50" noZoom src="https://mintcdn.com/celedonsolutions/VVSNPtUqEEEbcyvr/images/sequence-icon.png?fit=max&auto=format&n=VVSNPtUqEEEbcyvr&q=85&s=c3a7c52b62ce49bef50c94e15b936023" data-path="images/sequence-icon.png" />

## Description

The Sequence View displays sequence diagrams for Action objects, showing interactions and message exchanges between different entities over time. This view uses a two-pane layout with code editor on the left and generated diagram on the right.

Sequence diagrams visualize how objects interact in a time-ordered sequence, with lifelines representing participants and arrows showing messages or calls between them. The view automatically generates these diagrams from your sequence definition code.

## View Controls

### Code Editor

The left pane contains a code editor where you define the sequence interactions using structured syntax. The diagram updates automatically as you edit the code.

### Wrap

Toggle line wrapping in the code editor for better readability of long lines.

### Depth

Controls how deep into nested interactions and sub-sequences the diagram displays.

### Orientation

Choose between horizontal and vertical layout for the sequence diagram.

### Show Documentation

Toggle to display or hide documentation text for interactions within the diagram.

### Refresh

Regenerates the sequence diagram from the current code definition.

## Diagram Elements

Sequence diagrams include:

* **Lifelines**: Vertical dashed lines representing entities or objects participating in the sequence
* **Messages**: Horizontal arrows between lifelines showing communication or calls
* **Activation Boxes**: Rectangles on lifelines indicating when an entity is actively processing
* **Return Messages**: Dashed arrows showing return values or responses
* **Time Flow**: Implicit top-to-bottom ordering represents progression of time

## Interaction

**Pan and Zoom**: In the diagram pane, click and drag to pan. Use mouse wheel to zoom.

**Edit Code**: Modify the sequence definition in the left pane to change interactions and message flows.

## Use Cases

**Interface Documentation**: Document API calls, method interactions, and communication protocols between system components.

**Scenario Modeling**: Illustrate how different parts of a system collaborate to accomplish specific use cases or scenarios.

## Export Options

Sequence diagrams can be exported in multiple formats.

| Format | Description                                        |
| ------ | -------------------------------------------------- |
| PNG    | Export sequence diagram as a high-resolution image |
| SysML  | Export sequence definition in SysML v2 format      |
