generative modeling for Rhino
Hi,
does anyone know why the vb.net script editor doesn't suggest any code?
for example i have a variable tree of the type datatree.
now i want to check out what i could do with this datatree an when i write
tree.
there should be a list of commands...but there isn't...i have seen it before...
Thank You for a answer
Tags: code, command, editor, script, suggestions

Not sure. It works for me if I just try DataTree(Of Object).
Sometimes the autocompletion gets messed up when it runs into code it cannot understand. You'll have to post the entire script so I can try it as well.
--
David Rutten
david@mcneel.com
Poprad, Slovakia
Permalink Reply by Stefan K on February 1, 2012 at 8:44am I attached the whole Grasshopper file.

I removed the additional function you wrote, then undid that change and now the autocompletion is working again. Very strange indeed.
--
David Rutten
david@mcneel.com
Poprad, Slovakia

ps. this is not recommended:
randomize
d = (10 * Rnd())
VB.NET has the System.Random class that should be used:
Dim rnd As New Random()
d = 10 * rnd.NextDouble()
--
David Rutten
david@mcneel.com
Poprad, Slovakia
Permalink Reply by Stefan K on February 10, 2012 at 3:51am thanks!
sometimes autocompletion works, sometimes not.
maybe its because of writing functions indeed.
btw. i didn't put rnd.nextdouble because it gave me only one random number even if its in a loop.
greetings
Stefan

Stefan, declare your System.Random instance before the loop, then call NextDouble() over and over again on that one instance.
--
David Rutten
david@mcneel.com
Poprad, Slovakia
© 2013 Created by Scott Davidson.
Powered by