> For the complete documentation index, see [llms.txt](https://datashapes.gitbook.io/primer/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://datashapes.gitbook.io/primer/revit/getlinkedelement.inhostviewandcategory.md).

# 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)
