Grasshopper

algorithmic modeling for Rhino

Hey guys,

I try to read in points out of a list in C#. When I input the points in C#, it shall be able to differentiate between the points. It would be best if I don't have to declare every point manually in the Editor.
It is no problem to get the points in C# manually.

We are new with grasshopper so maybe you can help us.

Best
Tülin

Views: 761

Replies to This Discussion

Make sure you right-click the input of the C# Scripting component and choose "list access" - this will cause it to show up in the RunScript method signature as a List<Point3d> instead of as a Point3d, and you can access it via [] accessors or other typical means to work with a List datatype. Does that help? If I've misunderstood your question, maybe some more explanation or a screenshot would be helpful. 

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