Return Z value of CurvePlane

How can I return the Z value of a CurvePlane ?

The script below fails - and I am not sure why.

rhino.MessageBox “” & rhino.CurvePlane(strCrv)(3, 2)

Thanks,
Keith

Hi @KeithR,

try this: Rhino.CurvePlane(strCrv)(3)(2)

c.

My version:

crv_plane=Rhino.CurvePlane(strCrv)
If IsArray(crv_plane) Then 
    Call Rhino.MessageBox(Cstr(crv_plane(3)(2))
End if

(CurvePlane will fail if curve is not planar and return Null)
–Mitch

Clement and Mitch,

Thanks for your help,
Keith