# Exporting Type Catalog from Revit Families Using a Script

**URL:** <https://forum.dynamobim.com/t/exporting-type-catalog-from-revit-families-using-a-script/37070>\
**Category:** Revit\
**Created:** [June 12, 2019, 5:37pm UTC](https://forum.dynamobim.com/t/exporting-type-catalog-from-revit-families-using-a-script/37070 "2019-06-12T17:37:39Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![marionbonoan12345](https://avatars.discourse-cdn.com/v4/letter/m/f14d63/32.png) [@marionbonoan12345](https://forum.dynamobim.com/u/marionbonoan12345)\
**Post date:** [June 12, 2019, 5:37pm UTC](https://forum.dynamobim.com/t/exporting-type-catalog-from-revit-families-using-a-script/37070/1 "2019-06-12T17:37:39Z")

</div>

Hi there!

I’m trying to see if it possible for a Dynamo script to extract Type Catalogs from Revit families? I can’t seem to find any references anywhere that could help me start.

I also have access to RFtools, BIMlink, and some CTC software, if anyone knows if these softwares has a way of exporting type catalogs too let me know I would really appreciate the help!

---

<div class="post-metadata">

**Author:** ![jshial](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jshial/32/91559_2.png) [@jshial](https://forum.dynamobim.com/u/jshial)\
**Post date:** [June 13, 2019, 9:25am UTC](https://forum.dynamobim.com/t/exporting-type-catalog-from-revit-families-using-a-script/37070/2 "2019-06-13T09:25:35Z")

</div>

If “Type Catelogs” means all family types in Revit then try using collector object to retrieve all Family Symbols.

Something like:  
types = FilteredElementCollector(doc).OfClass(FamilySymbol).ToElements()

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [June 14, 2019, 3:18pm UTC](https://forum.dynamobim.com/t/exporting-type-catalog-from-revit-families-using-a-script/37070/3 "2019-06-14T15:18:49Z")

</div>

Type Catalogs aren’t referenced by the family (as far as I’m aware). They only pop up when there is a Type Catalog file available. If you know the location of the family (rfa) you can easily get any type catalog (txt) that is with it.

---

<div class="post-metadata">

**Author:** ![marionbonoan12345](https://avatars.discourse-cdn.com/v4/letter/m/f14d63/32.png) [@marionbonoan12345](https://forum.dynamobim.com/u/marionbonoan12345)\
**Post date:** [June 17, 2019, 11:47am UTC](https://forum.dynamobim.com/t/exporting-type-catalog-from-revit-families-using-a-script/37070/4 "2019-06-17T11:47:13Z")

</div>

I’m looking to extract those txt files from my current families. But since we have a lot of families in our office we are looking for a way to automate it so whenever we need to update our families we have this script available

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [June 17, 2019, 2:23pm UTC](https://forum.dynamobim.com/t/exporting-type-catalog-from-revit-families-using-a-script/37070/5 "2019-06-17T14:23:10Z")

</div>

I’m still not sure I understand what you’re trying to do. Do you mean update types for families that have already been loaded into a project? There’s no need to “export type catalogs” as they’re already separate files. You wouldn’t need to do anything with the rfa.

---

<div class="post-metadata">

**Author:** ![T\_Pover](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/t_pover/32/19147_2.png) [@T\_Pover](https://forum.dynamobim.com/u/T_Pover)\
**Post date:** [June 18, 2019, 7:54am UTC](https://forum.dynamobim.com/t/exporting-type-catalog-from-revit-families-using-a-script/37070/6 "2019-06-18T07:54:32Z")

</div>

So these are the steps you need to create a type catalog txt file:

- For every family get every type
- Get all parameters of the family
- For every parameter get its unit type
- For every type get every parameter value
- Order all the above information in such a way that it fits the requirements for type catalog txt files.

I do not think there is way to get this done using standard dynamo nodes, but if you know your way around python then you should be able to get this done.

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [June 18, 2019, 12:51pm UTC](https://forum.dynamobim.com/t/exporting-type-catalog-from-revit-families-using-a-script/37070/7 "2019-06-18T12:51:10Z")

</div>

Ah, if you’re trying to _create_ a type catalog this makes more sense. I think you should be able to do that with ootb nodes though, maybe a few custom nodes.

---

<div class="post-metadata">

**Author:** ![marionbonoan12345](https://avatars.discourse-cdn.com/v4/letter/m/f14d63/32.png) [@marionbonoan12345](https://forum.dynamobim.com/u/marionbonoan12345)\
**Post date:** [June 20, 2019, 12:29pm UTC](https://forum.dynamobim.com/t/exporting-type-catalog-from-revit-families-using-a-script/37070/8 "2019-06-20T12:29:56Z")

</div>

yes exactly
