Hi
This code work fine in c# component but when i compile it i get this message
{
Receive(Component);
data = chart;
}
// <Custom additional code>
bool registered = false;
IGH_Component comp = null;
string[] chart;
void Receive(IGH_Component component)
{
if(!registered)
{
Rhino.Runtime.HostUtils.RegisterNamedCallback("ChartsValues", RiRhino);
comp = component;
registered = true;
}
}
void RiRhino(object sender, Rhino.Runtime.NamedParametersEventArgs args)
{
string[] values_;
if (args.TryGetStrings("charts", out values_))
{
chart = values_;
}
comp.ExpireSolution(true);
}
I tried to use ToList, ToArray, RhinoList … nothing work