Hi, I would like to get the information (in C#) where (in which component) the output from the component is connected (what is the next component after the current one).
It should be similar to the Disconnect from the right click menu where output components are listed. I just need to know their names.
You’d iterate over the IGH_Params in the Params.Output of your current component. Then, for each output parameter, you have to iterate over the Recipients list. This will tell you the parameters where the wires end. You may then still have to get the top level object via the parameter attributes if you want to know which component those parameters belong to.
Maybe one more question. How is it possible to iterate over cluster’s output parameter recipients? How to get Params.Output form the cluster where C# component is nested?
Actualization:
Is it possible to convert IGH_DocumentObject into IGH_Component in the case of Cluster? I guess that the Cluster implements also IGH_Component interface, therefore, this example should be correct right? (at least it is doing what I was expecting ) Only synchronization can be challenging. I think that I will use only something like an initialization button for now.