# GetLinkedElement.InHostViewAndCategory

## 1. Description

This node gathers elements in linked documents visible in a host view.  GetLinkedElements.ByHostViewAndCategory allows you to set the categories you’re interested in collecting.

## 2. Inputs

* **LinkDoc**

Takes the link doc (the Archilab node can be used).

* **Views**

The host view you want to get the linked elements from.

* **Categories**

This input takes the categories you want to collect.

## 3. Output

* **Elements**

The node retrieves the elements from the selected categories in the host view.&#x20;

![](/files/-LYkqqhL2fKzwcTVRG4d)


---

# 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/getlinkedelement.inhostviewandcategory.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.
