Revit API: get document Title Blocks

Does anyone know how to get all the Title Block Id’s in a Revit document? I’m not looking to get any or all of the Title Blocks placed on sheet views, I am simply after the list of Title Block Id’s to be able to create new sheets. I can get the category using Python/Revit API but I cant get a list of Title Blocks loaded into the project.

Hi Thomas,

There is way to collect all the elements where element is element type. You can then filter by category to collect all title blocks in a revit document which are not placed.

Non-python way :slight_smile:

*These are non-placed family types

Custom node (All Family Types of Category) contains python though :smile::grinning:

LOL, good point. *not fully python :joy:

Thanks guys. So just to be clear, the python methods (whichever one is used :wink:) returns all Title Blocks Family Symbols loaded into the project? Or have I misunderstood, and will I only get the ones not in use (i.e. not placed on sheet view - not what I want).

All in project.

You will get all loaded families in project.

Here is the non python way:

Good to know - it needs to be coded as the process is part of a larger function that requires recursion. Thanks for the responses

Hello, I am working on a Japanese Revit model. I tried this script to look for the title blocks, but it came out as NULL.

What should be the possible solution for this?

10 years back, so this is almost certainly not going to work. I’m actually surprised the images even load. Best to start a new topic and include what you’ve tried so far, including a sample RVT will also help users to help you.

Closing this now for the time discrepancy.