Align Top Bottom Column with Toposolid

Firstly I take no credit for my progress as I know jack bout Dynamo, so I have credited sources when grouping nodes

Attached find a sample project and dynamo script
Top Bot Column Toposolid.dyn (58.5 KB)
Topo Solid Sample Project.rvt (2.2 MB)

Description of Toposolid
as you will see thee is a green layer and gray layer(sub surface). Created this using to toposolid then cutting one from the other. Note that what is happening on surface (Green Layer Top) is different what is happening sub-surface (Grey Layer)

I did see mention somewhere that rather then use dynamo just attach the top/bottom of column to the toposolid. Tried this with it only attaching the top to the underside of the Toposolid

Objective
Trying to align to top of the column (centre point, column does not need to cut) with the top of the the green toposolid and have the base align with bottom side of green topo/top of grey topo

it would then modify the top and base offsets accordingly…


Note this was done by eye roughly to indicate objective

Any tips, tricks, fixes, suggestion, updates, links… appreciated

Bumped your trust level so you shouldn’t be a new user anymore, which means you should be able to post files for future use.

2 Likes

thanks added the files

1 Like

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

Solution here supplied by Mike Buttery: