You can do this using the "doc" member in vbnet script.  It simply
writes whatever geometry you're trying to create.  The following
example creates fifty points in a sine wave directly into Rhino...but
using a loop and the right syntax, you could create as many of
whatever you wanted.  Anytime you change it or want it to run again,
you select the code node and click the black triangle "rebuild"
button.  There's a doc.Add____Object method for points, curves,
surfaces, etc.

 Sub RunScript(ByVal x As Object, ByVal y As Object)

    Dim I As int32

    For I = 1 To 50

      Dim pt As New On3dPoint(I, sin(I), 0)

      doc.AddPointObject(pt)

    Next


  End Sub


On Nov 29, 9:37 am, gotit <[EMAIL PROTECTED]> wrote:
> hey,
>
> for missing some loop command yet i often use 'shift list' to do
> something like it. for example i have some commands run on the first
> five points in u direction of a grid then shift the list and do the
> same on the next five points one v row further. now i have to bake the
> geometry each step if i want to see the result in rhino (and i need to
> do that to see the whole geometry). so maybe it would be some usefull
> slider-attachment (like 'animate' which works automated) to shift and
> bake the selected geometry each step automatically.
>
> could be a stupid idea anyways ..idk. maybe it's possible to do it
> with one of the scripting language plugins or maybe you solve it with
> some hierarchy in gh. still another advantage of it would be that only
> a part of it has to be managed by the cpu at a time - doing it for the
> whole grid at once would maybe cause problems with the cpu
> performance.
>
> thx, max

Reply via email to