Floor Shape Editing "Add Split Line"

Hello,

Clockwork has done a great job creating a node “Floor.SlabShapeByPoints”. I’d like to shape my slab by “Add Split Line” in the Shape Editing tools. I don’t see a node in Dynamo, however, I did see the Python script in Floor.SlabShapeByPoints:

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

OUT = slabshape

It seems that maybe this line of code can be altered to change from point to line. I don’t know Python, however I’ve been writing in C# in the Revit API for a while and know that this is accessible through SlabShapeEditor.DrawSplitLine(SlabShapeVertex start, SlabShapeVertex end);. Could you just create a new custom node and adjust some parameters and code and have it work?

1 Like