Hi everyone,
I’m working on a custom Grasshopper component and need to programmatically access and delete some parameter components (for example, by their names) in the same .gh document, where this custom component exists, when the file is loading. I tried using:
public override void AddedToDocument(GH_Document document)
{
foreach (var item in document.Objects)
{
//Then, finding and deleting parameters by their names
}
}
But it seems the parameters in the file aren’t fully loaded yet when this method runs.
Any guidance would be greatly appreciated. Thank you.