Wrote a companion script that displays the z Coordinate of selected points so you can see what it is and know
what height to interpolate from it.
Looks like this:
Option Explicit
‘ Subroutine: ZCoordinate
‘ Purpose: Adds text dot with zCoordinate to points
‘ Author: Ryland Fox a href=”http://www.landscripting.blogspot.com”>http://www.landscripting.blogspot.com(adapted from Roland Snooks annotateCurve | 2006 | http://www.kokkugia.com)
ZCoordinate()
Sub ZCoordinate ()
Dim arrPick, dblHeight, strPoint, arrPoint, zCoor
‘ Choose points
arrPick = Rhino.GetObjects(“Pick points”, 1)
If IsNull(arrPick) Then Exit Sub
‘ Loop through each picked point and insert an annotation dot
For Each strPoint In arrPick
arrPoint = Rhino.PointCoordinates(strPoint)
zCoor = arrPoint(2)
Rhino.print(zCoor)
‘ Insert Text Dot
Rhino.AddTextDot zCoor, arrPoint
Next
End Sub