generative modeling for Rhino
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
there should be a list of commands...but there isn't...i have seen it before...
Thank You for a answer
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.
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.
ps. this is not recommended:
d = (10 * Rnd())
VB.NET has the System.Random class that should be used:
Dim rnd As New Random()
d = 10 * rnd.NextDouble()
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.
Stefan, declare your System.Random instance before the loop, then call NextDouble() over and over again on that one instance.
ah, thats cool. thanks :)