but when i use same command in VB.net. it gives me and Error : Array is a type and can not be use as Expression
Public obj As Object = RhUtil.RhinoApp.GetRhinoScriptInterface()
Public RScript As RhinoScript4.IRhinoScript = CType(obj, RhinoScript4.IRhinoScript)
len2SPt =RScript.CurveLength(baseCurve, , Array(crvDom(0), dClosePt))
Public obj As Object = RhUtil.RhinoApp.GetRhinoScriptInterface()
Public RScript As RhinoScript4.IRhinoScript = CType(obj, RhinoScript4.IRhinoScript)
crvDom = RScript.CurveDomain(baseCurve)
len2SPt =RScript.CurveLength(baseCurve, , Array(crvDom(0), dClosePt))
I think there is problem in crvDom = RScript.CurveDomain(baseCurve).
In rhino script the return of this command is array and in vb.net return shows the object
as i dont get the return in array of crvDom in vb.net i am not able to pass the parameter crvDom(0) to RScript.CurveLength(baseCurve, , Array(crvDom(0), dClosePt))
and also the Array(crvDom(0), dClosePt) is not supported in .net it says Array is type and can not be used as expression