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