New to both C# and Grasshopper. I'm stuck creating a very simple component


I am trying to make a quick component to help learn C# and Grasshopper. I just want to invoke the Curve.DivideByLength method in a custom Grasshopper Component. Code is below, What am I missing? I think it is something to do with assigning the Point3d array to the output param. Also do we have a c# grasshopper discord?

The access type of your output parameters should be set to list.

Then use DA.SetDataList(0, splitpoints) to output

If you want to output a list it should be set in the gh param access in line 33 also you should it change in line 55 to list

Thanks guys - this worked. Looks like i wasnt so far off after all :slight_smile: