algorithmic modeling for Rhino
Hi all and David,
I would like to have some components added to a group as soon as they added to the canvas.
At the moment my code is as follows:
GH_Group BESTDesignInputsPanel = new GH_Group();
BESTDesignInputsPanel.AddObject(component1)
BESTDesignInputsPanel.AddObject(component2),
then I add the group to the document, note that my components are also added to the document.
document.AddObject(BESTDesignInputsPanel, true, document.ObjectCount + 1);
All my components appear on the canvas however there is no sign of the group to which they should belong.
I noticed that the bounds of my group are zero, do I need to set the bounds of the group myself so that it will appear? Is there a way to automatically do this?
Thanks!
Tags:
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2025 Created by Scott Davidson.
Powered by