Forgot password?

Create an account!


« back

RhinoScript – Beginner


Please log in to write a message.

  • 3. Togashi (Oct 10, 2008 12.04):

    Thank you very much.

  • 2. Hanno (Oct 08, 2008 17.27):

    Hi Togashi,

    everything you put between "" is a string, so in your line

    Command "_Circle w0,0,0 dblRadioMayor"

    you put the word dblRaioMayor as radius. If you want to use the value of your variable, you have to write:

    Command "_Circle w0,0,0 " + CStr(dblRadioMayor)

    cstr does type casting from real to string, the + appends the value to your command (notice the space before the ").

    In a second step, I would avoid command scripting. Try Rhino.addCircle instead of your command - but for starters, using commands is fine.

    Hope that helps!


  • 1. Togashi (Oct 08, 2008 17.17):

    I'm a beginner and I'm stuck. I can't seem to draw a circle.

    Dim dblRadioMayor,dblRadioMenor

    dblRadioMayor = Rhino.GetReal ("┬┐Radio Mayor?", 10.0, 1.0, 1000.0)
    dblRadioMenor = Rhino.GetReal ("┬┐Radio Menor?", 2.0, 0.1, 100.0)

    Command "_SelNone"
    Command "_Circle w0,0,0 dblRadioMayor"

    Help!! thanks


Why are these buttons gray?