Creating polygonal slab with thickness

data in question:


-The slab ‘unique name =1’ is having 12 nodes (it is dynamic not every time it is 12), but the entry of this slab is stored in 3 arrays(it is also dynamic) as seen in table.
-‘UniquePt1’ to ‘UniquePt4’ stores the node numbers and the coordinates of these node numbers are in another data entry table.

what I am trying:
-need to store all the nodes in a single array.