Grasshopper

algorithmic modeling for Rhino

Hello,  i am new to Grasshopper .

I am trying to build surfaces from the text file (points.txt) .

If there is way to divide the file list with "empty" and import separately to polyline and boundary surfaces?

 

Thank you for any advice!

 

Views: 818

Attachments:

Replies to This Discussion

Hi Tommy,

You should split your original list of points into sub-lists according to different domains that are defined by the empty items ..

I hope this helps

Hi Ibrahim,

Thanks for the advice. I tried to build the domain, but i don't know how to write the vb script to find the empty row. Can you show me how?

Thank you!

Hello Tommy, Ibrahim,

Is this relevant to your problem?

http://www.grasshopper3d.com/forum/topics/splitting-a-list-from-exc...

This is a simple equality test, if nothing is pluged in y this means that the data is empty so the VB will compare the empty with another empty and will give you a "true".

Yes Nikos, your previous post is relevant as well and could be another way with less components) but the "null component" doesn't work with <empty>, that's why I used the simple VB script to catch the <empty>

Attachments:

Many thanks for the clear method.

It works very well:)

Here's a trick using only string operations. I do think your textfile is borked, it seems to have a line break in the middle of one of the points.

Attachments:

Nikos

I tried your method, however cleaning tree is not working for some reason I am not sure why ..

Cheers Davis, that's a fantastic way .. Thanks for sharing ..

I think it is not working because clean tree removes <null> items not <empty> items right ?

you are probably right.

On the same topic, ng5 Alex provided a solution that works with <empty>, have you checked this one out?

Alright, I missed this one, it is working very well, he translated the <empty> to <null> and then followed your way ..

Cheers Nikos

Hi nikos tzar

I tried the ng5 Alex's solution,but i didn't find the component called "Len"

Where can i find it? thanks. 

I believe it's TextLength.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service