So is the structure a family? If so you have options.
-
Build some model lines for the base perimeter shape in the family environment. Then use Element.Curves to pull those lines, and generate the surface by patching a polycurve build from the curves.
-
Use the parameters of the family instance to create a rectangle which you patch, then use the family instance’s coordinate system to put the rectangle in place.