Civil3d Parcel PropertySet Data to Object Data

Hi

I am trying to modify a script that I downloaded a while ago from the forums I think to take the property set data attached to Civil3d parcels and then convert it to object data to then export to a shp file via Mapexport. At the moment I am get the following error when trying to create each Object table entry and do not know how to solve any help would be appreciated. Also the current script does not accept Parcels as an object type and I would be keen to know how to change this also.

copyPSDtoOD.dyn (56.8 KB)

copyPSDtoOD-(Parcels only).dyn (70.8 KB)