To do so, all you have to do is access the floor’s SlabShapeEditor and use the method Enable
A quick python excerpt would be something like this:
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)
floor.SlabShapeEditor.Enable()
bool = floor.SlabShapeEditor.IsEnabled
TransactionManager.Instance.TransactionTaskDone()
OUT = bool
This works for single floors, to do a list you just need to add a for loop.