Forgot password?

Create an account!

Forum

« back

RhinoScript – Type Mismatch in parameter. Array Required.

Messages

Please log in to write a message.

  • 3. Hanno (Oct 25, 2010 09.29):

    Hi,

    the return value of OffsetCurve is an array, because it can be more than one curve. If you know that in your case it is only one curve, you can simply use OutLine(0) to access the first item in the array.

    Regards

    Hanno

  • 2. GTI (Oct 25, 2010 00.19):

    Sorry for the typo, I mean the return of Rhino.offsetCurve is Array, while the parameter of Rhino.DivideCurve need String. How can I convert between these two?

  • 1. GTI (Oct 25, 2010 00.16):

    I have some problem with the following script....
    return type conflict with parameter type.



    Dim arrPointIn,arrPointOut
    Dim OutLine
    Dim BaseLine


    BaseLine = Rhino.GetObject("Select a curve", 4)
    OutLine=Rhino.OffsetCurve (BaseLine, Array(0,0,0), -1.0) 'return is Array
    arrPointIn=Rhino.DivideCurve(BaseLine,8,True,True)
    arrPointOut=Rhino.DivideCurve(OutLine,8,True,True) 'OutLine should be a String

    The return of Rhino.offsetCurve is Array, while the return of Rhino.DivideCurve is String. How can I convert between these two?

    Thank You!

Recommend

Why are these buttons gray?