Dynamo CodeBlock Element Types / Categories / Etc

Hello Everyone,

I am trying to hard code certain information from designated “Element Types, Elements, Familys, Family Types, And Categories” for codeblock use. For example instead of using the selection tool for Categories, you can designate a specific category by the following:


Is there ways of doing the same with the types I mentioned above? Here is an example of what I would want to hard code / code block:

Thank you team!


Hi Kevin,

This should return a list of Project Information elements:

project_info = FilteredElementCollector(doc).OfCategory(BuiltInCategory.OST_ProjectInformation).WhereElementIsNotElementType().ToElements()

Hey Tom!

I am unfortunately still getting an error with the input provided. Please see the below. Thank you for all your help.

Create a Python Script node with no inputs:


Thank you so much Tom! Huge Help :slight_smile: