Dear All,

I am new to Dynamo. In short, I would like to obtain the distance of a pile between ground level and topography, then input to its base offset to make the pile just contact the rockbed as shown below.

However, after many times trial, I found that the coordinate of elements (piles) always show as z=0 no matter which floor or level that I created the pile by the following dyn. Can anyone help? Thank you.