# Scene Diagram Builder

<figure><img src="/files/LBDDpTaPEBrcbvl8rsBJ" alt=""><figcaption><p>Sonoran CAD: Scene Diagram Builder</p></figcaption></figure>

## Adding the Diagram Builder

The scene diagram builder allows you to create detailed visuals of vehicle accidents, crime scenes, and more.

The diagram builder can be added to any [custom record template](/cad/tutorials/customization/creating-custom-record-and-report-types.md). Select `Diagram` from the `Premade Sections` dropdown.

## Using the Diagram Builder

Custom records with a diagram section will show an interactive canvas inside the record. Select the edit icon to open up the builder.

<div><figure><img src="/files/8P3pnsJc2XRykkX2sKDg" alt="" width="371"><figcaption><p>Record: Diagram Viewer</p></figcaption></figure> <figure><img src="/files/9QhpZZEHTGnUHwTGBMCt" alt="" width="375"><figcaption><p>Diagram Builder</p></figcaption></figure></div>

### Adding, Editing, and Removing Elements

#### Adding

* Drag-and-drop items from the toolbox to the canvas.

#### Editing

* When selected, items can be moved, resized, and edited.
* When an item is selected, the gear icon will open up an options menu for more customization.
* Select multiple items at once with `SHIFT` + `CLICK`.

#### Removing

* Select the item(s) and click the trash icon ([or the shortcut](#shortcuts)) to remove

<div><figure><img src="/files/vD5lQMwJ806RhAajBlCl" alt="" width="313"><figcaption><p>Diagram: Road Element Resize</p></figcaption></figure> <figure><img src="/files/Qhl0h7Z7Y714BoXEdZBI" alt="" width="321"><figcaption><p>Diagram: Road Element Options</p></figcaption></figure></div>

### Shortcuts

The diagram builder is packed with powerful shortcuts to help quickly build the scene.

Hover over any of the top action items for a tooltip listing the shortcut.

<figure><img src="/files/MG1ueN719arGozHqg8RH" alt=""><figcaption><p>Diagram Builder: Action Buttons</p></figcaption></figure>

<details>

<summary>List of Shortcuts</summary>

| Shortcut                               | Description                                                                                     |
| -------------------------------------- | ----------------------------------------------------------------------------------------------- |
| `O`                                    | Opens the item options/settings when an element is selected.                                    |
| `UP ARROW` or `SHIFT` + `UP ARROW`     | <p>Moves the selected item up a layer.<br>Shift option brings it to the very top.</p>           |
| `DOWN ARROW` or `SHIFT` + `DOWN ARROW` | <p>Moves the selected item down a layer.<br>Shift option brings it to the very bottom.</p>      |
| `L`                                    | Locks the selected item(s) from moving.                                                         |
| `G`                                    | Groups or ungroups the selected items together. Use `SHIFT` + `CLICK` to select multiple items. |
| `CTRL` + `Z`                           | Undo last action(s)                                                                             |
| `CTRL` + `SHIFT` + `Z`                 | Redo last action(s)                                                                             |
| `DELETE`                               | Delete selected item(s)                                                                         |
| `CTRL` + `C`                           | Copy selected item(s)                                                                           |
| `CTRL` + `V`                           | Paste copied item(s)                                                                            |

</details>

### Default Images and More

Communities can also customize the diagram builder to have default images (like a [medical diagram](#using-the-diagram-builder)) for each record type. Simply hit the edit (pencil icon) in the custom record builder on the diagram to customize and save the template.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sonoransoftware.com/cad/tutorials/records-management/scene-diagram-builder.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
