SetGroupUserText

Hello ,

I try set a user tex to a group , I find this for Vb

https://developer.rhino3d.com/api/rhinoscript/group_methods/setgroupusertext.htm

There is some Python or C# function for do the same?

Tanks

I see this: Group.SetUserString Method

Thank you @fraguada

There is some pratical example?

Best Regards

This works in Python:

import scriptcontext as sc

for grp in sc.doc.Groups:
    grp.SetUserString('Test', 'Hello Rhino!')

for grp in sc.doc.Groups:
    print grp.GetUserString('Test')

– Dale

Thank you @dale