Attached file shows alternative method to the following code.
ZPL Macro:Fit CAD surface as a sequential surface
It uses ZOS-API with Python. The benefit is we will generate the fitting system automatically.
A document is provided to show a simple example about how to use it.