How can I convert a bunch of floors or roofs to shape edited so that they have the points, but without providing an external list of points? I just want the points to stay where they are (similar to clicking modify sub elements in revit and then escaping).
I want to extract the points of non shape edited floors, and it’s not working using the “Floor.Points” node.
Thanks! This works great. I have modified the code to include a for loop and single quotes for use in a “python script from string” node. It’s available below for future reference.
import clr
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *
clr.AddReference('RevitNodes')
import Revit
clr.ImportExtensions(Revit.GeometryConversion)
clr.AddReference('RevitServices')
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
doc = DocumentManager.Instance.CurrentDBDocument
floor = UnwrapElement(IN[0])
TransactionManager.Instance.EnsureInTransaction(doc)
bool = []
for i in floor:
i.SlabShapeEditor.Enable()
bool.append(i.SlabShapeEditor.IsEnabled)
TransactionManager.Instance.TransactionTaskDone()
OUT = bool