Grasshopper

algorithmic modeling for Rhino

Private Sub RunScript(ByVal pts As List(Of Point3d), ByRef A As Object)



    Dim ln As New Line(pts(0), pts(1))

    A = ln

 

What's wrong, That work last month, but not today?

very very strange....

 

Thanks to Help!!

Views: 146

Replies to This Discussion

Hi RG,

 

is there an error message you can share?

 

Possible causes:

 

1) pts is either null (Nothing in VB). This would result in a NullReferenceException

2) pts contains fewer than 2 points. This would result in an IndexOutOfRangeException

 

--

David Rutten

david@mcneel.com

Poprad, Slovakia

I attach the file,

Thanks so much!!!

Attachments:

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service