> For the complete documentation index, see [llms.txt](https://knowledge.out-smart.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://knowledge.out-smart.com/outsmart-knowledge-base/outsmart-knowledge-base-pt/loja-virtual-pacotes-e-power-ups/power-ups/gestao-de-ativos/usar-objetos-pai-e-filho.md).

# Usar objetos pai e filho

Criar hierarquias de objetos para instalações complexas.

Os Objetos pai e filho ajudam a modelar instalações com vários níveis.

Isto é útil para sites com disposição estruturada do equipamento.

### Quando usar hierarquias de objetos

Usar relações pai-filho quando:

* uma instalação contém vários Objetos relacionados
* os técnicos precisam de contexto por sub-Objeto
* se pretende uma estrutura mais clara por Localização ou sistema

{% stepper %}
{% step %}

### Abrir o Objeto filho

Criar ou Abrir o Objeto que deve ficar abaixo de outro Objeto.
{% endstep %}

{% step %}

### Selecionar o Objeto pai

Utilizar o campo pai para escolher o Objeto de nível superior.
{% endstep %}

{% step %}

### Guardar a relação

Guardar o Objeto.

A hierarquia está agora guardada.
{% endstep %}

{% step %}

### Rever a estrutura

Abrir o Objeto pai e verificar os Objetos filho ligados.
{% endstep %}
{% endstepper %}

### Exemplos práticos

* edifício → instalação → unidade
* local → sala → dispositivo
* máquina principal → subsistema ligado

### Perguntas frequentes

<details>

<summary>Pode um Objeto filho ter vários Objetos pai?</summary>

Não.

Um Objeto filho pertence normalmente a um Objeto pai.

</details>

<details>

<summary>Toda a configuração deve usar vários níveis?</summary>

Não.

Só deve ser usada hierarquia quando isso tornar a estrutura mais fácil de gerir.

</details>

<details>

<summary>As ligações pai-filho ajudam na navegação?</summary>

Sim.

Tornam as instalações complexas mais fáceis de compreender.

</details>

### Tópicos relacionados

* [**Gerir Componente objeto**](https://knowledge.out-smart.com/outsmart-knowledge-base/outsmart-knowledge-base-pt/loja-virtual-pacotes-e-power-ups/power-ups/gestao-de-ativos/gerir-componente-objeto.md)
* [**Gestão de Ativos**](https://knowledge.out-smart.com/outsmart-knowledge-base/outsmart-knowledge-base-pt/loja-virtual-pacotes-e-power-ups/power-ups/gestao-de-ativos.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://knowledge.out-smart.com/outsmart-knowledge-base/outsmart-knowledge-base-pt/loja-virtual-pacotes-e-power-ups/power-ups/gestao-de-ativos/usar-objetos-pai-e-filho.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
