Get All Loadable Family Categories in Revit

, , ,
Loadable Family Categories Dynamo

During the process of developing a custom family browser for the BIMicon Toolbar, the following question surfaced; how can we classify which family categories can be loaded and which others were system families? In other words, what are the all loadable family categories in Revit? Well, for a quick enumeration I went to Dynamo and wrote a script for just this purpose:

The steps to get these categories are:

  1. Create a Python script to retrieve all family categories that are not system families. This can be achieved with the cladd Family as System Families are not included in it:
  2. Filter out the families that cannot be edited, as this means not editable in the family editor; this excluded Curatin Mullion, Curtain Panel, and View Title
  3. Select all unique items in the list output from the Python script
  4. Join all elements in list for csv output
  5. Write all loadable family categories to a csv file in the hard drive

And that is the few steps to follow to get all loadable family categories in Revit:

Area Tags
Callout Heads
Detail Items
Division Profiles
Door Tags
Elevation Marks
Generic Annotations
Grid Heads
Keynote Tags
Material Tags
Property Line Segment Tags
Revision Cloud Tags
Room Tags
Section Marks
Span Direction Symbol
Spot Elevation Symbols
Stair Landing Tags
Stair Run Tags
Stair Support Tags
Stair Tags
Structural Beam System Tags
Structural Columns
Structural Framing
Structural Framing Tags
Title Blocks
View Reference
Window Tags
Level Heads

The Python script contains the following code:

# Import clr and dlls
import clr

from Autodesk.Revit.DB import *
from RevitServices.Persistence import DocumentManager

# Retrieve current document
doc = DocumentManager.Instance.CurrentDBDocument

# Retrieve all families that are not system families in current doc
fam_types = FilteredElementCollector(doc).OfClass(Family)

# Filter the editable families and output result
out = []

for f in fam_types:
	if (f.IsEditable):

OUT = out

Leave a Reply

Your email address will not be published. Required fields are marked *