algorithmic modeling for Rhino
EnsureGroup() basically makes sure that there is at least one container on the remove panel. If there isn't one, it'll make one, if there already are containers, it'll return the bottom most one. When you're removing items from an RCP layout, you do not want to start making new groups.
Instead of ensuring that there was a group, I would like to create one.
Is it possible to place this in the code?
Thank you for your help.
Please,
I would like create a group:
Dim Group As grasshopper.GUI.RemotePanel.RcpGroup
Dim grp As GUI.RemotePanel.RcpLayout = GrasshopperDocument.RemotePanelLayout
grp.Add(Group)
i am unable to specify with a name.
Group.Name = "somename"
--
David Rutten
david@mcneel.com
Thank you very much
David coming back to you after some difficulties.
I have not actually managed to create a group, EnsureGroup () ensures that there is one.
If this is the case then the group used is the latest build.
I'd really like to create a new group that is to say, if EnsureGroupe () is true then create one with the name chosen
If it is necessary then create a new one with the name chosen.
In addition I have successfully converted into another id parameter (panel), but not create a new label or as separators with no id.
Thank you in advance for your help.
Perfect. Thank you very much.
This is the same as David posted, with all three examples ported to Python.
This was requested over on Discourse, https://discourse.mcneel.com/t/rhino-remote-panel-with-python/46285/4
Giulio
--
Giulio Piacentino
for Robert McNeel & Associates
giulio@mcneel.com
David,
I have one last request, I would like to know if it is possible to choose the position of the group at its inception.
If two groups are already filled place the group created between these two groups for example.
Thanks
Remy
That is quite difficult. The order of groups is derived from their previous positioning. I.e. the order in which they appear top to bottom on the screen is not necessarily the same order they appear in the Groups property of the layout. To insert a group at a specific location you'd have to assign a specific location for the new group, so that it will be laid out in the correct order.
--
David Rutten
david@mcneel.com
Thank you to David for his help,
Here is a link to a video showing the purpose of this post.
Full process can be imagined ...
http://www.grasshopper3d.com/video/rhinocivil-engineering-integrati...
Hi, Trying to do this using Python. Any help would be appreciated!
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by