I am trying to determine the points of a slab using python. I can get there in 3 nodes using Dynamo, but if I try to code something similar using code I get an indexer object. I am still new to this and was trying to figure out if there was a way to see the coding behind Floor.Points so I could see how they are able to obtain what I need. Dynamo photo attached and code snip below:
slab_locations = [ ]
slab_collector = FilteredElementCollector(doc).OfCategory(BuiltInCategory.OST_Floors).WhereElementIsNotElementType()
for slab_element in slab_collector:
s=slab_element.GetParameters("FilterCategory")
if s[0].AsValueString() == "Yes":
slab_locations.append(slab_element.Geometry)
else:
pass
print(slab_element)
print(slab_locations)