Python SlabShapeEditor error in Revit 2017

I am working on a Dynamo presentation and I noticed that the Clockwork node Floor.SlabShapeByPoints is not working in Revit 2017 (and 1.0). I went back in 2015 (and 1.0) and the node seems to be working fine, so it seems to be a 2017 issue.

This is the error: "AttributeError: ‘TopographySurface’ object has no attribute ‘SlabShapeEditor’

If anyone could help with this issue, I would really appreciate it. I don’t really understand Python, and I would like to have this node working for my presentation on Friday.

I’ve included the script below, and I’ve noted where line 21 is.

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
xyzs = IN[0]
slabshape = UnwrapElement(IN[1])
successlist = list()
faillist = list()

TransactionManager.Instance.EnsureInTransaction(doc)
//line21: 
slabshape.SlabShapeEditor.ResetSlabShape()
for item in xyzs:
	slabshape.SlabShapeEditor.DrawPoint(item.ToXyz())
TransactionManager.Instance.TransactionTaskDone()

OUT = slabshape

When updating files from one revit version to another, element IDs can change. Looks like the id of the floor in the 2015 file now points to a topography element in the 2017 file. Could you try to select the floor again?

Hm, this wasn’t an updated file, but you seem to be correct in that it was pointing to a topography element and not a floor. I should have double checked that when I saw the error. Oh well, thanks for the obvious answer Dimitar.