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?