Grasshopper

algorithmic modeling for Rhino

Hi hi,

I'm getting an Error at GetDataTree... I want to import a Tree with x branches, each branch with y items,...all Items are Integers.

Please look at attached pdf file.

What I'm doing wrong?

Regards,

Damir

Views: 350

Attachments:

Replies to This Discussion

I forgot to attach this...probably is important.

I defined plIndex as:

Dim plIndex As New ArrayList

A tree is not the same as an ArrayList. In fact you should never use ArrayList, it's a leftover from .NET 1.0, back when generics weren't supported. These days you'd always use List(Of T).

But that won't help either, because List(Of T) is not the same as a data tree. You need to define plIndex as GH_Structure(Of Int32)

Hi David, Hi others,

David I changed it to (as GH_Structure(Of Int32)...I needed to add Imports Grasshopper.Kernel.Data on the top ...but it still doesn't work). Can somebody help me to solve this... Just to get Tree of integers in GH into array of integers in vb.NET language.
 What I'm doing wrong?

I attached my code...

Thank you!

Regards, Damir

Attachments:

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