# Filtering List by AutoCAD Link or CAD Import

**URL:** <https://forum.dynamobim.com/t/filtering-list-by-autocad-link-or-cad-import/21136>\
**Category:** Lists-Logic\
**Tags:** dynamo\
**Created:** [April 17, 2018, 7:07pm UTC](https://forum.dynamobim.com/t/filtering-list-by-autocad-link-or-cad-import/21136 "2018-04-17T19:07:08Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arturo\_Arbaje\_Garip](https://avatars.discourse-cdn.com/v4/letter/a/dbc845/32.png) [@Arturo\_Arbaje\_Garip](https://forum.dynamobim.com/u/Arturo_Arbaje_Garip)\
**Post date:** [April 17, 2018, 7:07pm UTC](https://forum.dynamobim.com/t/filtering-list-by-autocad-link-or-cad-import/21136/1 "2018-04-17T19:07:08Z")

</div>

Hello Dynamo community!

I’m using Dynamo packages to report CAD instances. The Node is pretty straight forward. I can generate a list of Import/Link Instances that provide the elements IDs for AutoCAD Links and Imports within a Revit File.

It also gives a report, with a list combined of both Links/Import with certain information.

What I want to do is to filter that “Report” list, to only show Import CADs with its respective information. So if “Is Linked : False” I want that sublist to show in a final list, with the other info such as ID and Name.

 ![CAD%20Imports](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/7/77ff3930bed7b38f95239172d6774d585d21474e.jpg)

 ![CAD%20Imports%202](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/6/7622da90c90ef30c6f2af397dca8faf47b76a4e7.jpg)

 ![CAD%20Imports%203](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/f/ff5d78b0c5b2236aeaf225f0f6ed9c4f541b97c5.jpg)

Any tips?

---

<div class="post-metadata">

**Author:** ![awilliams](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/awilliams/32/114496_2.png) [@awilliams](https://forum.dynamobim.com/u/awilliams)\
**Post date:** [April 17, 2018, 8:18pm UTC](https://forum.dynamobim.com/t/filtering-list-by-autocad-link-or-cad-import/21136/2 "2018-04-17T20:18:47Z")

</div>

Use List.GetItemAtIndex with list @L2 and index of 2, then String.Contains searching for either “True” or “False”. From there you can use the boolean as a mask with List.FilterByBoolMask

---

<div class="post-metadata">

**Author:** ![Arturo\_Arbaje\_Garip](https://avatars.discourse-cdn.com/v4/letter/a/dbc845/32.png) [@Arturo\_Arbaje\_Garip](https://forum.dynamobim.com/u/Arturo_Arbaje_Garip)\
**Post date:** [April 19, 2018, 5:47pm UTC](https://forum.dynamobim.com/t/filtering-list-by-autocad-link-or-cad-import/21136/3 "2018-04-19T17:47:46Z")

</div>

Thanks for replying.

I tried your solution, but I’m getting this error:

![Error](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/2/92a1e50d1d57f1637433068ae9da045aff9d81f0.jpg)

See something wrong?

---

<div class="post-metadata">

**Author:** ![awilliams](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/awilliams/32/114496_2.png) [@awilliams](https://forum.dynamobim.com/u/awilliams)\
**Post date:** [April 19, 2018, 5:51pm UTC](https://forum.dynamobim.com/t/filtering-list-by-autocad-link-or-cad-import/21136/4 "2018-04-19T17:51:43Z")

</div>

I would probably just use the OOTB String.Contains node for this, but your list input on List.GetItemAtIndex needs to be @L2

---

<div class="post-metadata">

**Author:** ![Marcel\_Rijsmus](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/marcel_rijsmus/32/8539_2.png) [@Marcel\_Rijsmus](https://forum.dynamobim.com/u/Marcel_Rijsmus)\
**Post date:** [April 19, 2018, 5:52pm UTC](https://forum.dynamobim.com/t/filtering-list-by-autocad-link-or-cad-import/21136/5 "2018-04-19T17:52:38Z")

</div>

@Arturo_Arbaje_Garip

you see the little grey lines on the top side of the string.contains node? it means it is a custom node.  
The OOTB version doesnt have that. You need that node

---

<div class="post-metadata">

**Author:** ![Marcel\_Rijsmus](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/marcel_rijsmus/32/8539_2.png) [@Marcel\_Rijsmus](https://forum.dynamobim.com/u/Marcel_Rijsmus)\
**Post date:** [April 19, 2018, 5:54pm UTC](https://forum.dynamobim.com/t/filtering-list-by-autocad-link-or-cad-import/21136/6 "2018-04-19T17:54:01Z")

</div>

@awilliams

amy beat me she was quicker

---

<div class="post-metadata">

**Author:** ![Arturo\_Arbaje\_Garip](https://avatars.discourse-cdn.com/v4/letter/a/dbc845/32.png) [@Arturo\_Arbaje\_Garip](https://forum.dynamobim.com/u/Arturo_Arbaje_Garip)\
**Post date:** [April 19, 2018, 6:04pm UTC](https://forum.dynamobim.com/t/filtering-list-by-autocad-link-or-cad-import/21136/7 "2018-04-19T18:04:49Z")

</div>

OMG. Super ultra THANKS!

Didn’t know List.GetItematIndex has that feature!

Awesome!

 ![Success!](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/0/00f03d00345cb8832cb3ca6c2e60b3362706c4cc.jpg)

---

<div class="post-metadata">

**Author:** ![awilliams](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/awilliams/32/114496_2.png) [@awilliams](https://forum.dynamobim.com/u/awilliams)\
**Post date:** [April 19, 2018, 7:20pm UTC](https://forum.dynamobim.com/t/filtering-list-by-autocad-link-or-cad-import/21136/8 "2018-04-19T19:20:47Z")

</div>

@Arturo_Arbaje_Garip You’re welcome! The List@Levels feature is on most nodes! It was introduced with Dynamo 1.2 🙂 here is a blog post about it: [http://dynamobim.org/introducing-listlevel-working-with-lists-made-easier/](http://dynamobim.org/introducing-listlevel-working-with-lists-made-easier/)

(@Marcel_Rijsmus I’d gotten a notification since I had replied yesterday, that’s the only reason I was quick 😅 )

---

<div class="post-metadata">

**Author:** ![tamic](https://avatars.discourse-cdn.com/v4/letter/t/ecc23a/32.png) [@tamic](https://forum.dynamobim.com/u/tamic)\
**Post date:** [July 12, 2022, 1:13pm UTC](https://forum.dynamobim.com/t/filtering-list-by-autocad-link-or-cad-import/21136/9 "2022-07-12T13:13:25Z")

</div>

Hello everybody, since the very first node CAD.ReportInstances is no longer valid in BimorphNodes, has been moved under other node and changed, how would you update the script to make it work again? Best regards,  
Michal
