Grasshopper

algorithmic modeling for Rhino

Dear all.

 

I didn't use any VB component since Version 0.8.0013, and I don't understand why VB refuses very simple string input, based on some "Grasshopper Primer_Second Edition_090323" sample code that should run ...

 

I am simply trying to read the content of a .txt file containing data that store polyline data.

I am streaming from a Panel component to a "tmp.txt" file, then copy paste it's content to the file I will be using for input, in order to freeze the data. Nothing specialThen, no way to read String, neither as Item or List access :

 

I have attached "code.txt" file.

 

I am running :

commercial rhino 4.9

rhino 50Beta_x86_en-us_20110907_1044

grasshopper 0.8.0051

.net libraries seem to be up to date...

 

I didn't find any entry about that in the discussions.

Thanks for your help !

 

 

Views: 585

Attachments:

Replies to This Discussion

This could be a problem:

Dim l As String = line.Replace("{", "")
l = line.Replace("}", "")

should be:

Dim l As String = line.Replace("{", "")
l = l.Replace("}", "")

I think.

--
David Rutten
david@mcneel.com
Leusden, Holland

 

Thanks a lot David, I am shameful...

 

It's always your own damn fault.

- Andrew leBihan -

 

 

Also known as Andy's First Law of Programming. It's not always true, but it helps narrow down bug-hunts :)

 

--
David Rutten
david@mcneel.com
Leusden, Holland

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