Grasshopper

algorithmic modeling for Rhino

I have a list of 3dpoint, I want to Assign a "null" value to it , I use add(nothing) method,but the result become “0,0,0” ,How can i  add "null" to a list of 3dpoint?

thanks.

Views: 2960

Replies to This Discussion

Hello,

you can try Insert items component.

best

alex

for examples? I am newbie.

in the description you can see that it will insert a null to the index you specify, if no value to insert is given.

thanks very much ,but I need to insert "null" in my vb script component. 

You didn't post this in the C#/VB forum, which is why you're getting regular solutions. I'll move the discussion.

I am sorry, i did not realize the vb part.  (no flags despite the add(nothing method).

I guess maybe you have seen this. Maybe it could help you.

thanks.

You cannot assign nulls to collections containing value types. Value types by their definition are never null. You can assign Point3d.Unset, which is an invalid point.

If you want to output nulls, you'll have to make a List(Of GH_Point). Assign Point3ds to the ones that exist and leave the rest null.

thanks very much .

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service