# Python to get specific family?

**URL:** <https://forum.dynamobim.com/t/python-to-get-specific-family/61852>\
**Category:** Uncategorized\
**Created:** [March 19, 2021, 12:51am UTC](https://forum.dynamobim.com/t/python-to-get-specific-family/61852 "2021-03-19T00:51:44Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![c.poupin](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/c.poupin/32/89152_2.png) [@c.poupin](https://forum.dynamobim.com/u/c.poupin)\
**Post date:** [March 19, 2021, 11:54am UTC](https://forum.dynamobim.com/t/python-to-get-specific-family/61852/3 "2021-03-19T11:54:01Z")

</div>

> [@Justin\_Wright](#):
>
> I made this work but thinking there must be a simpler way.

Hello  
for information, it is not because a code is shorter that it will be more efficient  
some examples to compare execution times

* * *

- with SlowFilter (Revit API)  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/4/542f8b71bd0fbaefb4ea3aacd11b74f3d5cbbff8.png)

* * *

- with List Comprehension  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/9/99c098a496a0e08503490a05789b11aec324e270.png)

* * *

- with Predicate  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/7/b73b193979247ed720747ea471b28b13f709ce9f.png)

* * *

- with LINQ  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/8/b8c0c8894590257c21482821700a44ac80af4476.png)

* * *

- with filter  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/2/e2e18207ec8f1ac0ea214e64dc9f70d6a274c450.png)

---

_[View the full topic](https://forum.dynamobim.com/t/python-to-get-specific-family/61852)._
