Wireframe > Nurbs Tubes?

Hi,

I am fairly new to Mel Scripting, so sorry for my ignorance, but I hope someone can help.

Is there any sort of script to convert the splines of a surface to some sort of nurbs tubes? Also I want to have where they intersect to be a continuous surface. Kind of like the wireframe converted into a nurbs surface.

Thanks,
Mike