# Replace viewports by center

## 1. Description

This node allwos you to replace a viewport by its center. You should have one viewport only on the selected sheet to be able to replace it.&#x20;

## 2. Inputs

* **Sheet(s)**

This input take a sheet or a set of sheets where you want to replace the viewport.&#x20;

* **Point(s)**

This input takes a list of points where the center of the viewport should be moved to.&#x20;

![](/files/-LZJrM8-u2wPAHzdZy36)

## 3. Output

* **OUT**

The node informs you whether the operation was a success or not.

![](/files/-LZJrH_-Ux3QaxJ36W1J)


---

# 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://datashapes.gitbook.io/primer/revit/replace-viewports-by-center.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.
