How to use Revit surface, find surface equation?

How to use the Revit surface automatically find the surface equation?(Known XYZ points)
Similar to this equation

See if these links can help:

May I ask if it is possible. I am trying to figure this out too.
Thank you very much