# Editor Class API Documentation

The `Editor` class is a special class that allows you to manage and access the objects from the Model Editor. Use the line below to access the Editor.

```python
from model_editor import Editor
```

See below for the list of Properties and methods.

## Properties

### model

Get the entire Dragonfly Model currently on the canvas.

### selected\_room\_2ds

Get the currently selected Room2Ds on the canvas.

### selected\_room\_3ds

Get the currently selected 3D Rooms on the canvas.

### selected\_shades

Get the currently selected ContextShade objects on the canvas.

### clines

Get a list of LineSegment2D, Polyline2D, and Polygon2D objects on the canvas.

### units

Get the units system of the Model currently on the canvas.

### tolerance

Get the tolerance of the Model currently on the canvas.

### angle\_tolerance

Get the angle tolerance of the Model currently on the canvas.

## Methods

### Update()

Update the Model in the editor with any edits that have been made.


---

# 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.pollination.solutions/user-manual/model-editor/python-script-editor/editor-class-api-documentation.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.
