Grasshopper

algorithmic modeling for Rhino

error: Public member 'count' on type 'Vector3d' not found. (line:0)

Hi,

I am new to the entire topic of VB in Rhino, but it seams a very powerful tool and I am currently trying to update an old definition and am having serious trouble figuring out what is wrong:

I get the following error message, but I think it might be the first of a few to come:

error: Public member 'count' on type 'Vector3d' not found. (line:0)

the following code generates it:

Dim intList As New list(Of Integer)

Dim currentLine As Integer = 0

'add first line
intList.add(0)


'first loop for all angles
For i As Integer = 0 To x.count() - 2

  Dim cAngle As Double = 10

  Dim tVec1 As New Vector3d
  tVec1 = x(currentLine).direction()


  'second loop to find next angle
  For j As Integer = 0 To x.Count() - 1

    'make sure we arent using previously used lines

    Dim check As Boolean = True

    If intList.contains(j) Then
    check = False
    End If

Would appreciate any sort of useful pointers and comments since i still feel a bit like looking at the matrix without understanding it :)

Thanks,

Christian

Views: 376

Replies to This Discussion

Sorry, the question  is how do I get VB to understand that I am trying to use count to get the list length?

Obviously x is not addressed as a list, rather as a simple item.

Make sure you have the list option select in the input x of your vb component.

Best,

M.

Hi Marios,

thats exactly what I suspected, its obvious for others for me its all still a bit like walking in the fog.

Thanks for the pointer.

Best,

Christian

No worries Christian,

Happy to help. 

Best,

M.

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