Align Top Bottom Column with Toposolid

Update
With Bits from here and bits from there and few additions of my own I got the script do work to 95% completion with some rogue elements still. Anybody got idea or solutions to resolve. (See Below)
Column - Coordinate & Level.dyn (94.3 KB)
Topo Solid Sample Project.rvt (2.6 MB)

Before Script

Example of Script working perfectly

Creates duplicate columns


This Screen shot shows the original column with the added coordinates, but the adjusted levels are none existent


This Screen shot shows the duplicated column with following errors
**- Changed Top Level from Level 0 to Level 1 (requirement is from a datum) **
- Coordinates not filled in
- Column Rotated
- Sometime duplicates Column
- Doesn’t like almost vertical faces of Toposolids

Is there any experts out there that can offer any resolves for any of the above