Grasshopper

algorithmic 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

Views: 682

Replies to This Discussion

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

I attached the whole Grasshopper file.

Attachments:

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

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

ah, thats cool. thanks :)

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service