Element Conversion Methods
Overview
To work with elements obtained via FilteredElementCollector
in Dynamo, they need to be converted to types that can be manipulated in the Dynamo environment.
Methods
-
ToElements()
- Converts elements to a type that can be manipulated from Dynamo.
-
ToElementIds()
- Provides identifiers of elements as a list of integers.
Example
- Convert elements:
Round_column = FilteredElementCollector(doc).WherePasses(Filter).WhereElementIsNotElementType().ToElements()
Output = []
for c in Round_column:
if c.Name == "~300mm":
Output.append(c)