Hi all,
I have a component, for which I create two (actually three but the last doesn’t matter) ValueLists, populated with data from my DB. The problem is, I don’t know how to update the second VL depending on the selection in the first VL (first VL gives the selection of component groups and the second VL gives the selection of components within the selected group)
I find the second component with:
for (int i = 0; i < GrasshopperDocument.ObjectCount; i++)
{
if (GrasshopperDocument.Objects[i].NickName.Contains("Components"))
{
//todo
}
}
but I don’t know how to update the VL with new values.
Is there a way to replace items in ValueList?
Thank you.