# Category from File in folder

**URL:** <https://forum.dynamobim.com/t/category-from-file-in-folder/51481>\
**Category:** Revit\
**Tags:** revit, archi-lab, dynamo\
**Created:** [June 6, 2020, 12:26am UTC](https://forum.dynamobim.com/t/category-from-file-in-folder/51481 "2020-06-06T00:26:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jason\_Trahan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jason_trahan/32/10935_2.png) [@Jason\_Trahan](https://forum.dynamobim.com/u/Jason_Trahan)\
**Post date:** [June 6, 2020, 12:26am UTC](https://forum.dynamobim.com/t/category-from-file-in-folder/51481/1 "2020-06-06T00:26:50Z")

</div>

Hi - having trouble getting this to work, maybe it can’t. I am collecting view types from the current documents (Area Plans) and counting the area lines in each view. It works for the current document but when I try to use views from another file (from a folder) I get the “viewid is not a view” error. Im assuming I will continue to get this type of error for other element and category types…

Thoughts?  
Thanks,  
Jason  
[Select.ByCategoryAndView Folder.dyn](https://forum.dynamobim.com/uploads/short-url/aQG3zOgJWNZzwWXTeDi9Rj7dAvt.dyn) (35.9 KB)

 ![Select.ByCategoryAndView Folder](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/b/db849ca9542efe335a245c8b917af9e389850346.jpeg)

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [June 6, 2020, 12:33am UTC](https://forum.dynamobim.com/t/category-from-file-in-folder/51481/2 "2020-06-06T00:33:40Z")

</div>

The select by category and view node doesn’t have a document input, and as such it is getting the content from the active document.

---

<div class="post-metadata">

**Author:** ![Jason\_Trahan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jason_trahan/32/10935_2.png) [@Jason\_Trahan](https://forum.dynamobim.com/u/Jason_Trahan)\
**Post date:** [June 6, 2020, 1:02am UTC](https://forum.dynamobim.com/t/category-from-file-in-folder/51481/3 "2020-06-06T01:02:31Z")

</div>

Okay, makes sense. Thanks.

---

<div class="post-metadata">

**Author:** ![Alban\_de\_Chasteigner](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alban_de_chasteigner/32/39650_2.png) [@Alban\_de\_Chasteigner](https://forum.dynamobim.com/u/Alban_de_Chasteigner)\
**Post date:** [June 6, 2020, 2:23pm UTC](https://forum.dynamobim.com/t/category-from-file-in-folder/51481/4 "2020-06-06T14:23:47Z")

</div>

Hi Jason,

The _Genius Loci_ package has a bunch of nodes that work with document inputs.  
This version of the _SelectByCategoryAndView_ also works with linked views.

 ![Select.ByCategoryAndView Folder](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/3/4369e1b386d5d48b6f42b8beb2bc06d8d24f637e.png)  
[Select.ByCategoryAndView Folder V2.dyn](https://forum.dynamobim.com/uploads/short-url/izAtjaKe6Yt9v7osRbQWzCpachj.dyn) (19.1 KB)
