PostCommand Method?

Good morning,

Can someone please explain the PostCommand Method within the UIApplication Class? I can’t find any resources talking about how to apply this method.

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; so, I’m trying to figure out if I can use the Split Surface command with the PostCommand Method.

Here is a code where using the PostCommand method is not giving me any errors, but I’m not sure what is happening when I run it.

image

Any help is greatly appreciated. Thank you in advance!

1 Like