Grasshopper

algorithmic modeling for Rhino

I am currently adding a win-foms addon to my component. It is a settings component where right-clicking the component opens a win forms that allows users to change values.

In my ShowForm() method, I am running into an error, specifically, the red line.

This is a translation I did of the VB code to C#. The original snippet is the following:

Dim param As Parameters.Param_String = DirectCast(Params.Input(0), Parameters.Param_String)

I was wondering what the C#-equivalent of Params.Input(0) is?

Views: 249

Replies to This Discussion

Square brackets instead of round ones on Input.

Params.Input[0];

--

David Rutten

david@mcneel.com

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