Python Script for Split Surface tool - beginner, need help!

Hello all,

I am new to the forums and to using Revits API with python. I’m trying to write a code to use the Split Surface tool on a toposurface. From what I understand it is a built-in command. The only place I found the Split Surface tool in the Revit API was in the PostableCommand Enumeration.

Here is my code:


I’m not sure what is happening when using the PostCommand Method.

I think I may have the wrong idea about what the PostCommand Method does. Is there any way for me to use the SplitSurface command and feed it values so I can use the command from python as I would inside Revit?

Any help or alternatives would be greatly appreciated it, and I look forward to being an active member on the forums.

Thank you in advance!

Bump