Check if sheet is placeholder

Hi,

I Have a bunch of ‘real’ sheets and a bunch of placeholder sheets. If I use the filtered element collector for getting all the sheets I get both placeholder sheets and real sheets.

I would like to be able to filter the placeholder sheets out and I think this is possible when I look through the API. IsPlaceholder Property

import clr

clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManager
doc =  DocumentManager.Instance.CurrentDBDocument
 
clr.AddReference("RevitNodes")
import Revit
clr.ImportExtensions(Revit.Elements)
clr.ImportExtensions(Revit.GeometryConversion)
 
clr.AddReference("RevitAPI")
from Autodesk.Revit.DB import *
 
#collect all Sheets in the project...
shts = FilteredElementCollector(doc).OfCategory(BuiltInCategory.OST_Sheets).WhereElementIsNotElementType().ToElements()

tst = []
for s in shts:
	#props = s.GetOrderedParameters()
	props = s.IsPlaceholder()
	tst.append(props)

OUT = tst

But this gives me the following error:
IronPythonEvaluator.EvaluateIronPythonScript operation failed.
Traceback (most recent call last):
File “”, line 22, in
TypeError: bool is not callable

My question how should I get this IsPlaceHolder property?

A property is retrieved without the ().
A method is called with the ().
So, remove the () in:

props = s.IsPlaceholder

1 Like

Thank you!

1 Like

archilab has a node for this as well

What happened to that node? I can’t seem to find it.
I am running revit 2020 and Dynamo 2.3.0